Supertrend + 200 MA

Today we’ll be looking to see if we can improve the Supertrend indicator which had a low average profit factor of 1.004 from the previous backtest. One way to try to improve it is by trading with the trend, meaning do not short when there is an uptrend, only go long. So to figure out the trend, we’ll use the 200 period moving average. Since there are a few different types of moving averages, we’ll test out 3 of them: simple moving average (SMA), exponential moving average (EMA), and weighted moving average (WMA).

Long entry rules:

  • Price must be above the 200 MA
  • Supertrend shows Buy signal

Long exit rules:

  • Supertrend shows Sell signal

Short entry rules:

  • Price must be below the 200 MA
  • Supertrend shows Sell signal

Short exit rules:

  • Supertrend shows Buy signal
Supertrend + 200 SMA for the SPY on the 15min timeframe
Supertrend + 200 SMA for the SPY on the 15min timeframe

Results

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

TimeframeST + 200 SMAST + 200 EMAST + 200 WMA
1min0.9040.9450.876
5min1.091.1591.187
15min1.3931.1961.274
30min1.0571.0251.106
1hour1.0661.0731.095
4hour1.3051.2411.095
1day1.1731.2651.184
Average1.1411.1291.117

After testing this new strategy, we can confirm that adding a 200 MA does indeed improve the profit factor. The best moving average to pair with the Supertrend indicator is the 200 SMA. With the original average profit factor of 1.004, it has now increased by 13.6% to a new average profit factor of 1.141!

TradingView Script

Try the Supertrend + 200 MA strategy for yourself on TradingView: https://www.tradingview.com/script/lpYW0m3Q-Supertrend-200-MA-backtestx/

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