PS Derivitive MA w 105CC

This is the place to discuss EdgeRater Chart Script

Moderator: Chris White

Post Reply
henry1224
Posts: 457
Joined: Wed Feb 24, 2016 12:04 pm

PS Derivitive MA w 105CC

Post by henry1224 »

Under the Parameters tab

N Double 28 2 100
N2 Double 5 2 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;
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) & 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;
Post Reply