Start scanning
Indicators

Moving Averages: SMA, EMA, 50 and 200 DMA Explained

Learn the difference between SMA and EMA, how the 50 and 200 DMA work, what golden and death crosses mean, and how to scan NSE stocks for them.

By the ChartScanX team · Updated 24 Nov 2026 · Educational content, not investment advice

A moving average smooths price data by averaging the last N candles, so the line shows direction without most of the day-to-day noise. It is the oldest and most common trend tool in technical analysis, and a large share of other indicators, including MACD and Bollinger Bands, are built on it. Because "price above its 200-day average" is a crisp, testable statement, moving averages are also some of the most useful scan conditions.

Types of moving average

Simple moving average (SMA)

The SMA is the plain arithmetic mean of the last N closes. A 5-day SMA of closes 100, 102, 104, 103 and 106 is (100 + 102 + 104 + 103 + 106) / 5 = 103. Each day the oldest value drops out and the newest enters. All values in the window carry the same weight, which makes the SMA smooth but slow.

Exponential moving average (EMA)

The EMA applies a weighting factor of 2 / (N + 1) to the latest close and the remainder to the previous EMA. A 20-period EMA uses a factor of about 0.095, so the newest candle contributes about 9.5 percent. Because recent prices count for more, an EMA turns sooner than an SMA of the same length, at the cost of more false turns.

Which to use

Feature SMA EMA
Weighting Equal Recent candles weigh more
Speed Slower Faster
Noise Smoother More reactive
Common use 50 and 200 DMA, long-term 9, 20, 21 EMA, short-term

In India, "DMA" is typically an SMA on daily closes, so the "200 DMA" you see quoted in market commentary is a 200-period simple average.

The common averages and what they represent

  • 9 and 21 EMA: short-term trend for swing and intraday traders.
  • 20 EMA: roughly one trading month; often watched as a pullback level in strong uptrends.
  • 50 DMA: roughly ten weeks; a medium-term trend reference.
  • 200 DMA: roughly forty weeks; the classic long-term trend line.
  • 30-week moving average: a weekly-chart equivalent of the long-term trend used by positional traders.

Illustrative example

These numbers are made up. A stock closes at 620 with a 50 DMA of 600 and a 200 DMA of 560. Price is above both, and the 50 DMA is above the 200 DMA, a classic uptrend alignment. If price pulls back to 603 and holds near the 50 DMA while the average slopes upward, some traders view that as the trend being tested. If price instead closes at 580, below the 50 DMA but still above the 200 DMA, the medium trend is weakening while the long-term trend remains intact. The same stock can be bullish on one average and weak on another, which is why the combination is informative.

Common ways to read moving averages

Price versus average

Price above a rising average indicates an uptrend on that timeframe; below a falling average indicates a downtrend. A flat average with price crossing it repeatedly indicates a range.

Slope

A steeply rising average suggests strong trend momentum; a flattening average suggests the trend is losing force. Slope is often more informative than the position of price alone.

Crossovers

When a faster average crosses a slower one, momentum has shifted. The best known are the golden cross (50 DMA above 200 DMA) and the death cross (50 DMA below 200 DMA). Shorter pairs such as 9/21 EMA give more frequent, less reliable signals. All crossovers lag because both lines are derived from past prices.

Dynamic support and resistance

In trends, price often pulls back to a rising average, such as the 20 EMA or 50 DMA, and resumes the trend. When the average fails to hold, that is read as a sign the trend may be changing. This is a tendency, not a law, and many touches fail.

Limits and false signals

  • All moving averages lag by construction. The longer the period, the greater the lag.
  • In sideways markets, price crosses averages constantly, creating whipsaws.
  • Golden and death crosses often occur well after the major part of a move, and sometimes right before the trend resumes the other way.
  • Averages ignore volume, valuation, and news.
  • A single gap at the 09:15 IST open can pull an EMA noticeably in one session.

How to scan for it on ChartScanX

ChartScanX has scan templates for the most common moving-average conditions across NSE stocks. They list matches that satisfy the stated rule, not recommendations.

A practical workflow

  1. Begin with a long-term filter such as Stocks Above 200 DMA to keep the list in uptrends.
  2. Layer on a shorter-term condition, such as a pullback to the 20 EMA, to find setups within that trend for your own review.
  3. Check momentum on RSI or MACD to see whether the pullback is shallow or deep.
  4. Look at the weekly chart. Multi-timeframe scanning explains how agreement across timeframes helps.
  5. Define your own risk. A scan only narrows the list; see how to scan stocks for the full approach.

Choosing the length

Your holding period should guide the average. Intraday traders on 5 or 15 minute charts commonly use 9 or 20 EMA. Swing traders use the 20 EMA and 50 DMA. Positional investors rely on the 200 DMA and the 30-week average. Using a very long average for short trades is slow; using a very short one for long-term decisions is noisy. Rather than hunting for a perfect number, many traders stick with widely watched values, since those are the levels where many participants are paying attention.

Moving averages in Indian markets

Nifty and Bank Nifty commentary often cites the 50 DMA and 200 DMA, so those levels are widely followed. Stocks that fall below the 200 DMA after results often take months to recover it. The 200 DMA is also sensitive to corporate actions: a stock split or bonus can disturb raw price history if data is not adjusted, so use adjusted prices when comparing across such events. In thinly traded stocks, an average can look smooth even though a few prints drive it, so check liquidity before trusting the line.

Common mistakes

  • Treating a crossover as a prediction rather than a lagging confirmation.
  • Using moving averages in sideways markets and expecting clean signals.
  • Ignoring the slope and looking only at whether price is above or below.
  • Mixing SMA and EMA values from different platforms and wondering why levels differ.
  • Forgetting to use adjusted prices after splits and bonuses.
  • Reading a scan match as advice instead of a starting list for your own research.

Frequently asked questions

What is the difference between SMA and EMA?

A simple moving average (SMA) gives equal weight to every candle in the window. An exponential moving average (EMA) gives more weight to recent candles, so it reacts faster to new price moves.

What does 200 DMA mean?

DMA stands for daily moving average. The 200 DMA is the average closing price of the last 200 trading sessions, widely used as a long-term trend reference.

What is a golden crossover?

A golden crossover occurs when the 50-day moving average crosses above the 200-day moving average. It signals that medium-term momentum has risen above the long-term trend, though it lags the actual price move.

What is a death cross?

A death cross is the reverse: the 50-day average crosses below the 200-day average. It reflects weakening medium-term price action, but like the golden cross it is a lagging confirmation.

Which moving average is best?

No single average is best. Traders commonly use the 20 EMA for short-term, the 50 DMA for medium-term and the 200 DMA for long-term trends. The right choice depends on your holding period.