Moving Averages: SMA vs EMA and How Traders Use Them on NIFTY
What simple and exponential moving averages are, how crossovers and slope are read, which settings are popular, and why moving averages lag and fail in sideways markets.

Key takeaways
- Moving averages smooth price and always lag.
- EMA reacts faster than SMA.
- Use them to define the trend environment.
- They fail in sideways markets.
What a moving average does
A moving average smooths price by averaging the last N closing prices. It removes much of the noise so the direction of the trend is easier to see. Because it is built from past prices, it always lags the market. That is not a flaw to be fixed; it is the price of smoothing.
SMA versus EMA
- The simple moving average (SMA) gives every price in the window the same weight.
- The exponential moving average (EMA) gives more weight to recent prices, so it reacts faster and hugs price more closely.
A faster average gives earlier signals but more false ones. A slower average gives fewer signals but later ones. Neither is better; they fit different styles.
Popular settings
Common choices are the 9 or 20 EMA for short-term moves, the 50 for the medium term, and the 100 or 200 for the long-term trend. These numbers are conventions. They work partly because many traders watch them, not because of any magic in the number.
Three simple ways to read them
- Slope and position: price above a rising average suggests an uptrend; price below a falling one suggests a downtrend.
- Crossovers: when a faster average crosses above a slower one, it is read as a bullish change, and the reverse as bearish. These signals are late, and they whipsaw in ranges.
- Pullback to the average: in a strong trend, price often retraces to a rising EMA before continuing, which some traders use as an entry area.
Where moving averages fail
In a sideways market, price crosses the average again and again and generates a string of small losses. They also react slowly at sharp reversals, and a crossover often appears after a large part of the move is done. Use them to define the environment (trending or not) rather than to time exact entries.
Combining them with other tools
Moving averages work better with context: add VWAP for intraday bias, support and resistance for entry and stop placement, and volatility for position size. Test any rule on data before trusting it; our Backtest Tool is built for that.
Choosing a length that suits your timeframe
The length of a moving average should match how long you intend to hold a trade. An intraday trader watching 5-minute candles might use a 9 or 20 EMA to follow the short-term push. A swing trader holding for days may use the 20 and 50 on the daily chart. A long-term investor may focus on the 100 and 200. A good test is to scroll back through history and see whether price respected the average during the trends you would have wanted to trade, and how often it produced false signals in sideways periods. If the average gets cut by price every few candles, it is too short for the timeframe.
A simple trend filter (illustrative rule)
One of the easiest uses is as a filter, not an entry. For example: take long ideas only when price is above a rising 50 EMA on the hourly chart, and short ideas only when it is below a falling one; do nothing when the average is flat. This keeps you from fighting the dominant move. Such a rule is not a strategy by itself, and it will still produce losing trades, but it reduces trades against the trend. To judge whether it helps, run the same entry rule with and without the filter in the Backtest Tool and compare drawdowns, not just profit.
Beyond the basics
Traders also use slopes, the distance between price and the average (stretched prices often snap back), and ribbons of several averages to judge trend strength. Related tools include the VWAP, which resets daily and suits intraday work, and Bollinger Bands, which build volatility around a moving average. Each tool answers a slightly different question, so avoid stacking five indicators that all say the same thing. Pick one or two, learn how they behave on NIFTY, and record your observations in the journal.
Quick recap
A moving average smooths price so the trend is easier to see, at the cost of lag. The EMA reacts faster than the SMA; neither is better in every market. Use the slope and the position of price to define the environment, treat crossovers with caution in sideways markets, match the length to your holding period, and always test a rule on data before relying on it. Combined with levels, volatility and sensible position sizing, a moving average is a useful piece of context, but it is never a prediction by itself.
Moving averages on option charts
You can apply a moving average to any series, including option premiums or a combined premium. Option prices are noisier than index prices because they include time decay and changes in implied volatility, so averages may behave differently and signals can be less reliable. Many traders therefore apply the average to the underlying index and use it to decide the direction, then use the option purely for execution. If you do apply it to premiums, test that approach separately, and remember that a decaying premium can sit below its average for a reason unrelated to the market direction.
Try it yourself — free tools
Frequently asked questions
Which is better, SMA or EMA?
Neither is universally better. EMA reacts faster and gives earlier but noisier signals; SMA is smoother and slower.
Does the 200-day moving average work?
Many traders watch it as a long-term trend marker, and price often reacts around it, but it is a guide and not a guarantee.
Why do moving average crossovers lose money in sideways markets?
Because price keeps crossing the average without a real trend, producing repeated false signals and small losses.



