What is a moving average? SMA vs EMA, crossovers, and what they actually tell you
A moving average smooths price by averaging the last N closes, recalculated each bar. SMA vs EMA, the 20/50/200-day lengths, golden and death crosses, and why MAs lag instead of predict.
The standard pitch for moving averages treats them as a signal generator: the line crosses, you buy; it crosses back, you sell. That framing is backwards. A moving average doesn't generate anything — it's a lagging summary built entirely from prices that already happened. It can't lead price because it's made of price. What it does, and does well, is strip out the day-to-day noise so the underlying trend becomes legible.
That is the honest use: a moving average is a smoothing filter. It answers one question — "which way has price been leaning, on average, lately?" — and it answers it with a deliberate delay. Everything useful about a moving average, and every way traders get hurt by one, follows from that single trade-off between smoothness and lag. This piece is the literal mechanics, no mysticism, and it pairs directly with how to read a stock chart.
The TL;DR. A moving average averages the last N closing prices and recalculates every bar, so the line "moves" forward with price. A simple MA (SMA) weights every day equally; an exponential MA (EMA) weights recent days more, so it reacts faster. Traders use them three ways — trend direction (price above or below the line), dynamic support/resistance, and crossovers (a faster MA crossing a slower one). The catch: every MA lags, so it confirms trends rather than predicts them, and it whipsaws in sideways markets.
A moving average is the last N closes, averaged and rolled forward
Take a length — say 20. The 20-day SMA is the average of the last 20 daily closing prices. Tomorrow, the oldest close drops off the back and the newest close is added to the front, and you average again. The window "moves" one bar at a time, which is where the name comes from. Plotted under the price, those daily averages form a smooth line.
The longer the window, the smoother the line and the slower it turns — a 200-day average barely flinches at a single big day, because that day is one part in 200. The shorter the window, the more responsive and the noisier. That is the entire dial: smoothness on one end, responsiveness on the other. You cannot have both.
SMA vs EMA: equal weight versus recent-weighted
The simple moving average (SMA) gives every close in the window the same weight. Twenty days, twenty equal votes. It's clean and intuitive, but it has a quirk: an old, large move is weighted exactly as much as today's, and the line jumps when that old value finally falls out of the window.
The exponential moving average (EMA) fixes that by weighting recent prices more heavily and decaying older ones smoothly. No value ever fully drops off; it just fades. The practical consequence is that for the same length, an EMA hugs price more tightly and turns sooner than an SMA.
- SMA — equal weight, smoother, slower to react. Better when you want to filter noise hard.
- EMA — recent-weighted, more responsive, turns earlier. Better when you want to catch trend changes sooner — at the cost of more false turns.
Neither is "correct." The EMA's faster reaction is the same property that makes it whipsaw more in choppy markets. You're choosing where to sit on the smoothness-versus-lag dial, not finding a better formula.
20, 50, and 200: short, intermediate, and long trend
Three lengths dominate because the crowd watches them, which makes them partly self-fulfilling:
- 20-day — roughly a trading month. The short-term trend; tracks price closely and is mostly used for timing and momentum.
- 50-day — about a quarter. The intermediate trend; a common reference for "is this still in an uptrend?"
- 200-day — roughly a trading year. The long-term trend, and probably the single most-watched line in markets. Institutions and the financial press treat price above or below the 200-day as a rough regime marker — broadly constructive above, broadly defensive below.
The basic read is positional. When price sits above a rising moving average, the trend over that horizon is up; when price is below a falling one, it's down. $SPY trading above a rising 200-day SMA is the textbook "long-term uptrend intact" picture — and the same line flipping to price-below-and-falling is what gets called a trend change. Note these are descriptions of what already happened, not forecasts.
Three ways traders actually use the line
1. Trend direction. The slope of the line and price's position relative to it. Price above a rising MA is the simplest definition of an uptrend on that timeframe; below a falling MA, a downtrend. Stacked MAs — 20 above 50 above 200, all rising — describe a clean, aligned uptrend. The same stack inverted describes a downtrend.
2. Dynamic support and resistance. Because so many participants watch the same lines, moving averages often act as moving floors and ceilings. In an uptrend, pullbacks frequently stall and bounce near the rising 50-day; in a downtrend, rallies often fail near a falling MA. It's "dynamic" support because the level moves with price, unlike a flat horizontal level. We cover the static version in support, resistance, and Fibonacci — moving averages are the sliding cousin of the same idea.
3. Crossovers. When a faster MA crosses a slower one, the average trend of the recent window has overtaken the longer one. A shorter MA crossing above a longer MA signals momentum turning up; crossing below signals it turning down. The famous pair uses the 50-day and 200-day:
- Golden cross — the 50-day crossing above the 200-day. Widely read as a shift into a longer-term uptrend.
- Death cross — the 50-day crossing below the 200-day. Read as a shift into a longer-term downtrend.
These names get a lot of headlines, which matters more than the math: a crossover is watched, so it can move behavior. But mechanically it's just two lagging averages catching up to a move that already happened.
A crossover is confirmation, not prediction. By the time a 50-day crosses a 200-day, the underlying move is weeks or months old — both lines are averages of past prices. The cross tells you a trend has changed, not that one is about to. That lag is the price you pay for filtering out false alarms. Treat crossovers as evidence the trend is established, not as an entry trigger fired at the turn.
The core limitation: moving averages lag, and they whipsaw
Every moving average is built from past closes, so it can only ever report the past with a delay. That delay is not a bug to be tuned away — it's the mechanism. A smoother line (longer length, SMA over EMA) lags more; a faster line lags less but fires more false signals. You are always trading one for the other.
The lag has two practical costs:
- Late entries and exits. A trend-following crossover gets you in after the move is underway and out after the reversal is underway. In a strong, sustained trend that's fine — you capture the middle. In anything else it's a tax.
- Whipsaw in range-bound markets. When price chops sideways with no real trend, a moving average gets dragged back and forth through price, and crossovers flip repeatedly. Each flip looks like a signal and is actually noise. This is where mechanical MA systems bleed: a string of small losing trades on signals that immediately reverse. Moving averages are trend tools, and they perform worst precisely when there is no trend.
There's a second trap worth naming: optimizing the length. It's tempting to backtest until you find the MA length that would have called every turn on a chart. That's curve-fitting — tuning to past noise that won't repeat — and it's one of the most common ways strategies look great on history and fail live. We unpack why in why most strategies fail. The 20/50/200 lengths aren't optimal; they're standard, which is a different and more durable kind of useful.
What to watch
- Slope and position before crossovers. Price above a rising MA is a cleaner trend read than waiting for a lagging cross. The slope tells you direction; the crossover only confirms it later.
- The market regime first. Moving averages earn their keep in trends and lose money in chop. Before trusting any MA signal, ask whether price is actually trending or just ranging sideways.
- The 200-day as a coarse regime line. Above and rising versus below and falling is a blunt but widely-watched read on the long-term picture — useful precisely because so many participants act on it.
- Volume on the move the cross confirms. A crossover backed by a real, high-volume trend is more credible than one printed on a quiet, drifting tape. See the volume section of the charting basics.
- Your own urge to optimize the length. If you're hunting for the "perfect" MA on past data, you're curve-fitting. Stick to standard lengths and judge them by behavior across many names, not one chart.
QA's /stocks pages pair each chart with the fundamental and cluster context a moving average can't show, and /learn walks the rest of the basics in order. For deeper, data-backed work across the whole universe, see /pro; for charting plus US-retail execution in one place, see /stack/ibkr.
Learn the foundations: part of QuantAbundancia's free education hub — pair this with How to read a stock chart and the full Trading Basics course.
QuantAbundancia is educational research. Nothing here is investment advice. See /disclosures.
Related research
Get the daily digest.
One email a day · alerts + bubble shifts + new research. Free during beta.
No spam. One email per day max. Telegram alerts coming with the paid tier.