Stockertim Dictionary · Markets
Simple moving average
Also called SMA, arithmetic moving average, simple moving averages
In short
A simple moving average is the plain average of closing prices over a set number of periods, with every period given equal weight.
- Intermediate
- Ratio or metric
- Checked
In detail
A simple moving average, or SMA, takes the closing prices for the most recent n periods, adds them up and divides by n. Each new period the oldest price drops out and the newest comes in, so the average moves along the chart as a smooth line. A 20-day SMA uses the last 20 trading days; a 200-day SMA covers roughly the last trading year.
Smoothing is the point. Daily prices jump around, and the average filters out much of that noise so the underlying direction is easier to see. A price sitting above a rising SMA is consistent with an uptrend; a price below a falling one with a downtrend. Two SMAs of different lengths can be compared, which is how crossovers such as the golden cross are defined.
The equal weighting is also the main weakness. A price from 20 days ago counts as much as yesterday's, so the line reacts slowly to change and lags turning points. When a large old price leaves the window, the average can jump even if nothing happened today. Traders who want faster reactions often use an exponential moving average instead. Neither kind forecasts prices: both summarise what has already happened.
Formula
SMA = (P1 + P2 + ... + Pn) / n
- P1
- the closing price of the oldest period in the window
- Pn
- the closing price of the latest period
- n
- the number of periods in the window
Worked example
A share closes at ₦10, ₦11, ₦12, ₦11 and ₦13 over five days.
- Sum: ₦10 + ₦11 + ₦12 + ₦11 + ₦13 = ₦57
- 5-day SMA: ₦57 / 5 = ₦11.40
- Next day closes at ₦14, so the ₦10 drops out: (₦11 + ₦12 + ₦11 + ₦13 + ₦14) / 5 = ₦12.20
The 5-day SMA moves from ₦11.40 to ₦12.20 as the window rolls forward.
In practice
Charting tools let users plot SMAs of any length on a price chart; 20, 50 and 200 periods are common choices. Market reports may say an index is trading above or below its 200-day average as shorthand for its longer-term direction.
Watch out
- Different lengths tell different stories: a share can be above its 20-day SMA and below its 200-day SMA at the same time.
- An SMA calculated on daily closes differs from one on weekly closes even when the period looks similar.
Learn it properly
Official sources
- Engineering Statistics Handbook: moving average · National Institute of Standards and Technology
Facts last checked on 4 November 2026.
Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.