Every moving average is a list of weights, how much each of the last few closes counts. The simple average counts them all the same. The weighted average counts them in a staircase. Change the shape of those weights, and you get a different average. By the end of this lesson, you'll know eight more. ALMA, the Hamming and sine-weighted averages, the symmetrically weighted average, the least squares average, the moving median, the midpoint, and the elastic volume-weighted average. For each one, you'll know what its shape does to the line.
1 of 7
What you'll learn
- See an average as weights. Compare the shapes from flat to bell curve.
- Set ALMA's offset and sigma. Move its peak and change how sharp it is.
- Work out an LSMA manually. Find the end of the best-fit line through three closes.
- Use a median against spikes. See why one jump barely moves it.
- Weight candles by volume. Watch the EVWMA move further on busy candles.
Exercise
- On the 5-minute practice chart in Wildflower, or any platform, find a One bar on a price chart. It shows where price opened and closed, and the highest and lowest it reached, in one stretch of time.More in the glossary much bigger than the ones around it.
- Write down its close and the 2 closes each side.
- Work out the simple average, the The middle result once a list is sorted from smallest to biggest. Half the results are above it and half below.More in the glossary and the midpoint of those 5 closes, and see which one the big candle moved most.
Practise this on Wildflower's free practice chart. It needs a free account.
Join waitlistQuick check
1. ALMA's offset is 0.85. Where does its weight peak?
2. Why does a Hamming average lag as much as a simple one?
3. One close spikes far above the rest. Which line barely moves?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
Every moving average is a set of weights on its last closes. ALMA uses a bell curve, Hamming and sine-weighted averages use humps, the symmetrically weighted average uses 1, 2, 2, 1, the LSMA reads the end of a best-fit line, the median and midpoint pick closes, and the EVWMA weights each candle by its share of volume.
- Every The average of the last few closing prices, worked out again on every candle and drawn as a line.More in the glossary is a set of weights on its last closes. Over 9 candles 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 gives each 11.1%, and the 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 gives the newest 20%.
- A moving average that weights its closes on a bell curve. The offset sets where the peak sits and the sigma how sharp it is.More in the glossary: bell-curve weights. The offset (0 oldest to 1 newest) puts the peak at offset × (length − 1). The sigma sets the sharpness, with a width of length ÷ sigma. At 9, 0.85 and 6, the peak is the second-newest close (30.1%), and it sits about 1.6 candles behind on a steady climb.
- A moving average whose weights form a hump, counting the middle closes most and both ends least.More in the glossary and A moving average weighted along a sine curve, so the middle closes count most. It lags like a simple average but is smoother.More in the glossary averages are humps that count the middle most. They're symmetrical, so they lag like a simple average, but smoother. The An average of the last four closes, weighted 1, 2, 2 and 1, then divided by 6. It has no length to set.More in the glossary always uses four closes, 1, 2, 2, 1, divided by 6.
- The end point of the straight line that best fits the last few closes. It has no lag on a straight climb and overshoots at turns.More in the glossary: the end of the best-fit line through the last closes, always equal to 3 × WMA − 2 × SMA. 5,000, 5,006, 5,006 gives 5,007, above every close. No lag on a straight climb, and it overshoots at turns, like the Hull average.
- The middle close of the last few candles once they are sorted. One spike barely moves it.More in the glossary: the middle close (halfway between the middle two for an even count). Halfway between the highest and the lowest close of the last few candles.More in the glossary: (highest close + lowest close) ÷ 2, which isn't quite the middle of a Donchian channel. With 5,000, 5,004, 5,060, 5,006, 5,002 the mean is 5,014.4, the median 5,004 and the midpoint 5,030.
- An average that moves towards each close by that candle’s share of the volume in its window, so busy candles move it more.More in the glossary: new = ((window volume − candle volume) × old + candle volume × close) ÷ window volume. 500 of 10,000 contracts moves it 5% of the way, 3,000 moves it 30%. Like the VWMA, it needs real traded How many contracts or shares traded in a stretch of time, such as one candle.More in the glossary, not The number of times the price changed during a candle, shown as volume on many forex charts. It counts price changes at one broker, not the amount traded.More in the glossary.
Worked example
Made-up numbersThe least squares average, manually
Made-up closes, oldest first · 5,000 · 5,006 · 5,006
- Their average, 5,004, sits at the middle candle
- The best-fit line rises 3 points a candle
- At the newest candle: 5,004 + 3 = 5,007
- Check: 3 × WMA 5,005 − 2 × SMA 5,004 = 5,007
The line sits above every close, because it still points up after price stopped rising.
Your turn
DrillMade-up closes · 5,010 · 5,002 · 5,030 · 5,006 · 5,008
Trading is risky. You can lose money. This lesson explains how trading works. It isn't advice.