Skip to content
Home » Which Moving Average Strategy Dominates the Market? [17-Year, NIFTY50 Backtest Result]

Which Moving Average Strategy Dominates the Market? [17-Year, NIFTY50 Backtest Result]

Introduction: The Battle of Moving Averages

Have you ever wondered which moving average strategy stands the test of time? With hundreds of ways to trade using Simple Moving Averages (SMAs), it’s easy to get lost in the noise. But what if you had 17 years of backtested data across multiple strategies to tell you exactly which SMA method delivered the best returns with the lowest risk?

That’s what we’re bringing to you today. We tested popular SMA strategies, including the famed SMA 50-200 crossover (Golden Cross), single SMA entries like SMA 21 and SMA 100, and more obscure combinations like SMA 9-21. The results are eye-opening — and maybe even a little surprising.


What Is a Simple Moving Average (SMA)?

A Simple Moving Average (SMA) is a technical analysis tool that smooths out price data by averaging a stock’s price over a specific number of periods.

  • Single SMA Strategy: A long position is taken when the price crosses above single moving average. For instance, enter long when the price moves above SMA 100 and exit when it drops below SMA.
  • Dual SMA Strategy: Uses two moving averages. A trade is entered when a short-term SMA (like SMA 50) crosses above a long-term SMA (like SMA 200) — known as a Golden Cross — and exited when it crosses back below.

These strategies aim to ride the trend, whether up or down, and avoid getting caught in short-term price noise.


Terminology Simplified

Before we dive into results, let’s break down some key terms used in strategy analysis:

  • CAGR (Compound Annual Growth Rate): The yearly return generated by a strategy if profits were reinvested annually.
  • Sharpe Ratio: Measures return relative to risk. Higher is better.
  • Sortino Ratio: Like Sharpe, but only considers downside risk.
  • Calmar Ratio: Return divided by maximum drawdown. It highlights how much pain is involved in gaining returns.
  • Max Drawdown (DD): The biggest drop from peak to trough in your equity.
  • Avg. Drawdown Duration: Average length of time the portfolio remains in a drawdown.
  • Profit Factor: Total profit divided by total loss. >1 means a profitable system.
  • Expectancy: Average gain or loss per trade expressed as a percentage.
  • Win Rate: Percentage of profitable trades.
  • # Trades: Number of trades executed during the backtest.
  • SQN (System Quality Number): Measures the quality of a trading system considering risk-adjusted returns and consistency.

The 17-Year Backtest: Setup

  • Duration: 2007 to 2025 (17+ years)
  • Tested On: Nifty 50 Index
  • Platform: Back testing Algorithm.
  • Assumptions: No leverage, long-only trades, 0.1% Brokerage
  • Strategies Compared:
    • Dual SMA Strategies:
      • SMA 9-21 crossover
      • SMA 50-200 crossover (also known as Golden CrossOver)
    • Single SMA Strategies:
      • SMA 7
      • SMA 21
      • SMA 50
      • SMA 100
      • SMA 200

Performance Comparison Table

Single SMA Strategies

StrategySMA 7SMA 21SMA 50SMA 100SMA 200
CAGR (%)2.776.455.577.256.26
Sharpe0.220.490.440.60.49
Sortino0.240.590.520.760.63
Calmar0.060.150.120.260.16
Max DD (%)-31.34-27.87-30.55-18.65-26.32
Avg DD Duration139 days81 days77 days65 days65 days
Profit Factor1.461.932.073.713.75
Win Rate (%)36.8938.6540.9845.0744.44
Trades4222071227163
Kelly0.151.171.161.251.23
SQN2.662.471.892.722.63
Expectancy (%)0.320.660.720.880.77

Dual SMA Strategies

StrategySMA 9-21SMA 50-200
CAGR (%)2.985.11
Sharpe0.240.4
Sortino0.250.46
Calmar0.070.17
Max DD (%)-29.38-41.54
Avg DD Duration162 days60 days
Profit Factor1.563.83
Win Rate (%)43.8663.64
# Trades11411
Kelly0.140.42
SQN1.371.31
Expectancy (%)0.451.02

Key Takeaways

🌟 SMA 100: The Best All-Rounder

  • Top CAGR (7.25%) and best risk-adjusted metrics.
  • Lowest drawdown and highest Kelly and SQN.
  • Strong balance of return and reliability.

📊 SMA 50-200: Precision with Patience

  • Best Profit Factor and Win Rate.
  • Few trades but highly selective.

⚠️ SMA 7 and SMA 9-21: Too Much Noise

  • High trade volume with subpar results.
  • Lower profit factor and Sharpe ratios.
  • Suitable only for high-frequency systems with tight controls.

Can We Say SMA Works?

The average Nifty 50 return over the last 17 years is approximately 11% CAGR. All SMA-based strategies underperformed this benchmark, with SMA 100, the top performer, achieving 7.25% CAGR.

This suggests that while SMAs may help with risk management (e.g., lower drawdowns, smoother returns), they do not outperform buy-and-hold strategies over the long term.

Hence, one might conclude that Single and Double SMA-based strategies do not beat the market alone and should not be used.


What’s Next?

Want a downloadable Excel sheet, Python code, or strategy dashboard for this SMA comparison? Let me know in the comments or reach out through our contact form.

Also, subscribe to our YouTube channel for tutorials, tips, and backtest breakdowns on popular trading strategies.


Leave a Reply

Your email address will not be published. Required fields are marked *