What Is a Moving Average?
A moving average (MA) smooths out price data by calculating the average price over a specific number of periods. It helps you see the trend by filtering out day-to-day noise.
If a stock's price is above its moving average, it's generally in an uptrend. If below, it's in a downtrend.
Types of Moving Averages
Simple Moving Average (SMA)
The SMA is the arithmetic mean of the last N closing prices.
50-day SMA = Sum of last 50 closing prices / 50
Every data point gets equal weight. The SMA is smooth but slow to react to recent price changes.
Common SMAs:
- 20 SMA — Short-term trend (swing traders)
- 50 SMA — Medium-term trend (most popular)
- 200 SMA — Long-term trend (investors and institutions)
Exponential Moving Average (EMA)
The EMA gives more weight to recent prices, making it faster to react to new data.
Common EMAs:
- 9 EMA — Very short-term (intraday, scalping)
- 21 EMA — Short-term trend
- 50 EMA — Medium-term trend
SMA vs EMA: Use EMA when you want quicker signals (intraday, short-term). Use SMA when you want a smoother, more reliable trend indicator (swing, positional).
Key Moving Average Strategies
1. Price Crossover
The simplest strategy:
- Buy when the price crosses above the moving average
- Sell when the price crosses below the moving average
Works best in trending markets. In sideways markets, you'll get too many false signals (whipsaws).
2. Golden Cross and Death Cross
These are the most watched signals on Nifty and Bank Nifty:
- Golden Cross — The 50 DMA crosses above the 200 DMA. This is a strong bullish signal suggesting a long-term uptrend is starting.
- Death Cross — The 50 DMA crosses below the 200 DMA. This is a bearish signal suggesting a long-term downtrend.
Important: These are lagging signals. By the time a Golden Cross forms, the stock has usually already moved 5-10% from its low. They're better for confirming trends than timing exact entries.
3. Moving Average as Support/Resistance
In an uptrend:
- The 20 EMA acts as support for short-term pullbacks
- The 50 SMA acts as support for medium-term pullbacks
- The 200 SMA is the "last line of defense"
Example: If Infosys is in an uptrend and pulls back to its 50 DMA at 1,800, that's a potential buying opportunity if the broader trend is intact.
4. Multiple MA Strategy
Use two or three MAs together:
- 9 EMA + 21 EMA — For short-term trading. Buy when 9 crosses above 21, sell when it crosses below.
- 20 SMA + 50 SMA + 200 SMA — For positional trading. All three aligned upward = strong trend.
Applying Moving Averages to Indian Markets
For Nifty 50
The 200 DMA of Nifty is closely watched by FIIs and institutional investors. A sustained break below the 200 DMA often triggers selling. Nifty above its 200 DMA = bullish market structure.
For Individual Stocks
- Stocks trading above all three MAs (20, 50, 200) are in strong uptrends
- Stocks below all three are in strong downtrends — avoid buying
- Stocks between MAs are in transition — wait for clarity
For Intraday (Bank Nifty)
Use 9 EMA and 21 EMA on a 5-minute or 15-minute chart. Trade in the direction of the 21 EMA slope.
Limitations
- Moving averages lag — they tell you what happened, not what will happen
- They generate many false signals in sideways/range-bound markets
- They work best in trending markets
- Different timeframes give different signals — always check the higher timeframe first
Quick Reference
| MA | Timeframe | Best For | |---|---|---| | 9 EMA | Intraday | Scalping, quick trades | | 20 SMA/EMA | Short-term | Swing trading (1-2 weeks) | | 50 SMA | Medium-term | Swing/positional (1-3 months) | | 200 SMA | Long-term | Trend identification, investing |
Moving averages are a versatile tool, but they should never be used in isolation. Combine them with volume, candlestick patterns, and support/resistance for the best results.
Disclaimer: This article is for educational purposes only and does not constitute investment advice. Always do your own research before making trading decisions.