Skip to main content

cci zero cross with alert for Amibroker (AFL)

Copy & Paste Friendly
_SECTION_BEGIN("Title");
Buy=CCI(20)>0;
Sell=CCI(20)<0;
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone) ,colorBrightGreen);
 
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed);