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

In this lesson you will

  1. Calculate a simple moving average and update it for a new close.
  2. Explain how an exponential moving average weights recent prices.
  3. 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.

Price with a short and a long moving average An illustrative price line with a 10-period and a 30-period simple moving average calculated from it. The 30-period average is smoother and turns later than the 10-period one. Price 10-period SMA 30-period SMA
Calculated from illustrative prices. Longer averages are smoother and lag more.

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.

Question 1 of 4Closes 1.2000, 1.2010, 1.2020, 1.2030. What is the 4-period SMA?

Show answer

Answer: 1.2015. Sum 4.8060 ÷ 4 = 1.2015.

Question 2 of 4What is k for a 9-period EMA?

Show answer

Answer: 0.2. k = 2 ÷ (9 + 1) = 0.2.

Question 3 of 4Previous EMA 1.1000, new close 1.1050, k = 0.2. What is the new EMA?

Show answer

Answer: 1.1010. 1.1000 + 0.2 × 0.0050 = 1.1010.

Question 4 of 4In which conditions do moving-average crossovers tend to give many false starts?

Show answer

Answer: Sideways ranges. In a range, price keeps crossing back and forth over the average.

Use it

Related lessons

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.

Optional and free. We'll email you new lessons occasionally. No spam, unsubscribe any time. See our Privacy Policy.

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.