Home → Free PDF Library → Moving Averages
Intermediate Guide · 12 Sections · Free Forever

Moving Averages EMA vs SMA for Nifty & Bank Nifty

When to use EMA over SMA, the 20/50/200 setups Indian traders actually use, Golden Cross & Death Cross explained, and how to avoid whipsaws trading Nifty and Bank Nifty in sideways markets.

12 Sections ~13 min Read 2 Custom Diagrams

Written by Deepak Kevadia, Founder & Mentor · Chart Code's trading course in Boisar, Dahanu, Palghar & Online · Last updated

Quick Answer: What Is the Difference Between EMA and SMA?

A moving average is the average price of a security over a fixed number of periods, recalculated with each new candle to smooth out noise. The EMA reacts faster to recent price, while the SMA gives a steadier read. These terms cover most of what a beginner needs to know:

SMA (Simple Moving Average)
Gives a calm, steady read on the broader trend with less sensitivity to short-term noise, often preferred for longer-term analysis.
EMA (Exponential Moving Average)
Gives more weight to recent prices, so it follows price faster and is often preferred for short-term and intraday trading.
20 / 50 / 200 setups
Common periods: 9 and 20 for fast entry timing and intraday momentum, 50 for medium-term swing trading, and 200 for the long-term trend.
Golden Cross
The 50-period average crossing above the 200-period average, usually read as a bullish signal.
Death Cross
The 50-period average crossing below the 200-period average, usually read as a bearish signal.
Dynamic support and resistance
A widely watched average often acts like a moving support or resistance level: pullbacks find buyers in uptrends and bounces get capped in downtrends.
Whipsaw
Price repeatedly crossing a moving average and reversing in a sideways market; averages work best in trends, so check the broader trend first.
Level: IntermediateRead time: ~13 minFree PDF available12 sections

What you will learn

What Is a Moving Average and Why Do Traders Use Them?

A moving average is the average price of a security over a fixed number of periods, recalculated and plotted fresh with each new candle — smoothing out the day-to-day noise so the underlying trend becomes easier to see. Instead of reading every individual candle's zigzag, a moving average draws one clean line that rises when price is generally climbing and falls when price is generally declining.

Nearly every trader, regardless of style, glances at at least one moving average — it's one of the oldest and most widely trusted tools in technical analysis, and it forms the backbone of countless other indicators, including MACD itself.

Simple Moving Average (SMA) Explained

📏

SMA — Simple Moving Average

The SMA is exactly what it sounds like: add up the closing prices for the last "N" periods and divide by N. A 20-day SMA is simply the average closing price of the last 20 days, recalculated fresh every day as the oldest day drops off and the newest day joins.

Because every day in the window carries equal weight, SMA produces a smooth, steady line that reacts slowly and evenly to new price action — a strength when you want a calm read on the broader trend, and a weakness when you need a faster response to a sharp move.

Equal weight to all periods Smoother, slower to react Easier to understand

Exponential Moving Average (EMA) Explained

⚡

EMA — Exponential Moving Average

The EMA also averages recent prices, but it deliberately weights the most recent periods more heavily than older ones, using an exponentially decreasing weight as data ages. The practical result: EMA reacts faster to new price changes than SMA, hugging price more closely and turning sooner when a trend actually shifts.

This extra responsiveness is exactly why EMA is the moving average of choice built into momentum tools like MACD — speed matters more than smoothness for a momentum-focused calculation.

More weight to recent prices Faster to react More prone to noise

EMA vs SMA: The Key Difference, Visualised

Visualising It: EMA Hugs Price, SMA Lags Behind

During a sharp move, notice how the EMA (gold) turns and follows price faster than the SMA (dark, dashed), which lags noticeably further behind.

Price EMA (faster) SMA (slower, lags)

Both lines are tracking the exact same price data — the difference is purely in how much weight recent candles get. That single design choice is the whole story behind every practical difference between the two.

Which Should You Use — EMA or SMA?

Neither is objectively "better" — they're built for slightly different jobs:

A practical compromise

Many traders simply use both together — an EMA for faster entry timing, and an SMA on a higher timeframe for a calmer read on the dominant trend — rather than treating it as an either/or decision.

The 20/50/200 Setups Indian Traders Actually Use

PeriodTypical TypeCommon UseStyle
9 / 20EMAFast entry timing, intraday momentumIntraday / Scalping
20EMA or SMAShort-term trend, common trailing referenceIntraday / Short Swing
50EMA or SMAMedium-term trend, popular pullback entry zoneSwing Trading
200SMALong-term trend benchmark, widely watched by institutionsPositional / Investing

The 20, 50 and 200-period averages are watched so widely across Indian markets that they can become mildly self-fulfilling — enough traders and algorithms react around these exact levels that they genuinely do matter, independent of any deeper mathematical reason.

Golden Cross & Death Cross

Visualising It: The 50/200 Crossover

A Golden Cross when the 50-period average crosses above the 200-period average; a Death Cross when it crosses below.

Golden Cross 50-period 200-period 50 crosses above 200 Death Cross 50-period 200-period 50 crosses below 200

These two crossovers are among the most widely reported long-term signals in financial media — a Golden Cross is read as a broad bullish shift, a Death Cross as a broad bearish one. Because both averages are slow-moving by design, the crossover itself is a genuinely lagging signal — it often confirms a trend that has already been underway for some time, rather than predicting one about to begin.

