Moving Averages
A moving average smooths price by averaging it over a rolling window, turning a jagged chart into a cleaner line that reveals trend direction. This article explains the simple and exponential moving average and how they differ, the common 20/50/200 periods, how moving averages are used (trend direction, dynamic support and resistance, and crossovers like the golden and death cross), the inescapable lag that comes with smoothing, and why a crossover describes the past rather than predicting the future.
Written by James Lipyeat · Founder, Ironclad Research
Reviewed 23 July 2026 · Editorial policy
Before this, read
Introduction
Price charts are noisy. Even in a clear trend, the day-to-day jiggle can obscure the bigger picture, and the eye struggles to separate the signal from the static. The moving average is the oldest and most widely used tool for cutting through that noise. It does one simple thing — averages price over a rolling window — and in doing so turns a jagged line into a smooth one that makes the underlying trend easier to see.
Moving averages are also the building block for several other indicators (MACD, Bollinger Bands and more are built directly from them), so understanding them well pays off repeatedly. As ever, the tool is genuinely useful for describing a market — and routinely over-sold as a way to predict one.
What A Moving Average Is
A moving average is the average of price over a set number of recent periods, recalculated each period so it "moves" along with the chart.
Take a 50-day moving average: each day, it is the average closing price of the last 50 days. Tomorrow, the oldest day drops off and the newest is added, and the average is recomputed. Plotted over time, these values form a smooth line that trails through the middle of the price action.
Simple vs Exponential
There are two common kinds, and the difference is in how they weight the window.
- A simple moving average (SMA) weights every period equally — the 50-day SMA treats the price from 50 days ago exactly the same as yesterday's.
- An exponential moving average (EMA) weights recent prices more heavily, so it reacts faster to new moves. The 50-day EMA "hugs" price more closely than the 50-day SMA.
Neither is "better." The EMA turns sooner, which helps you see a change earlier but also produces more false turns in choppy conditions. The SMA is smoother and steadier but slower. Many analysts use SMAs for the big long-term lines (like the 200-day) and EMAs for shorter, more responsive ones.
The Common Periods
A handful of lookback lengths are used so widely that they have become reference points in their own right:
| Period | Typical use |
|---|---|
| 20 | Short-term trend; the immediate direction |
| 50 | Medium-term trend; a common "is the trend intact?" line |
| 200 | Long-term trend; widely watched as the dividing line between bull and bear conditions |
These numbers are conventions, not magic. They matter partly because so many participants watch them — a self-fulfilling element, exactly as with round-number support. The 200-day in particular is followed closely enough that price reacting around it is itself a much-discussed event.
How Moving Averages Are Used
1. Trend direction. The simplest use. Price above a rising moving average is consistent with an uptrend; below a falling one, a downtrend. The slope of the average matters as much as which side price is on — a flat moving average means no trend, just chop.
2. Dynamic support and resistance. In a trend, price often pulls back to a moving average and resumes from it, so the line acts like a sloping support or resistance (recall trendlines). The 50-day, in particular, is frequently watched this way. As always, it is a zone of interest, not a guaranteed floor.
3. Crossovers. When a shorter average crosses a longer one, analysts give it a name:
- A golden cross is a short average crossing above a long one (classically the 50 above the 200) — described as a shift toward a longer-term uptrend.
- A death cross is the short average crossing below the long one — described as a shift toward a downtrend.
This third use, in particular, is where the engine behind tools like Pattern Lab reads trend: a structured rule such as "price above the 50-day, and the 50-day above the 200-day" gives a precise, mechanical definition of an uptrend regime — useful exactly because it is unambiguous, not because it predicts anything.
The Inescapable Lag
Every moving average has one unavoidable property: it lags. Because it is an average of prices that have already happened, it can only ever follow price — never lead it. The longer the window, the smoother the line and the greater the lag. This is not a defect to be tuned away; it is the direct cost of smoothing. You can have responsiveness or smoothness, but not both at once.
Lag has a practical consequence: crossovers and other moving-average events arrive after a move is well underway, and in sideways, choppy markets they "whipsaw" — flipping back and forth as the averages tangle, generating a string of crosses that lead nowhere. Moving averages shine in trending conditions and frustrate in ranging ones.
A Worked Example
A share trades around 100 while its 50-day average sits at 96 and its 200-day at 90, both rising, with price above both. An analyst would describe this as a healthy longer-term uptrend: price > 50-day > 200-day, all sloping up. If price later pulls back to the rising 50-day near 98 and turns up again, the 50-day has acted as dynamic support on this occasion.
Months on, momentum fades: price slips below the 50-day, the 50-day flattens and eventually crosses below the 200-day — a death cross. This describes a deterioration in trend that has already occurred; by the time the cross prints, price has been weakening for weeks. That is the lag, in plain sight — and exactly why the cross is a description of the past, not a prediction.
The Honest Limits
- Moving averages lag by design. They follow price; they never lead it. Treating a lagging line as a leading signal is the classic error.
- Crossovers describe, they do not predict. A golden or death cross summarises a change that has happened. It can — and sometimes does — print right before price reverses.
- They whipsaw in ranges. Moving averages are trend tools. In sideways markets they generate a stream of meaningless crosses; the indicator is not "wrong," it is simply the wrong tool for that condition.
Used as intended — to smooth noise, gauge trend direction, and frame dynamic support and resistance — moving averages are among the most useful indicators there are. The next article turns from trend to momentum: the RSI, which measures not which way price is going, but how fast and how forcefully.
Finished this lesson? Track your progress.
Frequently asked questions
What is a moving average and what does it do?
A moving average is the average of price over a set number of recent periods, recalculated each period so the line moves along with the chart. It smooths out day-to-day price noise to reveal the underlying trend direction more clearly.
What's the difference between a simple moving average and an exponential moving average?
A simple moving average (SMA) weights every period equally, while an exponential moving average (EMA) weights recent prices more heavily. The EMA reacts faster to price changes and hugs the price closer, but produces more false turns in choppy markets; the SMA is smoother and steadier but slower to respond.
Why do the 20, 50, and 200-day moving averages matter?
These periods are widely used conventions: the 20-day shows short-term trend, the 50-day shows medium-term trend and is commonly used to check if a trend is intact, and the 200-day shows long-term trend and is watched as a key dividing line between bull and bear conditions. They matter partly because so many market participants watch them.
What is a golden cross and a death cross?
A golden cross occurs when a shorter moving average crosses above a longer one (classically the 50-day above the 200-day), while a death cross is when a shorter average crosses below a longer one. Both are described as shifts in trend, but they represent lagging descriptions of moves already underway rather than forecasts.
Why do moving averages lag, and what does that mean practically?
Moving averages lag because they average prices that have already happened, so they can only follow price, never lead it—the longer the window, the greater the lag. This means crossovers and other moving-average signals arrive after a move is well underway, and in choppy markets they can whipsaw back and forth without predicting anything useful.
Key terms
Next lesson
Continue learning
RSI
Related topics
Ironclad Research provides educational content only. Nothing on this platform is financial advice, a recommendation, or an offer to buy or sell any security. Always do your own research and consider professional advice before making financial decisions.