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

Modified CCI Buy Sell Arrows

Modified CCI Buy Sell Arrows
Modified CCI Buy Sell Arrows

//www.aflcode.com
_SECTION_BEGIN("CCI");
periods = Param( "Periods", 14, 2, 200, 1 );
Plot( CCI( periods ), _DEFAULT_NAME(), ParamColor( "Color",  colorCycle ), ParamStyle("Style")  );
Plot (100,"",colorBlue,styleNoLabel); // shows a blue line through 100
Plot (-100,"",colorBlue,styleNoLabel); // shows a blue line through -100
_SECTION_END();

Buy  = Cross( CCI(), -100 );
Sell = Cross( 100, CCI() );
PlotShapes(Buy*shapeUpArrow,colorGreen,0,Graph0);
PlotShapes(Sell*shapeDownArrow,colorRed,0,Graph0);
Previous
Next Post »