Last lesson's simple moving average treats every close in its window the same. The exponential moving average doesn't. It leans on the newest closes. By the end of this lesson, you'll know how it's worked out, how much weight each close gets, and what that changes on a chart.
1 of 8
What you'll learn
- Weight the newest close. An EMA gives each new close 2 ÷ (length + 1) of the weight.
- Move the line each candle. It moves that fraction of the way towards the new close.
- See how weight fades. The newest closes count most. Older ones never quite reach zero.
- Compare it with a simple average. It turns sooner but reacts more to small wobbles.
- Expect small differences. Platforms can differ near the start of the data.
Exercise
- On the 5m practice chart in Wildflower, click Indicators and add a 20-candle simple (SMA) and a 20-candle exponential (EMA) moving average.
- Find 3 turns and note which line turned first each time, and by how many candles.
Practise this on Wildflower's free practice chart. It needs a free account.
Join waitlistQuick check
1. What weight does a 19-candle EMA give the newest close?
2. Old EMA 5,000, weight 0.2, new close 4,990. What is the new EMA?
3. Why does an EMA usually turn sooner than an SMA of the same length?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
An exponential moving average moves a set fraction of the way towards each new close, 2 ÷ (length + 1), so the newest closes count most and it reacts sooner than a simple average of the same length.
- An A moving average that gives the newest closes more weight, so it reacts sooner than a simple one of the same length.More in the glossary (EMA) gives each new close a weight of 2 ÷ (length + 1). For a length of 9, that's 0.2.
- New EMA = old EMA + weight × (close − old EMA). Each candle, the line moves that fraction of the way towards the close.
- A 9-candle A moving average where every close in the window counts the same: add them up and divide by how many there are.More in the glossary counts each of its 9 closes about 11%. A 9-candle EMA counts the newest 20%, then 16%, 12.8% and less each time. The newest nine carry about 87% together, and older closes never quite reach zero.
- It sits closer to price and turns sooner. On the made-up chart, the EMA 20 turned 3 candles after the top and the SMA 20 6. Turning sooner also means reacting more to small wobbles: see Why indicators lag.
- The first value has to start somewhere, so platforms can differ slightly near the start of the data. EMA 20 and SMA 20 are different lines. More: EMA vs SMA.
Worked example
Made-up numbersThree candles of a 9-candle EMA
Made-up numbers · weight 0.2 · EMA starts at 5,000
- Close 5,010: gap 10 × 0.2 = 2. EMA 5,002
- Close 5,010: gap 8 × 0.2 = 1.6. EMA 5,003.6
- Close 5,015: gap 11.4 × 0.2 = 2.28. EMA 5,005.88
The line chases each close, a fifth of the way at a time.
Your turn
Drill9-candle EMA · weight 0.2 · old EMA 5,000 · new close 5,020
Trading is risky. You can lose money. This lesson explains how trading works. It isn't advice.