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

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

author EAcpu | 2 reads | 0 comments |

XMACD - indicator for MetaTrader 5

The standard version of the Smoothed Convergence and Divergence Moving Average Indicator allows to choose from ten possible variants of histogram and signal line smoothing algorithms:

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.

The colors of the histogram and signal lines change based on current market conditions. The ColorXMACD_Alert indicator also allows setting an alert in case the color of the signal line changes at the last closed bar. The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

The indicator was first implemented in MQL4 and published in the article Efficient Average Algorithm with Minimal Lag: Use in Indicators and Expert Advisors of March 3, 2009.

XMACD - indicator for MetaTrader 5


Attachment download

📎 colorxmacd.mq5 (10.61 KB)

📎 colorxmacd_alert.mq5 (11.39 KB)

📎 xmacd.mq5 (8.5 KB)

📎 smoothalgorithms.mqh (133.8 KB)

Source: MQL5 #509

Verification code Refresh