Moving Averages as Dynamic Support & Resistance

A widely watched moving average doesn't just describe the trend — it frequently behaves like support and resistance in its own right, except that the level moves along with price instead of staying fixed. In an uptrend, the 50 or 200-period average is often exactly where pullbacks find buyers; in a downtrend, the same averages often cap bounces as sellers step back in.

Why this actually happens

It's partly self-fulfilling: enough traders and algorithms watch the same well-known averages and place orders around them, which genuinely reinforces their role as dynamic support or resistance — not unlike how round numbers work in the support/resistance guide.

How to Avoid Whipsaws in Sideways Markets

A "whipsaw" is what happens when price crosses a moving average, triggers a signal, then immediately reverses back through it — repeatedly, in both directions, during a genuinely sideways market. Moving averages, by design, work best in trending conditions and struggle the most in directionless chop.

📌 Recognising when Nifty or Bank Nifty is genuinely trending versus chopping sideways, before trusting a moving average signal, is exactly the kind of practical judgment we build hands-on in our structured courses at Chart Code, offline in Boisar or live online anywhere in India.

Common Moving Average Mistakes

01

Cluttering the chart with too many MAs

Plotting five or six different moving averages at once usually creates confusion, not clarity.

02

Trading every crossover in a sideways market

Reacting to each MA cross without checking whether the market is genuinely trending leads straight into whipsaws.

03

Using the wrong period for the timeframe

Applying a long-term 200-period average to a 5-minute intraday chart rarely gives a genuinely useful signal.

04

Treating a single touch as automatic support

Assuming price must bounce off a moving average the first time it's tested, without any other confirmation.

05

Ignoring Bank Nifty's extra volatility

Using identical settings for Nifty and Bank Nifty without accounting for Bank Nifty's generally sharper swings.

06

No stop-loss on crossover trades

Entering on a moving average signal without a predefined invalidation point turns a manageable loss into an open-ended one.

Your Moving Average Checklist

Before acting on any moving average signal, run through this five-point check:

✓

Trend Context

Is the market genuinely trending, or is this a sideways range where signals are more likely to whipsaw?

✓

Right Period, Right Timeframe

Does the moving average period actually match your trading style and chart timeframe?

✓

Confirmed Close

Has price actually closed beyond the average, rather than just touching or briefly poking through it?

✓

Second Confirmation

Does volume, a second indicator, or price structure support the same read as the moving average?

✓

Defined Risk

Do you know exactly where this signal would be proven wrong, and have you placed a stop-loss there?

Learn the Stock Market with Deepak Kevadia: Boisar, Dahanu, Palghar & Online

This guide is part of the free learning library from Chart Code, founded and mentored by Deepak Kevadia (BSE NISM Certified). Knowing the difference between EMA and SMA is step one; using the right average on live Nifty and Bank Nifty charts with a mentor is step two. Chart Code's trading course is taught in person at Boisar and live online, so students from Boisar, Dahanu and Palghar, and anywhere in India, can join.

Explore the trading course · Meet Deepak Kevadia · More free guides

Prefer to Study Offline?

Get this entire guide and both diagrams as a clean, printable PDF — free when you join our Telegram channel. Keep it open next to your charts.

✈ Join Free Telegram to Download PDF

Common Questions

Neither is strictly better — SMA is simpler to understand and smoother to read, making it a reasonable starting point for beginners studying overall trend, while EMA reacts faster and suits traders who want quicker signals once they're comfortable with the extra noise that speed brings.
A Golden Cross is when the 50-period moving average crosses above the 200-period moving average, widely read as a long-term bullish signal. It does not guarantee continued gains — like any crossover, it is a lagging signal that can occur later than the actual trend shift, and false signals do happen.
Bank Nifty is generally more volatile than Nifty because it is concentrated in fewer stocks from a single sector, so its price swings are often sharper. Moving averages on a more volatile instrument get tested and crossed more frequently, producing more false signals unless traders use slightly longer periods or extra confirmation.
Shorter EMAs like 9 or 20 periods are commonly used intraday for their faster reaction time, often alongside a longer average like 50 for broader context. There is no single correct period — it is a genuine trade-off between responsiveness and reliability that varies by trading style.
Yes. A widely watched moving average, like the 50 or 200-period average, often acts as dynamic support in an uptrend or dynamic resistance in a downtrend, since many traders and algorithms place orders around it — though like any support/resistance zone, it can and does eventually break.
Yes. Chart Code, mentored by Deepak Kevadia, runs a structured stock market and trading course with in-person classes at its Boisar centre (208, Yash Padma Arcade, Boisar Tarapur Road) and live online classes, so students from Dahanu, Palghar and the rest of India can also join.
Yes. Live online sessions are available alongside the classroom course, so you can learn from anywhere in India. Check the Courses page for current batches or message Chart Code on WhatsApp at +91 95121 00588.

Sources & Further Reading

Educational disclaimer: This guide is for education only. It is not investment advice or a recommendation to buy or sell any security. Moving averages lag price, can give false signals in sideways markets, and trading involves risk of loss.

Ready to Trade Nifty & Bank Nifty With Confidence?

Knowing the setups is step one. Reading trend versus chop correctly is step two — offline at Boisar or live online, anywhere in India.

View Our Courses Browse All Free PDFs