Moving Averages: SMA, EMA and the 200-Day Line
A moving average answers one modest question: what has the average closing price been over a chosen stretch of recent sessions? Everything else in this chapter — the simple average and the exponential moving average, the 20/50/200-day conventions, moving average crossovers such as the golden cross, and the market’s long attachment to the 200-day moving average — is that one question asked in slightly different ways.
The modesty matters. A moving average is arithmetic on past closes — it knows nothing about results dates, order-book depth or what a business deserves. What it does well is compress a jagged price series into a line whose direction and slope can be read at a glance.
This is the moving-averages chapter of Gale’s technical-analysis guide. If the case for and against charting itself is the open question, start with the overview chapter. Here we stay narrow: the arithmetic, the SMA/EMA weighting choice, the length conventions, what crossovers describe, and where all of it breaks down.
What are moving averages?
A moving average is a rolling mean of price. Pick a length — say 50 sessions — and each day the average is recalculated over the most recent 50 closes: the newest enters, the oldest drops out, the line moves forward one step. The result smooths daily noise at the cost of reacting late, and that trade-off — smoothness against lag — explains nearly everything below.
| Term | What it means | The catch |
|---|---|---|
| Length (lookback) | How many closes go into the average | Longer is smoother but slower to turn |
| SMA | Simple average: every close weighted equally | Old data influences today’s value as much as yesterday’s |
| EMA | Exponential average: recent closes weighted more | Faster to turn, and faster to be wrong in chop |
| 50-DMA / 200-DMA | The 50-day and 200-day averages of daily closes | Conventions, not laws of nature |
| Crossover | A shorter average crossing a longer one | Confirms a trend change only after much of it has happened |
One framing point before the arithmetic: a moving average describes its window and nothing beyond it. A rising 50-DMA says the last 50 closes average higher than yesterday’s window did, not that the next 50 will. (The stock-market terminology guide defines any unfamiliar term here.)
Simple moving average: the arithmetic
The simple moving average (SMA) is the version anyone can verify by hand — a genuine virtue, since an indicator you can recompute is one you can audit. Here is a 3-day SMA on a short series; every number in this table is an illustration, chosen so the arithmetic is visible, not taken from any real stock.
| Day | Close (₹) | 3-day window | 3-day SMA (₹) |
|---|---|---|---|
| 1 | 100 | — | — |
| 2 | 102 | — | — |
| 3 | 101 | 100, 102, 101 | 101.00 |
| 4 | 104 | 102, 101, 104 | 102.33 |
| 5 | 105 | 101, 104, 105 | 103.33 |
| 6 | 103 | 104, 105, 103 | 104.00 |
Notice day 6: price fell from 105 to 103, yet the SMA still rose, because the 101 that left the window was lower than the 103 that entered. That is the smoothing working as designed — and it is also the lag. The average can keep rising for a while after price has turned down, and vice versa. A 50-day or 200-day SMA behaves identically, only with more inertia.
Equal weighting has one odd side effect: when an extreme close from weeks ago finally leaves the window, the average can jump without anything happening in today’s trade. This drop-off effect is one reason the exponential variant exists.
Exponential moving average: why recent prices count more
The exponential moving average (EMA) asks the same question but changes the weighting: the newest close gets the largest weight and each older close a progressively smaller one, fading the further back you go. No formula is needed to use the idea — an EMA is a memory that fades, where an SMA is a memory that ends abruptly.
The practical consequences are consistent:
| Behaviour | SMA | EMA |
|---|---|---|
| Response to a sharp move | Slow; the move is diluted across the window | Faster; the newest close dominates |
| Behaviour in strong trends | Trails at a distance | Hugs price more closely |
| Behaviour in sideways chop | Fewer false turns | More false turns |
| Drop-off jumps from old data | Present | Largely absent; old closes fade rather than exit |
| Hand-verifiability | Trivial | Recursive; easier to trust software than to recompute |
Neither weighting is the correct one. The EMA treats the recent past as more relevant; the SMA treats the whole window equally, and is what most 200-day discussion refers to. The choice echoes elsewhere in this guide: the MACD indicator is built entirely from EMAs, inheriting both their responsiveness and their vulnerability to chop.
The 20, 50 and 200-day conventions
Nothing in the arithmetic prefers 20, 50 or 200. The conventions stuck because they map loosely onto horizons people already think in, and because decades of shared use made them the lines everyone else watches.
| Length | Rough calendar meaning | Typically read as | Honest caveat |
|---|---|---|---|
| 20-DMA | About a month of sessions | Short-term drift | Whipsaws constantly in ranges |
| 50-DMA | About a quarter | Intermediate trend | Lags turns by weeks |
| 200-DMA | Roughly nine to ten months | Long-term regime | Can be a year late to a genuine change |
Shared attention is the closest thing these lines have to real force. When many participants watch the same 50-DMA, behaviour can cluster near it — orders placed, commentary written, screens triggered — giving the line a relevance the arithmetic never gave it. That clustering is a tendency, not a mechanism, and it appears in liquid, widely-followed stocks far more than in thin ones.
Gale’s live screens sit inside this convention deliberately: their rules use the 50-day SMA as the trend reference, so a stock’s position against its SMA-50 is one of the conditions that put it on the list, not decoration.
Why the 200-day moving average carries weight
The 200-day moving average covers roughly a trading year, making it the slowest line in common use and the usual regime marker: commentary sorts stocks and indices into “above” and “below” the 200-DMA, and breadth statistics count how many index constituents sit on each side.
Its weight comes from three sources. Inertia: with about 200 closes in the window, no single week moves it much, so its slope reflects the year’s verdict more than the month’s mood. Attention: it is probably the most-quoted line in financial media, feeding the shared-watching effect above. And use as a stretch measure: the gap between price and the 200-DMA is a quick, if crude, reading of how far a stock has run from its own long-run average — a large gap describes an extended move, without saying when or whether it closes.
What the 200-DMA is not is a wall. Price does not bounce off an average because the average is there; when the line appears to hold, clustered attention is the better explanation — the support and resistance chapter covers why levels of every kind are zones of behaviour, not lines of defence. A stock can slice through its 200-DMA on one adverse filing, and a stock below it for months is not automatically cheap; it may simply have earned its derating.
Moving average crossovers: the golden cross and the death cross
A moving average crossover occurs when a shorter average crosses a longer one. The most-quoted pair is the 50-DMA against the 200-DMA: the 50 crossing above is a golden cross, below a death cross. Unlike a candlestick pattern, which forms and resolves within a few sessions, a crossover summarises months of price history in one event — which is exactly why it arrives late. (The candles below follow the anatomy — green bodies for closes above the open, red below — explained in the candlestick chart chapter.)
The golden cross. What it looks like: the darker, faster line — the shorter average — rises from below and crosses above the lighter, flatter long average while recent candles turn green. Where it appears: weeks to months past the actual low, once recovery has dragged the shorter average up through the longer one. What it suggests: the intermediate trend has risen persistently enough to overtake the long-run average — a description of durability, not a forecast. Its failure mode: the cross prints near the top of a rally that then fades; in choppy markets a golden cross can un-cross within weeks.
The death cross. What it looks like: the mirror image — the darker short average falls through the lighter long average while candles lean red, with the occasional green pullback. Where it appears: well after a peak, once the decline has pulled the 50-day line below the 200-day. What it suggests: intermediate weakness has persisted long enough to outweigh the long-run average — the downtrend is established, not beginning. Its failure mode: the cross lands near the bottom of a correction that promptly recovers; sharp V-shaped falls and rebounds are where death crosses look worst in hindsight.
The lag deserves stating without decoration: both lines are built entirely from past closes, so a 50/200 cross cannot occur until months of data have already moved. By the time it prints, much of the move it confirms has usually happened. Confirmation of an established trend is still information — but anyone reading a crossover as an early warning has the instrument backwards. It is a rear-view mirror with excellent optics.
Whipsaw: what sideways markets do to moving averages
Everything above assumed a trend exists. When price moves sideways, the average flattens into the middle of the range and price crosses it repeatedly — each cross looking, for a day or two, like the start of something.
The whipsaw. What it looks like: alternating green and red candles straddling a near-horizontal average, closes landing above the line one day and below it the next, no cross holding beyond a session or two. Where it appears: any range-bound phase — a digested move, an awaited event, a stock nobody is repricing. What it suggests: that the average currently has nothing to say — the window contains no persistent direction, so the line reports noise with a delay. Its failure mode is really the reader’s: acting on each cross in a range means repeatedly responding to moves that immediately reverse, and the more responsive the average (short lengths, EMAs), the more false turns it produces.
The honest response to whipsaw is not a cleverer average; it is recognising the regime. Trend tools describe trends and describe ranges badly, which is why chartists often pair a moving average with a bounded momentum measure such as the RSI — a different tool, with failure modes of its own.
Moving averages on Gale’s pages
Reading about a 50-DMA is one thing; watching one screen live stocks is another. gale.in computes these indicators daily from exchange-published data — the live screens are this chapter applied. The near-breakout stocks screen lists stocks pressing against recent highs with the 50-day SMA as its trend condition — every name on it is price, level and average interacting. The high-volume screen adds the participation dimension averages ignore, and the oversold-stocks screen shows why a stock far below its averages needs momentum context.
Beyond the screens, every stock article on Gale carries a Technical snapshot block showing, updated each trading day, how far price sits from its 50-day and 200-day averages. Those gaps are this chapter’s stretch measure in practice: a stock 30% above its 200-DMA and one 3% above it are in visibly different situations, whatever the story says.
FAQ
Which is better, SMA or EMA?
Neither; they weight the past differently. The EMA responds faster and produces more false turns in ranges; the SMA is slower and steadier. Using one consistently, and knowing which one a chart shows, matters more than the choice — the two can disagree near turning points.
Is the golden cross a buy signal?
No. It describes a condition — the 50-day average has risen above the 200-day — that confirms an uptrend already months old. Some golden crosses preceded further gains and some printed near tops; the event carries no entry instruction, no target, no protection against the trend ending next week.
Why did my stock fall through its 200-day moving average?
Because nothing holds a stock at any average. The 200-DMA summarises the past year’s closes; it is not a support order in the exchange book. An adverse result moves price straight through it, and the line only tells you afterwards how unusual the move was.
Should moving averages use adjusted prices?
Yes, for anything spanning corporate actions. A bonus issue or split creates an artificial step in unadjusted history, and every average containing that step is distorted for its full window length. Use a consistently adjusted series.
Sources
- TradingView: Moving Average, calculation and standard behaviour
- Zerodha Varsity: Moving Averages, Indian-market walkthrough with crossovers
- NSE technical-analysis programme material, exchange-hosted reference
What to weigh
A moving average buys clarity with lag, and everything in this chapter is that bargain restated. SMA and EMA differ only in how they spend the budget; the 20/50/200 conventions are habits that shared attention made partly real; crossovers are trend confirmation delivered months after the turn; and whipsaw is the invoice for using a trend tool where no trend exists. What is worth weighing is not whether the 200-day moving average “works” but whether the situation in front of you is one an average can describe: a liquid stock, a persistent move, a reader who wants the trend summarised rather than predicted. Where those hold, the line earns its place on the chart; where they do not, it is a smooth drawing of old news. The technical-analysis hub places this tool alongside the others, and the MACD chapter shows what happens when moving averages are turned into a momentum measure — lag included.
This article is for research and education, not personalised investment advice — Gale is not a SEBI-registered investment adviser or research analyst; moving averages lag and give false crossovers, so verify data and seek professional advice where appropriate before acting.