Skip to main content
Track Weighted moving average
2 / 20
Library

1990issue C041-2

Recency weighting in simple, linear, and exponential moving averages

A moving average is specified by lookback length and by which observation the average is computed for. This note holds those two choices fixed and compares equal, linear, and exponential weights as different recency voting rules on the same window.

  • A moving average is specified by how many sampling periods enter the lookback and by which observation the average is computed for.
  • Simple, linear, and exponential constructions all average a window of observations to damp short-lived fluctuations and isolate an underlying trend, but they distribute weight differently.
  • In an equal-weight average each observation receives the same fraction of the total weight, so an older change of a given size offsets a newer change of the same size.
  • A linear-weight average scales the newest bar by the lookback length. An exponential-weight average uses that same newest-bar weight and applies the leftover weight to the previous exponential value.
Entries in this reading2 entries

Lookback length and the target bar

A moving average is a lookback smoother on ordered price, volume, or breadth observations that reduces short-lived fluctuations over a defined sampling interval. It is specified by two construction choices: how many sampling periods enter the lookback, and which observation the average is computed for.

Lookback length is the number of sampling periods included in the average, stated in the same periodicity as the series. Simple, linear, and exponential constructions all average a window of observations to damp short-lived fluctuations and isolate an underlying trend, but they distribute weight across that window differently.

Equal-weight average

In an equal-weight average, each observation in the lookback receives the same fraction of the total weight. In a simple moving average each observation in an N-period lookback receives equal weight 1/N, so an older change of a given size offsets a newer change of the same size.

Because a long equal-weight average still gives full weight to its oldest observation, the next update can be anticipated once a large old print is about to leave a 200-period window.

Linear-weight average

A weighted moving average assigns larger influence to more recent observations than to older ones inside the same lookback. A linear-weight average scales observations by integers from one for the oldest bar to the lookback length for the newest bar, then divides by the sum of those integers.

A linear weighted moving average multiplies the oldest observation by 1 and the newest by N, then divides by the sum of the integers from 1 through N rather than by N. For a five-period linear average the newest observation is scaled by 5 and the oldest by 1, and the weighted sum is divided by 15.

Exponential-weight average

An exponential-weight average is a recursive weighted average that applies a single newest-bar weight to the latest observation and the residual weight to the previous average. An exponential moving average uses the same newest-observation weight as the matching linear average, then applies the leftover weight to the previous exponential value instead of assigning a distinct weight to every older bar.

The newest-bar weight of an exponential moving average can be computed as 2 divided by one more than the lookback length. In the five-period case that shared newest-bar weight is 0.33, so the update mixes 0.33 times the latest observation with the complementary weight on the prior exponential average.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
2 of 20 in the Weighted moving average track
19901-8 pp.Next on Weighted moving averageSeed and recurrence construction for moving averagesRoutine technical work is described as being dominated by three constructions: a simple moving average, a step-weighted moving average, and an exponentially smoothed average.
All readings on this track · 20 readings
  1. 1988Indicator smoothing: lookback, weight, and scale
  2. 1990Recency weighting in simple, linear, and exponential moving averages
  3. 1990Seed and recurrence construction for moving averages
  4. 1990Constructing a five-day step-weighted moving average
  5. 1992Constructing simple, weighted, and exponential moving averages
  6. 1992Constructing moving averages with weighting schemes and extra filters
  7. 1992Constructing a weighted-average TRIN10 with Bollinger envelopes
  8. 1992Constructing a banded weighted open-TRIN oscillator
  9. 1993Evaluating a weighted dual rate-of-change momentum filter
  10. 1993Constructing equal, linear and exponential moving averages
  11. 1993Constructing a general weighted moving average from one exponent
  12. 1993Calibrating the weighted-moving-average exponent
  13. 1993Constructing an exponent-weighted average of put-call ratios
  14. 1994Cycle-tuned momentum with spectral peaks
  15. 1999How a five-bar sine-weighted average is assembled
  16. 2003Same-scale trend filter from a rolling least-squares endpoint
  17. 2003How a rolling linear-regression endpoint is assembled as a moving-trend
  18. 2004Constructing a volume-weighted moving average as a forecast baseline
  19. 2005Constructing a move, volume and recency weighted average
  20. 2016MACD as a zero-line filter with dual moving averages
All 24 readings tagged Weighted moving average
Also on Weighted moving average5 readings