Moving Average Convergence Divergence (MACD) + 200 MA

The Moving Average Convergence Divergence (MACD) is one of the most popular indicators out there. However, with the basic crossover strategy backtest, the results weren’t that spectacular with an average profit factor of only 1.059. Let’s try to improve it.

For the updated strategy, we will still follow the original crossover signals, but with 2 additional conditions to enter long: 1. MACD is below the zero line and 2. the price is above 200 moving average. For shorting, MACD must be above the zero line, and the price must be below the 200 moving average.

Because there’s a few different moving averages, I tested out 3 of them to combine with the MACD: the simple moving average (SMA), the exponential moving average (EMA), and the weighted moving average (WMA).

MACD + 200 MA for the SPY on the 4hr timeframe
MACD + 200 MA for the SPY on the 4hr timeframe

Results

Testing this strategy on the SPY has returned the following profit factors:

TimeframeMACD + 200 SMAMACD + 200 EMAMACD + 200 WMA
1min0.9120.8750.927
5min1.2891.381.33
15min1.1621.3291.46
30min1.5011.4021.472
1hour1.0141.0791.043
4hour1.1531.1491.023
1day1.7881.8742.109
Average1.2601.2981.338

While adding any 200 moving average to the MACD shows improvement, the best one to use is the 200 WMA. The old average profit factor of 1.059 went up to 1.338, an increase of 0.279 (26.35%)! This trading strategy actually now has the highest average profit factor that has been backtested here so far.

TradingView Script

Try the MACD + 200 MA strategy for yourself on TradingView: https://www.tradingview.com/script/rCn3VmOZ-Moving-Average-Convergence-Divergence-200-MA-backtestx/

Test with your own tickers and timeframes to see how well it works!