XCCI_Histogram_Vol - MetaTrader 5 Script - MT4/MT5 Resource

CCI_Histogram_Vol indicator and additional average value of the resulting histogram. Similar averaging also applies to dynamic overbought/oversold levels.
//+--------------------------------------------------------+ //| Indicator input parameters | //+--------------------------------------------------------+ Input unit CCIP period = 14 ; // indicator period Input ENUM_APPLIED_PRICE CCI price = PRICE_CLOSE ; // Price input ENUM_APPLIED_VOLUME volume type = volume_scale ; // volume Enter an integer High level 2 = + 100 ; // Overbought level 2 Enter an integer High level 1 = + 80 ; // Overbought level 1 Enter an integer low level 1 = - 80 ; // oversold level 1 Enter an integer low level 2 = - 100 ; // Oversold level 2 Enter Smooth_Method MA_SMethod=MODE_SMA_; // Average method Input unit MA_length = 12 ; // Smoothing depth Input integer MA_phase = 15 ; // Parameters for the first smoothing, //---- For JJMA in the range of -100 ... +100, it affects the quality of the transition process; //----For VIDIA, it is the CMO cycle, for AMA, it is the slow average cycle Input integer shift = 0 ; // indicator moves horizontally (in bars)
The indicator uses SmoothAlgorithms.mqh library class (copy it to

Figure 1. XCCI_Histogram_Vol
Attachment download
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 XCCI_Histogram_Vol.mq5 (27.12 KB)
Source: MQL5 #21876
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •