![CCI - Commodity Channel Index](http://amibrokerchart.com/wp-content/uploads/2023/09/CCI-Commodity-Channel-Index-1.png)
CCI - Commodity Channel Index
The CCI (Commodity Channel Index) Amibroker AFL is a crucial tool for traders using Amibroker data. It calculates CCI, a momentum-based indicator, helping traders identify potential trend reversals and overbought or oversold conditions. By analyzing Amibroker data with CCI, traders can make informed decisions, enhancing their trading strategies.
_SECTION_BEGIN("CCI"); Plot( CCI( 14 ), "CCI", colorRed, styleThick ); Plot(80,"",colorWhite,styleDashed); Plot(0,"",colorRed,styleDashed); Plot(-80,"",colorWhite,styleDashed); Cc = CCI(14); PlotOHLC( Cc,Cc,80,Cc, "", IIf( Cc > 0, colorGreen, colorRed ), styleCloud | styleClipMinMax, -80, 80 ); Buy = Cross(Cc,80); Sell = Cross(-80,Cc); //PlotShapes (Buy*shapeUpArrow,colorRed); //PlotShapes (Sell*shapeDownArrow,colorRed); _SECTION_END();