RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
The real author:
Yuriy Tokman
The MACD histogram drawn using two signal lines in the price chart of the financial asset.
Never miss news-driven moves – use the News OCO Expert Advisor to place pending orders safely around economic releases. Find out more.
This indicator was first implemented in MQL4 and published in Code Base on 18.11.2009.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging price series for intermediate calculations without using additional buffers".

Fig.1 The 2XMA indicator
Level up your trading with professional RobotFX expert advisors and indicators. Visit www.robotfx.org for proven MT4/MT5 tools.
1249