Home › Forums › Market Discussion › Market Talk 3/27 – 4/2 › Reply To: Market Talk 3/27 – 4/2
March 30, 2016 at 9:11 am
#5209
Steven Place
Keymaster
Here is the code for the MA deviation study:
declare lower;
input price = close;
input length = 200;
def SMA = Average(price[0], length);
plot DEV =(price/SMA -1 )*100;
DEV.SetDefaultColor(GetColor(1));