Moving averages explained: SMA, EMA and how traders use them
By the TradeLite team · 29 October 2026 · All guides
A moving average smooths out price so that the underlying direction is easier to see. It is one of the simplest indicators and one of the most widely used, which is exactly why it is worth understanding properly, including what it cannot do.
What a moving average is
A moving average is the average of the last N closing prices, recalculated on every new candle. As each new price arrives, the oldest one drops out, so the average "moves" along the chart. The number N is the period: a 20-period average on a daily chart covers roughly the last four weeks of trading.
Simple moving average
The simple moving average (SMA) gives equal weight to every price in the period.
Example: closing prices over five days of ₹100, ₹102, ₹101, ₹105 and ₹107 give a 5-day SMA of (100 + 102 + 101 + 105 + 107) ÷ 5 = ₹103. On day six, the ₹100 drops out and the new close is added.
Because every price counts equally, an SMA reacts slowly. That makes it steady, but late to turn.
Exponential moving average
The exponential moving average (EMA) gives more weight to recent prices, so it reacts faster to new moves. It is calculated by blending the latest close with the previous EMA, using a smoothing factor of 2 ÷ (N + 1). For a 20-period EMA that factor is about 0.095, so each new close contributes roughly 9.5% of the new value.
The trade-off is simple: an EMA turns sooner than an SMA of the same period, which helps in trends but produces more false signals in choppy markets.
Common uses
- Trend filter: some traders only look for long trades when price is above a chosen average, such as the 50- or 200-period, and only short trades when it is below.
- Slope: a rising average suggests an uptrend; a flat average suggests a range.
- Dynamic support and resistance: in trends, price often pulls back towards a shorter average before continuing. Treat it as a zone, like any support or resistance level.
- Crossovers: a shorter average crossing above a longer one is sometimes used as a trend-change signal. Crossovers are late by design and whipsaw in ranges.
- Trailing exits: some traders exit a trend trade when price closes beyond a moving average, a form of trailing stop.
Limitations
- Lag. Every moving average is built from past prices, so it always trails the market.
- Whipsaws. In sideways markets, price crosses averages repeatedly, generating many small losses.
- No magic periods. Popular settings like 20, 50 and 200 are conventions, not laws. Different periods suit different instruments and timeframes.
- Curve fitting. Searching for the "perfect" period on past data usually finds one that worked by chance. See backtesting basics.
Practical tips
- Use one or two averages at most; more lines rarely add information.
- Combine a moving average with price structure, such as swing highs and lows, rather than trading crossovers alone.
- Decide in your trading plan exactly how the average is used, and keep it the same while you test.
- Test the rule over a large sample, including costs, before trading it with real money.
Further reading
- SEBI investor education website: official guides for investors and traders from the market regulator.
- National Institute of Securities Markets (NISM): courses and certifications on securities markets and derivatives.
More guides
- Option Greeks basics: delta, gamma, theta and vega
- Understanding trading costs in India
- Drawdowns: why they matter and how to recover
This guide is for education only. It is not investment advice or a recommendation to buy or sell any security. Trading in securities and derivatives involves risk of loss. Read our Risk Disclosure.