PS CCI MA crossover

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 CCI MA crossover

Post by henry1224 »

Under the parameters tab

N Double 34 3 100

here is the code

A1:="CCI(N)[CCI]";
var1:=Sum(A1,13)/Sum(HHV(A1,200)-LLV(A1,200),13);

a:=Cross(var1,EMA(var1,9));
b:=Cross(EMA(var1,9),var1);
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;
Post Reply