What Is a Moving Average? Definition and Example
A moving average is the average closing price over a set number of recent periods, recalculated each period so the line moves along with the chart and smooths out day-to-day noise.
Example
A stock closes at $10, $11, $12, $11 and $13 over five days. The 5-day simple moving average is ($10 + $11 + $12 + $11 + $13) ÷ 5 = $11.40. The next day it closes at $14. The oldest price ($10) drops out and the new one comes in: ($11 + $12 + $11 + $13 + $14) ÷ 5 = $12.20. The average has moved up, reflecting the rising trend.
Why it matters
Moving averages are one of the simplest ways to answer the most important question on a chart: which way is the trend? A common reading:
- Price above a rising moving average suggests an uptrend.
- Price below a falling moving average suggests a downtrend.
- A shorter average crossing a longer one is a crossover, such as the golden cross.
Moving averages also often act as dynamic support in uptrends and resistance in downtrends.
Stupid Simple Trader's signal leans heavily on them: it scores price versus the 200-day SMA, the 50-day SMA and the 20-day EMA, plus the 50/200 cross.
Common misunderstanding
The main misconception is that a moving average is a prediction. It is a summary of the past, so it always lags. In choppy, sideways markets, price crosses back and forth and moving-average signals whipsaw.
Learn more
This page is a quick definition. For calculations, settings and strategies, read the full guides:
Related terms: death cross, MACD (built from two EMAs).
Try it
See price compared with its 20-day, 50-day and 200-day averages on any ticker page, such as /t/SPY.