Skip to main content

Research method

Bollinger Bands: how they are built and used in the archive

Bollinger Bands wrap a moving average in an envelope whose width follows recent volatility. 102 readings in the TradersWeek archive use them, mostly to locate price and classify volatility while another tool makes the decision.

Output
Research filter
Input
Closing prices of one instrument
Horizon
Set by the lookback; 20 bars in the standard setting
Best use
Locating price against recent volatility and telling contraction from expansion before another rule decides

The archive describes how Bollinger Bands are constructed, varied and combined with other rules across 102 readings from the 1990s to the 2020s. TradersWeek has not attached its own reproducible backtest to this card, so nothing here is a performance claim.

  • The middle line is a 20-bar simple moving average and the outer lines sit 2 standard deviations of the closes above and below it, in John Bollinger's standard setting.
  • %B places the close inside the envelope (0 at the lower band, 1 at the upper); bandwidth measures how wide the envelope is relative to the middle line.
  • Platforms differ on population versus sample deviation; with 20 bars the sample version is about 2.6% wider, so a touch on one chart may not be a touch on another.
  • A close at the upper band describes a stretched move, not a reversal: in a trend price can walk along the band for many bars.
  • In the archive the bands appear beside moving averages (25 readings), RSI (17) and the stochastic oscillator (13) more often than on their own.

The graph · 6

How the method is built, and where it has been read

Depends on

Read in the archive24 of 102 readings

1992Constructing volatility-scaled bands with relative strength index confirmationIndicators and filters1992Constructing indicator phase across averages, volume and bandsIndicators and filters1992Constructing a banded weighted open-TRIN oscillatorIndicators and filters1992Constructing a weighted-average TRIN10 with Bollinger envelopesMarket breadth1993Score one swing with volume, bands, and price divergenceMarket breadth1993Listed-option timing as three separable clocksOptions and volatility1994Histogram confirmation and a second-series veto for MACD-family alertsIndicators and filters1994Implied volatility as a band-defined regime filter for index optionsOptions and volatility1994Constructing a 40-period envelope on on-balance volumeIndicators and filters1994Constructing a Bollinger band-width trend filterIndicators and filters1995Constructing price envelopes from averages, volatility, and regressionIndicators and filters1995Constructing regression projection bands and range oscillatorsIndicators and filters1995Constructing projection bands from least-squares slopesIndicators and filters1995Chart patterns as tactics, not strategyChart patterns1996Constructing mechanical rules from Bollinger Bands and stochasticsSystem design1996Constructing Bollinger bands, percent-b, and stochasticsIndicators and filters1996Constructing a price-volume percent-B disparityIndicators and filters1996Constructing a matched percent-B volume disparityIndicators and filters1996Constructing volume disparity from percent-bIndicators and filters1996Standard-error bands, width gates, and weekday countsIndicators and filters1996Constructing a standard-error envelope around a linear regressionIndicators and filters1996Dual-horizon ratio envelopes and regression error channelsIndicators and filters1997Rational group structure with a trend screen, RSI, and bandsIndicators and filters1997Asymmetric volatility band constructionIndicators and filters

How Bollinger Bands are calculated

Take the last 20 closes. Their simple average is the middle line. Measure how far each of those closes sits from that average, square the distances, average them and take the square root: that is the standard deviation of the window. The upper band is the middle line plus 2 deviations, the lower band the middle line minus 2. Move the window one bar and repeat. John Bollinger introduced the construction in the 1980s; 20 bars and 2 deviations are his standard setting.

Because the width is recomputed from the same window, the envelope narrows when closes cluster and widens when they spread out. A fixed-percentage envelope around a moving average cannot do that.

Two numbers derived from the bands

%B = (close − lower) / (upper − lower). It is 1 when the close is on the upper band, 0 on the lower band, 0.5 on the middle line, and it goes above 1 or below 0 when price closes outside the envelope. It turns "where is price inside the bands" into a number a rule can test.

Bandwidth = (upper − lower) / middle. It measures the width of the envelope relative to price, so periods can be compared. A low reading marks contraction; a rising one marks expansion. Bandwidth says nothing about direction.

Why two charts can draw different bands on the same data

The standard deviation can be computed two ways. The population version divides the sum of squared distances by the number of bars (20); the sample version divides by one less (19). With a 20-bar window the sample bands are about 2.6% wider. Both are "Bollinger 20, 2", yet a close that touches the band on one platform may sit just inside it on another. Before you copy a rule that depends on a touch or a %B level, check which deviation it was measured with.

Parameter set

The choices that change the reading

lookback
Lookback

Bars used for both the middle line and the deviation.

Default: 20A short window hugs price and produces many touches; a long one reacts late to a change in volatility.
multiplier
Deviation multiplier

How many standard deviations the outer lines sit from the middle line.

Default: 2Change it and every touch, %B level and bandwidth threshold changes with it.
middle
Middle line and deviation

Simple or exponential average; population or sample deviation.

Default: Simple average, population deviationLevels are not portable between variants.
confirmation
Confirmation

What turns a band reading into an action: an oscillator, a close back inside the band, a trend filter.

Default: None — a separate ruleWithout one, a band touch is only a description.

What 102 readings in the archive do with Bollinger Bands

Bollinger Bands appear in 102 readings of the TradersWeek research archive: 29 from the 1990s, 32 from the 2000s, 39 from the 2010s and 2 from the 2020s. In 45 of them the bands are the main subject; elsewhere they are one input among several.

They rarely decide alone. The most frequent companions are moving averages (25 readings), RSI (17), the stochastic oscillator (13), linear regression (7) and on-balance volume (7). The common pattern is the bands locating price and another tool deciding whether to act.

The readings where the bands are the subject return to four themes:

  • A band extreme needs a second opinion. Many constructions treat a touch as a candidate only and require RSI, a stochastic or a trend filter to agree before entry, with a stop kept in force because the stretch can persist.
  • How the width is set. Readings compare standard-deviation bands with fixed-percentage envelopes, Keltner-style range channels, mean-absolute-deviation width, regression standard-error channels and exponential variants, and ask what each change does to the envelope.
  • Band state as a filter. %B and bandwidth are used to classify each bar as contraction, expansion or transition, or to separate impulse, trend and fading momentum on the same series.
  • Solving for the price. Because the formula is known, the next close that would land exactly on a band can be solved for and used as a target. The unknown close also enters the deviation, so this is not a simple rearrangement.

Where it fits in a workflow

Use the bands to ask two questions: where is price relative to its recent range, and is that range shrinking or growing? Let a trend tool set direction and a separate rule set timing. Fix the lookback, the multiplier, the deviation type and the confirmation rule before you test anything, and keep them fixed while you test.

On the TradersWeek chart

Bollinger Bands in the terminal use a 20-bar simple moving average as the middle line and population standard deviation with a multiplier of 2, the same as TradingView's ta.bb. The multiplier accepts fractional values from 0.1 to 5. %B and Bollinger Band Width are separate indicators in their own pane; the terminal shows bandwidth as a percentage of the middle line.

Not investment advice. Historical behaviour of an indicator does not guarantee future results.