Moving averages explained
A moving average is the average closing price over the last N periods, recalculated every bar, which smooths price into a single line. Traders use it to see trend direction, to filter trades and as dynamic support or resistance; the 50-day and 200-day are the most watched.
Updated 2026-12-04 · By the Notes Before the Bell team
A single day's price is noisy. A moving average replaces that noise with a smoother line that shows where the market has been, on average, over a chosen window. It is one of the oldest and most widely used tools on a chart, which is also why it often matters: many traders watch the same lines.
What is a moving average?
Take the closing prices of the last N days, average them, then do it again tomorrow with the window shifted forward by one day. The result is a line that trails price. The longer the window, the smoother the line and the later it turns.
The key trade-off never goes away: a faster average reacts sooner but whipsaws more, and a slower average gives fewer false signals but confirms a trend change late. Every moving average is lagging by design.
Simple vs exponential moving average (SMA vs EMA)
The two common types differ only in how they weight the data.
SMA = (sum of the last N closes) / N | EMA today = close × k + EMA yesterday × (1 − k), where k = 2 / (N + 1)
- Simple (SMA): every day in the window counts equally. It is smoother and is the usual choice for the 50 and 200-day averages.
- Exponential (EMA): recent days count more, so the line hugs price more closely. It is popular for shorter windows such as 9, 12 or 21 days, and it is the building block of the MACD indicator.
Neither is "more correct." Pick one, keep it consistent, and do not keep switching until the chart looks the way you want.
The 20, 50 and 200-day moving averages
20-day: the short-term trend
About one trading month. Swing traders use it to judge whether a stock is in a short-term uptrend, and strong trends often pull back to it and hold. It is also the basis of Bollinger Bands; see our guide to Bollinger Bands.
50-day: the intermediate trend
About 10 weeks, or one quarter. Institutions and funds frequently reference it. A stock that trades above a rising 50-day is usually considered healthy; a close below it after a long run is often the first warning.
200-day: the long-term trend
About 40 weeks, or roughly 10 months. The 200-day moving average is the most watched line for the broad market. A common reading is simple: SPY above its 200-day means a long-term uptrend, below means a long-term downtrend.
Price with 20 and 50-day averages. Illustrative chart, not market data.
How to use a moving average
- As a trend filter. Only look for long setups when price is above a key average, and avoid them when it is below. This does not predict anything; it keeps you from fighting the dominant trend.
- As dynamic support or resistance. In a trend, price often pulls back to the 20 or 50-day and bounces. Unlike a horizontal level, the line moves with price. Treat it as a zone, not an exact number, and combine it with horizontal support and resistance.
- As a crossover signal. A faster average crossing a slower one is a classic trend-change signal. It is also the slowest and laggiest way to use them.
- As a risk marker. Many traders place an exit just beyond a moving average, because a close through it breaks the trend they were relying on.
Get tomorrow's levels in your inbox
Plus the free 23-page Pre-Market Playbook. Every weekday before the bell.
Golden cross vs death cross
A golden cross occurs when the 50-day average crosses above the 200-day; a death cross is the reverse. The names sound dramatic, but both are slow signals: by the time the lines cross, much of the move has already happened.
What our study found
We tested several moving average rules on SPY, the S&P 500 ETF, from January 1993 to November 2026. Signals were taken at the close and executed at the next open, trading costs were charged on every trade, and cash earned the 3-month T-bill rate while out of the market. Buy and hold returned 10.6% a year with a worst drop of −55.2%.
| Rule | Return/yr | Worst drop | Time invested | Trades | Win rate |
|---|---|---|---|---|---|
| Buy and hold | 10.6% | −55.2% | 100% | — | — |
| Golden cross 50/200 | 9.9% | −33.7% | 75% | 15 | 73% |
| 200-day moving average | 8.4% | −24.3% | 76% | 107 | 29% |
| 10-month average (Faber) | 9.4% | −25.0% | 76% | 23 | 61% |
- All three rules gave up some return compared with buy and hold, but they cut the worst drop from −55.2% to between −24.3% and −33.7%.
- The 200-day rule won only 29% of its trades across 107 trades. It works by cutting a few large losses, not by being right often. That is hard to follow in real time.
- The 10-month average, popularized by Mebane Faber, made just 23 trades and reached 9.4% a year, close to buy and hold with less than half the drawdown.
- Against 1,000 random-timing versions with the same exposure, the 10-month average ranked at the 81st percentile overall. But the result was uneven: in 1993–2009 these rules ranked between the 78th and 99th percentile, while in 2009–2026 they ranked at the 0th or 1st. In the second half, simply being out of the market at random did as well or better.
The honest summary: moving average rules lowered risk, but they did not beat buy and hold on return, and the benefit was concentrated in the early period that included two major crashes. Read the full numbers in our golden cross backtest, and see how the same idea performs across asset classes in trend following.
Common mistakes
- Expecting precision. Price can cut through a moving average and come back. Use zones and wait for a close.
- Using them in a range. In a sideways market, averages flatten and crossovers whipsaw. Check whether the market is trending first; our guide on how to read stock charts covers that.
- Stacking too many. Three averages are plenty. More lines do not add information.
When we publish each morning's levels, we show where price sits relative to these key averages alongside the horizontal zones, for example on our SPY levels page.
Educational content only. Not financial advice.
Frequently asked questions
What does the 200-day moving average tell you?
It shows the average closing price over roughly the last 10 months of trading. Price above it is generally read as a long-term uptrend, price below it as a long-term downtrend.
What is the difference between SMA and EMA?
A simple moving average weights every day equally. An exponential moving average gives more weight to recent days, so it reacts faster but also gives more false signals.
What is a golden cross vs a death cross?
A golden cross is when the 50-day average crosses above the 200-day average; a death cross is the opposite. Both are lagging signals because they appear after the price move has already happened.
Which moving average is best?
There is no best one. The 20-day suits short-term swings, the 50-day suits intermediate trends and the 200-day suits the long-term trend. Choose by the timeframe you trade.
Does a moving average strategy work?
In our SPY study, trend rules such as the 200-day and the 10-month average cut the worst drop to about a quarter of the market's, but returned less than buy and hold. Their value was lower risk, not higher return.
