Swing trading 3 EMA Crossover MQL5 – indicator MetaTrader 5

There is no magic in moving averages but they can be used to form the basis of a simple trading strategy that works.

For some reason, Forex traders especially enjoy these types of strategies. You can develop many trading systems using averages but remember that complex trading strategies are not always best.

The Triple Moving Averages

As I mentioned, the 3 EMA’s will have different lengths and they will be:

  • 55 period EMA
  • 21 period EMA
  • 9 period EMA 

The 55 EMA will be considered the longer term trend direction indicator:

  • When the 55 EMA is below both the 9 and 21, we will consider the trend to be up
  • When the indicator is above both of the shorter term moving averages, we will consider the longer term trend to be down

The 21 EMA is considered a medium term trend indicator:

  • We want to see the 21 below the 9 and above the 55 for an uptrend
  • The 21 should be above the 9 and below the 55 for a down trend
Alternative:  MovingAverages.mqh Part I by Wiliam210 - indicator MetaTrader 5

The 9 period will be seen crossing over and under the 21 period more times than crossing the 55:

  • The 9 EMA crossing over the 21 while already above the 55, is an uptrend and looking for a buy trade
  • If it crosses below the 21 while already below the 55, that is a down trend and looking for a sell trade

Swing trading 3 EMA Crossover mql4 version: https://www.mql5.com/en/code/31999

📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks