Skip to main content
Track Adaptive moving average
1 / 24
Library

1991issue C061

Building variable-length moving averages from partitioned price changes

Construction of a variable-length moving average starts with explicit lookback bounds, estimates price-change dispersion from a long enough initial sample, and then steps the lookback when a new price change falls in a trigger partition band.

  • Construction begins by setting explicit minimum and maximum lookback lengths that cap how far the averaging window may adjust.
  • The mean and standard deviation of price changes are estimated from an initial sample that should be at least as long as the maximum allowed moving-average length, then used to cut partition bands in standard deviations from the mean.
  • The lookback shortens by one day when a price change lands in the extreme band, lengthens by one day in the near-mean band, and is left unchanged in the intermediate band or when a bound has already been reached.
  • After each new observation, the moving-average value, the mean price change, the standard deviation, and the partition boundaries are recalculated before the next period.
Entries in this reading2 entries

A moving average is a forecast formed from ordered price observations over a defined lookback interval. An adaptive moving average is a moving average whose lookback shortens or lengthens as new price changes fall into predefined distribution bands. Construction of the variable-length moving average begins by setting explicit minimum and maximum allowed lookback lengths.

Lookback bounds and price-change dispersion

Lookback bounds are the minimum and maximum lengths that cap how far the averaging window may adjust.

Price-change dispersion is the sample mean and standard deviation of successive price changes used to place the adjustment bands. The mean and standard deviation of price changes are estimated from an initial sample that should be at least as long as the maximum allowed moving-average length.

Partition bands

A partition band is a region of the price-change distribution, measured in standard deviations from the mean, that either triggers a length change or leaves length unchanged. Length-adjustment sensitivity is set by partitioning the price-change distribution into bands defined in standard deviations from the mean.

If price changes are treated as normally distributed, about 68 percent of observations are expected within one standard deviation of the mean, 95 percent within two, and 99.7 percent within three.

One construction example places a near-mean band at plus or minus 0.25 standard deviations and an extreme band beyond plus or minus 1.75 standard deviations. In that example the four partition boundaries evaluate to -0.19, 0.06, 0.14, and 0.39.

Length step and unchanged cases

A length step is the number of sampling intervals by which the lookback moves when an observation lands in a trigger band. The lookback shortens by one day when a price change lands in the extreme band and lengthens by one day when it lands in the near-mean band. The lookback is left unchanged when the observation is in the intermediate band or when the current length is already at its minimum or maximum.

Recalculation before the next period

After each new observation, the moving-average value, the mean price change, the standard deviation, and the partition boundaries are recalculated before the next period.

Example A–D partition boundaries for the variable-length average

Traders should read these four levels as the sidebar's trigger grid: a new price change between B and C lengthens the average, a change beyond A or D shortens it, and the bands in between leave length unchanged. The four numbers are the article's own worked example of mean minus or plus 0.25 and 1.75 standard deviations, stated in the text rather than read from a figure.
Traders should read these four levels as the sidebar's trigger grid: a new price change between B and C lengthens the average, a change beyond A or D shortens it, and the bands in between leave length unchanged. The four numbers are the article's own worked example of mean minus or plus 0.25 and 1.75 standard deviations, stated in the text rather than read from a figure.

The sidebar's example fixes Area 1 at ±0.25 standard deviations, Area 3 beyond ±1.75 standard deviations, and lookback between five and ten days.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
1 of 24 in the Adaptive moving average track
19911-9 pp.Next on Adaptive moving averageVariable-length moving average from change dispersionA variable-length moving average is an adaptive moving average whose current lookback is set by how large the latest price change is relative to the recent price-change-distribution.
All readings on this track · 24 readings
  1. 1991Building variable-length moving averages from partitioned price changes
  2. 1991Variable-length moving average from change dispersion
  3. 1992Constructing volatility-adaptive exponential smoothing
  4. 1995Constructing an adaptive moving average with an efficiency ratio and filter
  5. 1995Two-gate breakout confirmation with adaptive averages
  6. 1995Building momentum-scaled adaptive moving averages
  7. 1995Adaptive length as a construction choice inside exponential smoothing
  8. 1998Testing price-channel breakouts with a lag-aware adaptive average
  9. 1998Constructing filters by nesting offsets and variable weights
  10. 1998Constructing an efficiency ratio adaptive average and entry filter
  11. 2001Encoding candle structure as a numeric filter
  12. 2001Adaptive averages driven by cycle-phase speed
  13. 2005Constructing an adaptive moving average from a fractal-dimension weight
  14. 2005Range-dimension adaptive exponential filter
  15. 2010Constructing simple, exponential, and adaptive averages
  16. 2010How a price-hugging smoother is assembled from ordinary averages
  17. 2013Evaluating an adaptive moving average against a same-window moving average
  18. 2016Three-layer confirmation: adaptive average, stochastic relative strength index, and stop-and-reverse
  19. 2017One-alpha reverse-path exponential smoothing
  20. 2018Pair two adaptive averages to filter swing turns
  21. 2018Two Adaptive moving averages as a confirmation pair
  22. 2018Constructing an adaptive filter for adoption-cycle reversals
  23. 2018Constructing a deviation-scaled adaptive moving average
  24. 2020Walk-forward and adaptive averages as two tests of the same trend
All 28 readings tagged Adaptive moving average
Also on Adaptive moving average5 readings