ColorX2MA_x2_cloud_HTF - MetaTrader 5 Script - MT4/MT5 Resources

Two indicators colored X2MA viewed from different time frames, the area between the lines is filled with clouds, the color of which corresponds to the trend direction of the market
//+------------------------------------------------+ //| Indicator input parameters | //+------------------------------------------------+ Input ENUM_TIMEFRAMES time range 1 = PERIOD_H1 ; //Chart time range 1 Input ENUM_TIMEFRAMES time range 2 = PERIOD_H4 ; //Chart time range 2 //+------------------------------------------------+ //| Indicator input parameters | //+------------------------------------------------+ Enter Smooth_Method MA_Method1=MODE_SMA_; //The first smoothing average method Input unit length 1= 12 ; //First smoothing depth Input integer stage 1= 15 ; //First smoothing parameter, 3//---- 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 Smooth_Method MA_Method2=MODE_JJMA; //The second smoothing average method Input unit length 2= 5 ; //Second smoothing depth Input integer stage 2 = 15 ; //Second smoothing parameter, 3//---- 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 Applied_price_IPC=PRICE_CLOSE_; //Price constant Enter integer shift = 0 ; // indicator moves horizontally (in bars) Enter integer price change = 0 ; // Vertical indicator moving points //+------------------------------------------------+
For the indicator to work, the indicator ColorX2MA.ex5 must be located in the <terminal data directory>\MQL5\Indicators folder.

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