Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

XCCI_Histogram_Vol - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 5 reads | 0 comments |

XCCI_Histogram_Vol - indicator for MetaTrader 5

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 \MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

XCCI_Histogram_Vol - indicator for MetaTrader 5

Figure 1. XCCI_Histogram_Vol


Attachment download

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 XCCI_Histogram_Vol.mq5 (27.12 KB)

Source: MQL5 #21876

Verification code Refresh