The simple moving average counts every close in its window the same. The exponential average counts newer closes more, and never quite lets go of the old ones. The weighted moving average sits between them. By the end of this lesson, you'll be able to work one out manually, you'll know exactly how its weights fall away, and you'll see how quickly it turns compared with the other two.
1 of 7
What you'll learn
- Weight the closes. Give the newest the most and the oldest the least.
- Work one out manually. Multiply, add, and divide by the total of the weights.
- Compare it with the SMA and EMA. See how its weights sit between the two.
- See how quickly it turns. Watch it react sooner, and to more noise.
Exercise
- On the 5m practice chart in Wildflower, or any platform, write down the last 5 closes.
- Work out a 5-candle A moving average where newer closes count more: over n candles the newest counts n times and the oldest once, divided by the total of the weights.More in the glossary manually, with weights 1 to 5 adding up to 15, and compare it with a 5-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.
Practise this on Wildflower's free practice chart. It needs a free account.
Join waitlistQuick check
1. In a 10-candle WMA, what weight does the newest close get?
2. Why doesn't a WMA jump when an old close leaves its window?
3. Closes 5,000 and 5,006, oldest first, in a 2-candle WMA. What is it?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
A weighted moving average gives each close a weight that falls in a straight line, from the length for the newest close down to 1 for the oldest, then divides by the total of the weights.
- A A moving average where newer closes count more: over n candles the newest counts n times and the oldest once, divided by the total of the weights.More in the glossary (WMA) gives the newest close a weight equal to the length, the next one less, down to 1 for the oldest.
- WMA = (each close × its weight, added up) ÷ the total of the weights. For 20 candles the weights add up to 20 × 21 ÷ 2 = 210.
- Example: 5,000, 5,004, 5,008 and 5,012 with weights 1 to 4: 50,080 ÷ 10 = 5,008. The 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 is 5,006.
- The weights fall in a straight line and then stop, between the 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's flat weights and the 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's, which never reach zero. On the made-up chart, after the top the WMA turned 6 candles later, the EMA 7 and the SMA 14.
- On a steady climb a 20-candle SMA sits 9.5 candles behind price and a 20-candle WMA about 6.3. An old close fades out gently, so there's no sudden jump when it leaves.
- It's the building block of the Hull average. Quicker also means noisier in a sideways market.
- Next: momentum and rate of change. More: moving averages guide.
Read more in the weighted moving average guide.
Worked example
Made-up numbersA 4-candle WMA
Made-up closes, oldest first · 5,000, 5,004, 5,008, 5,012
- 5,000 × 1 = 5,000
- 5,004 × 2 = 10,008
- 5,008 × 3 = 15,024
- 5,012 × 4 = 20,048
- Total 50,080 ÷ weights 10 = 5,008
The simple average is 5,006, so the WMA sits 2 points closer to the newest price.
Your turn
DrillMade-up closes, oldest first · 5,010 · 5,016 · 5,022
Trading is risky. You can lose money. This lesson explains how trading works. It isn't advice.