Prerequisite: A repeatable multi-timeframe process
On a small screen, scroll the figure sideways or open it full size.
Read the figure
The SMA averages the stated closes. The EMA update uses a stated previous value and alpha=0.5.
Learning objective
Compare equal weighting with exponential weighting and recognise the trade-off between responsiveness and noise.
A simple moving average sums the last N observations and divides by N. Specify whether observations are closing prices, another price source or a different timeframe. A 20-bar average on an hourly chart describes a different horizon from a 20-day average.
An exponential moving average gives greater weight to recent prices. A common smoothing factor is 2/(N+1). With identical inputs, it generally responds faster than an SMA, but faster responses also mean more changes of direction in a sideways market.
Use slope, distance and crossings as descriptions of historical price behaviour. A price crossing an average does not independently establish a profitable strategy. Choose settings before examining test results and evaluate transaction costs, repeated crossings and the rule for a completed candle.
Worked example
Hypothetical closes of 100, 102 and 104 produce a three-bar SMA of 102. If the previous three-bar EMA is 102 and the next close is 106, alpha 0.5 gives a new EMA of 104. Neither number predicts the next close.
Common mistakes
Avoid switching periods until a chart looks perfect. Averages lag turning points and can produce frequent whipsaws; no moving average guarantees a result.
Practice
Calculate a three-bar SMA for five invented closes. Plot when an old observation leaves the window and compare that change with an EMA update.
Sources & further reading
Saved on this device. Export a backup before clearing browser data or changing device.
My learning pathEditorial review: 15 October 2026 · AI-assisted technical review; independent specialist review pending.
Translation available · editorial review pending