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

1988issue C021-5

Indicator smoothing: lookback, weight, and scale

A noisy indicator series is commonly damped by replacing the raw values with a simple moving average or an exponential average. Editorial reading: lookback, recency weights, plot location, and vertical scale are a construction contract made before the series is read.

  • Lookback is the sampling length that jointly sets smoothness and how stale the average is, from a moderately smooth five-week mean to a highly subdued 52-week mean.
  • Equal weights belong at the center of the window, yet market charts usually attach the moving average to the most recent observation, so a centered reading lags by half its length.
  • Exponential smoothing mixes the prior smoothed value and the newest observation with complementary percentages, and a weighted moving average can create a similar recency bias with descending integers.
  • When an indicator rises to a much higher level, an arithmetic scale can magnify later swings; a logarithmic scale restates those swings in percentage terms.
Entries in this reading3 entries

Replacing a noisy series

A noisy indicator series is commonly damped by replacing the raw values with a simple moving average or an exponential average. A moving average is a trailing mean over a fixed number of ordered observations, rebuilt by dropping the oldest point when a new one arrives. A simple moving average of a chosen length is the mean of that many most recent observations and, at the next sample, is recomputed by deleting the oldest observation and inserting the newest.

Lookback sets smoothness and delay

Lookback is the sampling length that jointly sets smoothness and how stale the average is. Smoothing strength rises with lookback length: a five-week average is described as moderately smooth, while a 52-week average is described as highly subdued. Length is chosen by balancing extra smoothness against extra delay.

Where the average is plotted

Centering is placing a window average at the midpoint of the observations it contains rather than on the latest sample. A moving average belongs at the center of its window because each included point has equal weight, yet market charts usually attach it to the most recent observation. A centered average is out of date by half its length, so a two-week average lags by one week and a 52-week average lags by 26 weeks.

Exponential updates and a short start

Exponential smoothing is a recursive mix of the prior smoothed value and the newest observation using two complementary percentages. An exponential average updates by multiplying the prior exponential value by one percentage and the newest observation by a complementary percentage that together equal 100, which both eases calculation and tilts weight toward recent data.

If no prior exponential value exists, a short simple average of the first observations can initialize the recursion, and the earliest exponential values should be treated as provisional.

To approximate a simple average of period A, the newest observation receives weight 200/(A+1) percent and the prior exponential receives the remainder. For A equal to 5 the split is 33.33 and 66.67, and for A equal to 52 it is 3.8 and 96.2.

Integer weights as another recency tilt

A weighted moving average is a window average that multiplies nearer observations by larger integer weights before averaging the products. It can assign descending integers such as 9, 8, and 7 to successively older observations, then average the products, producing a recency bias that an exponential average also supplies with simpler arithmetic.

Arithmetic and logarithmic scale

When an indicator rises to a much higher level, an arithmetic scale can magnify later swings. A logarithmic scale, or converting the series to logarithms and plotting those values on an arithmetic axis, restates the swings in percentage terms.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
1 of 20 in the Weighted moving average track
19901-2 pp.Next on Weighted moving averageRecency weighting in simple, linear, and exponential moving averagesA moving average is specified by how many sampling periods enter the lookback and by which observation the average is computed for.
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