CCI Commodity Channel Index With Buy Sell Signals



CCI Commodity Channel Index With Buy Sell Signals
CCI Commodity Channel Index With Buy Sell Signals


//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 »

1 Comments:

Write Comments