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.
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.
All readings on this track · 20 readings
- 1988Indicator smoothing: lookback, weight, and scale
- 1990Recency weighting in simple, linear, and exponential moving averages
- 1990Seed and recurrence construction for moving averages
- 1990Constructing a five-day step-weighted moving average
- 1992Constructing simple, weighted, and exponential moving averages
- 1992Constructing moving averages with weighting schemes and extra filters
- 1992Constructing a weighted-average TRIN10 with Bollinger envelopes
- 1992Constructing a banded weighted open-TRIN oscillator
- 1993Evaluating a weighted dual rate-of-change momentum filter
- 1993Constructing equal, linear and exponential moving averages
- 1993Constructing a general weighted moving average from one exponent
- 1993Calibrating the weighted-moving-average exponent
- 1993Constructing an exponent-weighted average of put-call ratios
- 1994Cycle-tuned momentum with spectral peaks
- 1999How a five-bar sine-weighted average is assembled
- 2003Same-scale trend filter from a rolling least-squares endpoint
- 2003How a rolling linear-regression endpoint is assembled as a moving-trend
- 2004Constructing a volume-weighted moving average as a forecast baseline
- 2005Constructing a move, volume and recency weighted average
- 2016MACD as a zero-line filter with dual moving averages