Open to read. This in-depth guide is part of the member library — a subscription unlocks all guides plus the AI trade journal.
The foundation of technical analysis
Moving averages smooth out price noise to reveal the underlying trend. They are the most widely used indicators on Dalal Street — from retail traders watching the 20 EMA on Bank Nifty to institutional desks tracking the 200 DMA on Nifty 50. Understanding them deeply separates amateurs from professionals.
What Is a Moving Average?
A moving average calculates the average closing price over a specific number of periods, and recalculates it as each new candle forms. If Reliance closes at ₹2,450, ₹2,470, ₹2,460, ₹2,480, and ₹2,490 over five days, the 5-day SMA is (2450+2470+2460+2480+2490) / 5 = ₹2,470.
As each new day arrives, the oldest price drops off and the newest one enters — hence "moving." This creates a smooth line that filters out day-to-day volatility and shows the direction of the trend.
SMA vs EMA: The Two Workhorses
Simple Moving Average (SMA)
The SMA gives equal weight to every price in the lookback period. A 20-day SMA adds the last 20 closing prices and divides by 20. It is clean, stable, and slower to react.
SMA Formula
SMA = (P₁ + P₂ + P₃ + ... + Pₙ) / n
Where P = closing price, n = number of periods
Exponential Moving Average (EMA)
The EMA gives more weight to recent prices, making it react faster to new information. It uses a smoothing multiplier: 2 / (n + 1). For a 20 EMA, the multiplier is 2/21 = 0.0952, meaning the latest price contributes ~9.5% to the average versus ~5% in an SMA.
EMA Formula
EMA = (Close × k) + (Previous EMA × (1 - k))
Where k = 2 / (n + 1), the smoothing multiplier
Visualizing the Lag Difference
The key difference is lag. When Nifty makes a sharp move after RBI policy announcement, the EMA turns faster while the SMA takes longer to catch up. This matters for entry timing.
Price with SMA(20) vs EMA(20) Overlay
Notice how the yellow EMA line hugs price more tightly during the rally, while the blue SMA lags behind. This is why intraday traders on Bank Nifty prefer EMAs — they need that faster reaction.
SMA vs EMA vs WMA Comparison
| Feature | SMA | EMA | WMA |
|---|---|---|---|
| Weighting | Equal to all prices | Exponentially more to recent | Linearly more to recent |
| Lag | Most lag | Less lag | Between SMA and EMA |
| Whipsaws | Fewer false signals | More false signals | Moderate |
| Best For | Swing/positional trading | Intraday/scalping | Custom strategies |
| Popular Periods | 50, 100, 200 | 9, 21, 50 | 10, 20, 30 |
| Usage in India | Nifty 200 DMA widely tracked | Bank Nifty intraday setups | Less commonly used |
Golden Cross and Death Cross
The most widely followed moving average signals in the market. When the 50 SMA crosses above the 200 SMA, it is called a Golden Cross — a bullish signal. When the 50 SMA crosses below the 200 SMA, it is called a Death Cross — bearish. These are lagging signals by nature, but they carry enormous weight because institutional traders and algorithms watch them.
Golden Cross vs Death Cross
Important Context for Indian Markets
Nifty 50 formed a Golden Cross in early 2023 (50 DMA crossing above 200 DMA) which preceded a rally from ~17,800 to 22,000+. However, these signals are lagging — by the time the cross happens, a significant portion of the move has already occurred. Use them for trend confirmation, not entry timing.
Which Moving Averages for Which Timeframe?
Intraday (1-15 min charts)
- +9 EMA + 21 EMA — Fast crossover system for Bank Nifty scalps
- +20 EMA — Dynamic support/resistance on 5-min Nifty
- +VWAP — Often used alongside EMAs for institutional levels
Swing Trading (Daily charts)
- +20 EMA — Trend direction and pullback entries
- +50 SMA — Medium-term trend filter for TCS, Infosys
- +200 SMA — Major support (Nifty 200 DMA is widely watched)
Positional (Weekly charts)
- +10 EMA + 30 EMA — Weekly trend system
- +40 WMA — Smooth weekly trend for HDFC Bank, SBI
- +50/200 SMA crossover — Long-term allocation signals
Investment (Monthly charts)
- +10 SMA — Monthly trend direction for Nifty/Sensex
- +Price above 10 monthly SMA = bull market
- +Used for SIP acceleration/deceleration timing
Moving Average Trading Strategies
1. EMA Pullback Strategy (Bank Nifty)
This is the bread-and-butter strategy for Indian intraday traders. On a 5-minute Bank Nifty chart, when price is trending above the 20 EMA, wait for a pullback to the 20 EMA. Enter long when price bounces off it with a bullish candle. Stop loss below the pullback low.
Works best between 9:30-11:30 AM and 1:30-3:00 PM when Bank Nifty has directional momentum. Avoid during 12:00-1:30 PM when the market typically chops sideways.
2. 9/21 EMA Crossover (Nifty Futures)
When the 9 EMA crosses above the 21 EMA on a 15-minute chart, go long. When it crosses below, go short. This generates frequent signals — filter them by only taking trades in the direction of the daily trend (price above daily 20 EMA = only take long crossovers).
3. 200 DMA Support (Positional)
Nifty 50 touching its 200 DMA has historically been a strong buying opportunity. In the last decade, each test of the 200 DMA has produced a bounce of at least 5-8%. Stocks like Reliance, HDFC Bank, and Infosys that hold above their 200 DMA during corrections tend to lead the subsequent rally.
Common Moving Average Mistakes
Using MAs in Sideways Markets
Moving averages generate constant whipsaws in range-bound conditions. If Nifty is stuck between 21,800-22,200, crossover signals will lose money. Use other tools like Bollinger Bands or RSI instead.
Too Many Moving Averages
Stacking 5 or 6 MAs on one chart creates confusion. Stick to a maximum of 2-3. One fast (9 or 20 EMA), one slow (50 or 200 SMA), and optionally VWAP for intraday.
Treating Crossovers as Holy Grail
A 9/21 EMA crossover is not a guaranteed trade. Combine with volume, candlestick patterns, and support/resistance. A bullish crossover at a major resistance level is likely to fail.
Ignoring the Larger Trend
Taking a 5-minute EMA buy signal when the daily chart is in a clear downtrend is fighting the tide. Always check one timeframe higher before acting on an MA signal.
Professional Tips for Indian Traders
Watch Nifty 200 DMA Religiously
When CNBC and ET report "Nifty tests 200 DMA", it is not just news — it is a genuine institutional support level. FIIs and DIIs both track it. Historical win rate of buying at 200 DMA on Nifty is over 80%.
Use EMA on Bank Nifty, SMA on Nifty
Bank Nifty is more volatile and benefits from EMA responsiveness. Nifty 50 is smoother and works well with SMA. This is not a rule, but a pattern that many professional traders have found effective.
Combine with Volume
A price crossing above the 50 SMA on 2x average volume is far more significant than one on low volume. Volume confirms the move. Use delivery percentage data from NSE for positional trades.
Respect the Slope
A flat 200 SMA means the market is undecided. A rising 200 SMA with price above it means strong uptrend. The slope matters as much as the position of price relative to the MA.
Backtest Before You Trust
Before using any MA strategy, backtest it on 2-3 years of Nifty/Bank Nifty data. The 9/21 EMA crossover on 15-min Bank Nifty has different results than on Nifty — know the numbers.
Risk Warning
Moving averages are lagging indicators — they tell you what has happened, not what will happen. They work beautifully in trending markets and terribly in sideways markets. Always use stop losses, and never risk more than 1-2% of your capital on a single MA-based trade.
Ready to Apply This Knowledge?
Track your moving average setups, log your trades, and see what actually works for your strategy.
Start Your Free TrialWhat to Learn Next
- RSI Indicator — Combine RSI with moving averages for powerful confluence setups
- MACD Indicator — MACD is built on moving averages — understand its foundation
- Bollinger Bands — Uses a moving average with standard deviation bands for volatility analysis
- Trend Analysis — Moving averages confirm trends — learn to identify them first
Your progress
0 read in Technical Analysis
Ready to apply this?
Practice what you learned by analyzing your real trades. ArthaLearn's AI detects patterns in YOUR trading data and shows what's working.
Free forever for trade logging. AI features start at ₹599/month.