Traditional MACD MT4
MACD indicator in MetaTrader 4/5 looks different than MACD does in most other charting software. That is because the MetaTrader 4/5 version of MACD displays the MACD line as a histogram when it is traditionally displayed as a line. Additionally, the MetaTrader 4/5 version computes the Signal line using an SMA, while according to MACD definition it is supposed to be an EMA. The MetaTrader 4/5 version also does not compute a true MACD Histogram (the difference between the MACD/Signal lines). This can be confusing for people new to MetaTrader 4/5 since the MACD line is displayed as a histogram and no true MACD histogram is available.
This indicator displays MACD as it was defined by its creator (Gerald Appel) and how it appears in other charting software. The MACD line is computed as the difference between a "fast" EMA and a "slow" EMA. The Signal line is an EMA of the MACD line. The MACD Histogram is the difference between the MACD/Signal lines (the MACD Histogram by itself can be used reliably for divergence signals).
True/False switches enable you to display/hide the MACD/Signal lines and the MACD Histogram.
- Corrected calculation bug of max/min indicator values when MACD/Signal lines and Histogram both displayed.
- Decreased load time for charts with large number of bars.
T/F user inputs have been added to enable these new features. There are also new user inputs to control the line color and width of the divergence lines that are placed on the chart.
New user inputs:
- Issue Alert When MACD Line Crosses Signal Line: T/F switch to enable/disable alerts (must be true for any alert type listed below to work).
- Alert on Bar Close Only" T/F switch to enable/disable checking for cross at bar close only.
- Chart Alert: T/F switch to enable/disable pop-up alert on chart.
- Audio Alert: Plays sound (if valid audio filename specified).
- E-mail Alert: T/F switch to enable/disable sending e-mail alert (only works if "Email" tab on Tools/Options menu is configured properly).
- Smartphone Alert: T/F switch to enable/disable sending push notification (only works if "Notifications" tab on Tools/Options menu is configured properly).