Page 1 of 1

PS Derivitive MA

Posted: Fri Jul 29, 2016 4:48 pm
by henry1224
Under the Parameters tab

N Double 28 2 100
N2 Double 5 2 100


Here is the code

tai:=((HHV(MA(C,N),N2)-LLV(MA(C,N),N2))/C)*100;

a:=Ref(MA(C,N),1)== LLV(MA(C,N),4);
b:=tai<4 & Ref(tai,1)>=4;
Long:BarsSince(A)<BarsSince(B),ColorGreen;
Short:BarsSince(A)>BarsSince(B),ColorRed;
FillRgn(Long>0,0,Long),Brush#50008000;
FillRgn(Short>0,0,Short),Brush#50800000;