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

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

author EAcpu | 5 reads | 0 comments |

X2MA HTF - indicator for MetaTrader 5

X2MA Universal Moving Average, showing higher timeframe values ​​within the current timeframe, with the possibility to choose a smoothing type from a dozen possible versions:

It should be noted that the Phase1 and Phase2 parameters have completely different meanings for different smoothing algorithms. For JMA, it is an external phase variable that varies from -100 to +100. For T3, it is the smoothed ratio multiplied by 100 for better visualization; for VIDYA, it is the CMO oscillation period; for AMA, it is the slow EMA period. In other algorithms, these parameters do not affect smoothing. For AMA the fast EMA period is a fixed value, equal to 2 by default. For AMA, the ratio of raised powers is also equal to 2.

Place the X2MA indicator compiled file into the terminal data folder \MQL5\Indicators\.

The indicator X2MA uses classes of the SmoothAlgorithms.mqh library. How to use this class is described in detail in the article "Average price series for intermediate calculations without using additional buffers" .

X2MA HTF - indicator for MetaTrader 5


Attachment download

📎 colorx2ma_htf.mq5 (10.04 KB)

📎 x2ma.mq5 (8 KB)

📎 smoothalgorithms.mqh (133.8 KB)

Source: MQL5 #582

Verification code Refresh