Join our facebook group for Amibroker afl code discussion https://www.facebook.com/groups/603980776889348

Coppock Histogram Trading System


Coppock Histogram Trading System
Coppock Histogram Trading System


//www.aflcode.com
_SECTION_BEGIN("");

GraphXSpace=1;  
Param("EMA",10,2,100,1,0);
r1=ROC(C,14);
r2=ROC(C,11);
C=EMA((r1+r2),10);

Plot(IIf(C>0 AND ROC(C,1)>0,C,0),"",42,6);       /*  uptrend   */
Plot(IIf(C>0 AND ROC(C,1)<0,C,0),"",32,6);       /*  up sideways */
Plot(IIf(C<0 AND ROC(C,1)>0,C,0),"",49,6);       /*  down sideways */
Plot(IIf(C<0 AND ROC(C,1)<0,C,0),"",29,6);       /*  down trend */



/*
dynamic_color = IIf (C >0, colorRed, colorGreen );
Plot(C,"", dynamic_color ,styleHistogram | styleThick  );*/

_SECTION_END();

Previous
Next Post »