Skip to main content
Track Bollinger Bands
11 / 45
Library

1998issue C061-4

Constructing three-state filters from Bollinger band envelopes

A reusable state-function classifies each bar as contraction, expansion, or transition by comparing the current upper and lower volatility bands with the prior bar, so overlays, paints, and later rules can share one envelope classifier.

  • A reusable state-function classifies each bar as contraction, expansion, or transition by comparing the current upper and lower volatility bands with the immediately prior band values.
  • Contraction is the joint event that the upper band has declined and the lower band has risen; expansion is the opposite pair of moves; transition is the residual assignment when neither test is true.
  • Overlay studies can draw the band pair only in contraction or only in expansion, and a phase-counter can require more than one confirming bar before a later rule treats a phase as established.
  • The same three-state rule can be rebuilt from a moving average plus a multiple of standard deviation, including a 21-period average or an exponential average with a 28-period default.
Entries in this reading2 entries

A shared reading of the envelope

Bollinger Bands are a pair of envelopes placed a chosen multiple of standard deviation above and below a moving-average midline of an ordered price series. The moving average is the lookback smoother that supplies that midline, and the upper and lower envelopes are offset from it.

A reusable numeric state-function can classify each bar as contraction, expansion, or transition by comparing the current upper and lower volatility bands with the immediately prior band values. Indicators, paints, and later rules can then share the same envelope logic.

How the three states are assigned

Contraction is the discrete state in which the upper envelope is lower than its prior value and the lower envelope is higher than its prior value. It is the joint event that the upper band has declined and the lower band has risen relative to the previous bar.

Expansion is the discrete state in which the upper envelope is higher than its prior value and the lower envelope is lower than its prior value. It is the joint event that the upper band has risen and the lower band has declined relative to the previous bar.

Transition is the residual state assigned when neither the contraction test nor the expansion test is true.

Default lookback and band offset

The primary default construction uses a 28-period lookback and a two-standard-deviation offset on the chosen price series.

Plots that follow the shared state

Overlay studies can plot the band pair only while the state equals contraction or only while it equals expansion, so the envelope is drawn only in those phases.

Confirming bars and a sample expansion rule

A phase-counter is a running tally of consecutive bars that remain in contraction or expansion. Consecutive-occurrence counters on those two states let a later rule require more than one confirming bar before a phase is treated as established. One sample expansion trigger waits until the expansion count exceeds 1.

Once that expansion trigger is set, a sample construction arms a stop above the highest high of the prior 10 bars and a stop below the lowest low of the prior 10 bars. The supplied logic does not reset the trigger.

The same rule on a moving-average envelope

The same three-state rule can be rebuilt from a moving average plus a multiple of standard deviation. One reconstruction uses a 21-period average, and another uses an exponential average with a 28-period default.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
11 of 45 in the Bollinger Bands track
19991-8 pp.Next on Bollinger BandsCombination filters with Bollinger Bands and the relative strength indexFixed-percentage envelopes keep a constant width, so the channel does not change when volatility changes.
All readings on this track · 45 readings
  1. 1992Constructing volatility-scaled bands with relative strength index confirmation
  2. 1994Implied volatility as a band-defined regime filter for index options
  3. 1995Constructing projection bands from least-squares slopes
  4. 1995Constructing regression projection bands and range oscillators
  5. 1996Constructing Bollinger bands, percent-b, and stochastics
  6. 1996Constructing mechanical rules from Bollinger Bands and stochastics
  7. 1996Constructing a standard-error envelope around a linear regression
  8. 1996Dual-horizon ratio envelopes and regression error channels
  9. 1997Rational group structure with a trend screen, RSI, and bands
  10. 1997Asymmetric volatility band construction
  11. 1998Constructing three-state filters from Bollinger band envelopes
  12. 1999Combination filters with Bollinger Bands and the relative strength index
  13. 1999Constructing stochastic timed exits and band-RSI reversals
  14. 1999Evaluating Bollinger Bands against fixed-width and range-based envelopes
  15. 2000Constructing a Bollinger Band target as a forward price
  16. 2001Numeric candlestick encoding with local size bands
  17. 2001Ranked candlestick sentiment to band-cross entries
  18. 2002Combining Bollinger Bands, RSI, and a stop-loss
  19. 2002Bollinger Bands remain filters, not forecasts
  20. 2002Constructing a stochastic RSI with Bollinger bands
  21. 2002Constructing a StochRSI and Bollinger mechanical system
  22. 2003Constructing volatility-scaled Bollinger envelopes
  23. 2003Why tick breadth fails as a market personality
  24. 2005Constructing Bollinger bands versus fixed trading bands
  25. 2006Squared versus absolute deviation in envelope construction
  26. 2006Confirming yen crossovers with implied volatility and bands
  27. 2006A daily candle reversal is a hypothesis until shorter sessions fail at the same zone
  28. 2008Rebuild the Relative Strength Index as price-scale bands
  29. 2008Reading Relative Strength Index extremes on one price axis with Bollinger Bands and moving averages
  30. 2011Three-filter confirmation for short-swing futures
  31. 2011Constructing an inverse Fisher stochastic with bands and averages
  32. 2012Constructing a Bollinger Band indicator suite
  33. 2012Stacking price extremes, crossovers, bands, and MACD
  34. 2012Adaptive Bollinger band impulse, trend, and momentum filters
  35. 2013Rescaling stochastic, percent-B, and wave-count parameters
  36. 2014Industry-group quartile pivots as a Bollinger Bands case study
  37. 2014Bollinger Bands as adaptive price envelopes: a 2014 classroom case
  38. 2016Trend-channel entry rules from stacked moving averages
  39. 2016A permission stack for Bollinger, RSI, and the 50-period average
  40. 2017Constructing weighted Bollinger bands and volume averages
  41. 2017Four swing-entry rules that share a timed exit
  42. 2017Two-wave monthly cycles as a regime filter
  43. 2019Constructing exponential-deviation-bands from a midline-average
  44. 2020Critiquing exponential variants of Bollinger Bands
  45. 2020Constructing selectable volatility and moving-average bands
All 84 readings tagged Bollinger Bands
Also on Bollinger Bands5 readings