Skip to content
Wildflower
Join free
Indicators

Free Trading School · Level 2 · Course 2.4

Averages with shaped weights

Lesson 46 of 99 in IndicatorsModule 7: More momentum and volume indicators

Reading the market · Indicators

Averages with shaped weights

Wildflower Trading School · Lesson 2.4.7.14

Wildflower

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

  1. On the 5-minute practice chart in Wildflower, or any platform, find a much bigger than the ones around it.
  2. Write down its close and the 2 closes each side.
  3. Work out the simple average, the 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 waitlist

Quick check

  1. 1. ALMA's offset is 0.85. Where does its weight peak?

  2. 2. Why does a Hamming average lag as much as a simple one?

  3. 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

Make a free account and we'll remember where you are, so “Momentum oscillators” is waiting next time.

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 is a set of weights on its last closes. Over 9 candles the gives each 11.1%, and the gives the newest 20%.
  • : 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.
  • and averages are humps that count the middle most. They're symmetrical, so they lag like a simple average, but smoother. The always uses four closes, 1, 2, 2, 1, divided by 6.
  • : 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 (halfway between the middle two for an even count). : (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.
  • : 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 , not .

Worked example

Made-up numbers

The least squares average, manually

Made-up closes, oldest first · 5,000 · 5,006 · 5,006

  1. Their average, 5,004, sits at the middle candle
  2. The best-fit line rises 3 points a candle
  3. At the newest candle: 5,004 + 3 = 5,007
  4. 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

Drill

Made-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.