Page 1 of 1

PS Cycle Progression

Posted: Fri Jul 29, 2016 2:49 pm
by henry1224
Under the Parameters tab

N double 5 2 100


Here is the code

B:=Sum(If(C>Ref(C,1),1,0),N)<Sum(If(C<Ref(C,1),1,0),N);
A:=Sum(If(C>Ref(C,1),1,0),N)>Sum(If(C<Ref(C,1),1,0),N);
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;