Page 1 of 1

PS Aroon Reversal w 105CC

Posted: Fri Jul 29, 2016 12:17 pm
by henry1224
Under the Parameters tab

N Double 14 3 100

Here is the code

TD:=If(Sum(C < MA(C,105),5)>4,-1, If(Sum(C > MA(C,105),5)>4,1,0)),colorstick;
A1:="Aroon(N)[Up]";
A2:="Aroon(N)[Down]";
a:=A1==100 & A2==0;
b:=A1==0 & A2==100;
Long:BarsSince(A)<BarsSince(B) & TD>0,ColorGreen;
Short:BarsSince(A)>BarsSince(B) & TD<0,ColorRed;
FillRgn(Long>0,0,Long),Brush#50008000;
FillRgn(Short>0,0,Short),Brush#50800000;