![CCI 14 13](http://amibrokerchart.com/wp-content/uploads/2023/09/CCI-14-13-1.png)
CCI 14 13
Tailored for longer-term analysis, the CCI 14 13 Amibroker AFL calculates CCI using a 14-period setting and a smoothing factor of 13. This Amibroker AFL helps traders capture extended trends within their Amibroker data, assisting them in making well-informed trading decisions for more extended timeframes.
_SECTION_BEGIN("CCI"); CCI_col = IIf(CCI(14) > Ref(CCI(14),-1), colorGreen,colorRed); Plot( CCI( 14 ), "CCI", CCI_col, styleThick ); Plot(80,"",colorWhite,styleDashed); Plot(0,"",colorRed,styleDashed); Plot(-80,"",colorWhite,styleDashed); Plot(EMA(CCI(14),3),"",colorYellow,styleThick); Plot(EMA(CCI(14),20),"",colorBlue,styleThick); 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();