Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Expert Advisor | Example of MACD Automated

It is a MetaTrader 4 code example of MACD automated Expert Advisor, with advanced money management function and trailing stop as well.

The idea is:

  • Filter as Multi Time Frame code example (Daily and 15 minutes charts).
  • When the bigger timeframe is giving Buy (or Sell) signal/rule, then it will wait the confirmation of the lower timeframe to give the same signal/rule. Then the trade must be placed.
  • Buy Rule: When the MACD histogram is > 0 on the daily time frame AND the same on the 15 minutes time frame.
  • Sell Rule: When the MACD histogram is < 0 on the daily time frame AND the same on the 15 minutes time frame.

MetaTrader Experts, Indicators, Scripts and Libraries

Recommendations:
  • Don't use it on the real account.
  • It is only for educational purposes, not for strict trading.
  • Take care!
17204

Best MetaTrader Indicators + Profitable Expert Advisors