Reading markets · Lesson 6 of 10
Moving averages
A moving average smooths recent closes into one line. How simple and exponential averages are calculated, why they lag, and what crossovers do and do not tell you.
- 3 min read
- 4-question check
- Beginner
- ✓ Completed
In this lesson you will
- Calculate a simple moving average and update it for a new close.
- Explain how an exponential moving average weights recent prices.
- Describe why moving averages lag and what that means for crossovers.
A moving average (MA) is the average of the last n closing prices, recalculated on every bar. It turns a jagged price line into a smoother one, which makes the general direction easier to see.
Simple moving average (SMA)
Worked example: a 5-period SMA
Last five closes: 1.0850, 1.0860, 1.0840, 1.0870, 1.0880
Sum: 5.4300. 5-period SMA = 5.4300 ÷ 5 = 1.0860
Next close 1.0890: drop the oldest (1.0850) and add the newest.
New sum 5.4340 ÷ 5 = 1.0868
Illustrative numbers, not live prices.
Exponential moving average (EMA)
An EMA gives more weight to recent closes, so it reacts faster. Each new value is: previous EMA + k × (close − previous EMA), where k = 2 ÷ (n + 1).
Worked example: one EMA step
5-period EMA: k = 2 ÷ (5 + 1) ≈ 0.333
Previous EMA 1.0860, new close 1.0890
EMA = 1.0860 + 0.333 × (1.0890 − 1.0860) = 1.0860 + 0.0010 = 1.0870
Illustrative numbers, not live prices.
Lag and crossovers
Because it is built from past prices, every moving average lags. Longer periods are smoother and lag more. People often watch price crossing an average, or a short average crossing a long one. In steady trends these crossovers can describe the move; in sideways markets they flip back and forth and produce many false starts.
Common settings such as 20, 50 or 200 periods are conventions, not magic numbers. Any rule that uses an average needs testing across different market conditions before it means anything.
Common mistakes
- Treating a crossover as a buy or sell instruction.
- Optimising the period until past results look perfect.
- Forgetting that an average lags most when price turns sharply.
Key takeaways
- An SMA is the plain average of the last n closes.
- An EMA weights recent closes more: EMA = prev + k × (close − prev), k = 2 ÷ (n + 1).
- All moving averages lag; longer ones lag more.
- Crossovers work better in trends and poorly in ranges; none is a guaranteed signal.
Check your understanding
4 quick questions. Pick an answer to see an explanation straight away. Nothing is graded and you can try again as often as you like.
Use it
Related lessons
- MACD Level 3 · 3 min
- Three kinds of analysis Level 3 · 4 min
- Trends and market structure Level 3 · 4 min
Finished the lesson?
Mark it complete to track your progress through Reading markets. Saved in this browser only.
OptionalFree
Email me new lessons
This lesson and the rest of the Academy are free to read without signing up. If you would like a short note when new lessons are published, leave your email.
Educational content only. Not personal financial advice. This lesson explains a concept with illustrative numbers. It is not a recommendation to trade and does not consider your circumstances or the rules where you live. Leveraged trading carries a high risk of losing money. Read the risk disclaimer.