CCI_Chart - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources



Yuri Tokman (YTG)
The CCI indicator in the main chart window is compared to the Moving Average indicator. The CCI indicator is shown in green, the moving averages in red, and the levels of the default values are shown as borders of the light gray channel.
Indicator input parameters:
//+------------------------------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------------------------------+ Input unit period CCI= 14 ; // CCI indicator period Enter Smooth_Method XMA_Method= mode_SMMA ; // Average method Input unit X length = 12 ; // average depth Input integer X phase = 15 ; // Smoothing parameter, //---- For JJMA in the range of -100 ... +100, it will affect the quality of the transition process; //----For VIDIA, it is the CMO cycle, for AMA, it is the slow average cycle Enter double dev = 1.0 ; // channel width deviation Enter ENUM_APPLIED_PRICE apply price = PRICE_CLOSE ; // price type or handle Enter integer level_CCI_UP = 100 ; // Overbought level Enter an integer Level_CCI_DN = - 100 ; // Oversold level Enter integer shift = 0 ; // indicator moves horizontally (in bars)
The indicator uses SmoothAlgorithms.mqh library class (copy it to
This indicator was originally written in MQL4 and first published in the code base on March 11, 2016.

Figure 1. CCI_Chart indicator
Attachment download
📎 cci_chart.mq5 (10.7 KB)
📎 smoothalgorithms.mqh (130.19 KB)
Source: MQL5 #15083
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •