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.
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.
All readings on this track · 45 readings
- 1992Constructing volatility-scaled bands with relative strength index confirmation
- 1994Implied volatility as a band-defined regime filter for index options
- 1995Constructing projection bands from least-squares slopes
- 1995Constructing regression projection bands and range oscillators
- 1996Constructing Bollinger bands, percent-b, and stochastics
- 1996Constructing mechanical rules from Bollinger Bands and stochastics
- 1996Constructing a standard-error envelope around a linear regression
- 1996Dual-horizon ratio envelopes and regression error channels
- 1997Rational group structure with a trend screen, RSI, and bands
- 1997Asymmetric volatility band construction
- 1998Constructing three-state filters from Bollinger band envelopes
- 1999Combination filters with Bollinger Bands and the relative strength index
- 1999Constructing stochastic timed exits and band-RSI reversals
- 1999Evaluating Bollinger Bands against fixed-width and range-based envelopes
- 2000Constructing a Bollinger Band target as a forward price
- 2001Numeric candlestick encoding with local size bands
- 2001Ranked candlestick sentiment to band-cross entries
- 2002Combining Bollinger Bands, RSI, and a stop-loss
- 2002Bollinger Bands remain filters, not forecasts
- 2002Constructing a stochastic RSI with Bollinger bands
- 2002Constructing a StochRSI and Bollinger mechanical system
- 2003Constructing volatility-scaled Bollinger envelopes
- 2003Why tick breadth fails as a market personality
- 2005Constructing Bollinger bands versus fixed trading bands
- 2006Squared versus absolute deviation in envelope construction
- 2006Confirming yen crossovers with implied volatility and bands
- 2006A daily candle reversal is a hypothesis until shorter sessions fail at the same zone
- 2008Rebuild the Relative Strength Index as price-scale bands
- 2008Reading Relative Strength Index extremes on one price axis with Bollinger Bands and moving averages
- 2011Three-filter confirmation for short-swing futures
- 2011Constructing an inverse Fisher stochastic with bands and averages
- 2012Constructing a Bollinger Band indicator suite
- 2012Stacking price extremes, crossovers, bands, and MACD
- 2012Adaptive Bollinger band impulse, trend, and momentum filters
- 2013Rescaling stochastic, percent-B, and wave-count parameters
- 2014Industry-group quartile pivots as a Bollinger Bands case study
- 2014Bollinger Bands as adaptive price envelopes: a 2014 classroom case
- 2016Trend-channel entry rules from stacked moving averages
- 2016A permission stack for Bollinger, RSI, and the 50-period average
- 2017Constructing weighted Bollinger bands and volume averages
- 2017Four swing-entry rules that share a timed exit
- 2017Two-wave monthly cycles as a regime filter
- 2019Constructing exponential-deviation-bands from a midline-average
- 2020Critiquing exponential variants of Bollinger Bands
- 2020Constructing selectable volatility and moving-average bands