Bollinger BandWidth

Bollinger BandWidth
Indicator

VolatilitySeparate panelFree on ChartLabs

Bollinger BandWidth is the gap between the upper and lower band, as a percent of the middle band. It shows whether the bands are wide or pinched.

Created by John Bollinger, 2001. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIBollinger BandWidthchartlabs.co/charts
Atlas reads it

BollingerBandWidth 9.88

Pane

Atlas reads it

BollingerBandWidth 9.88

Pane

Illustration on simulated data.

Bollinger BandWidthWhat is the Bollinger BandWidth indicator?

Bollinger BandWidth takes the same bands as Bollinger Bands: a 20-bar average of the close, plus and minus 2 population standard deviations. The line is the gap between the outer bands, divided by the middle band, times 100.

A flat window has a width of 0. A middle band of 0 leaves the bar empty. With the length set to 2, for illustration, closes of 10 and 12 give a width of 36.36 on the second bar. At the default of 20, the first value is on the 20th bar.

Two more lines track the highest and lowest width of the last 125 readings. They start 125 widths after BandWidth itself. A hole in the source does not reset that window. The colours are #2962FF, rgba(242, 54, 69, 0.5) and rgba(8, 153, 129, 0.5). John Bollinger sets the definition in Bollinger on Bollinger Bands (McGraw-Hill, 2001).

Percent, not a ratio

The line is the gap as a percent of the middle band. A reading of 10 means the bands are 10 percent of the middle.

125 widths later

Highest expansion and lowest contraction wait for 125 BandWidth values. They are not the same window as the bands.

Bollinger BandWidth signalsFive patterns to know.

1Inconclusive

Width near a low

The bands are pinched. A quiet stretch can break, and this line does not say which way.

2Inconclusive

Width near a high

The bands are stretched. The move that opened them may be tiring, or still running.

3Inconclusive

Width rising

The bands are opening. Price is moving farther from its average.

4Inconclusive

Width falling

The bands are closing back in. The recent swing is losing range.

5Inconclusive

Width at zero

The window of closes did not move, so the bands have no gap.

Bollinger BandWidth formulaHow it is calculated.

BBW=100×upper−lowermiddle
STEP 1

Build the bands

Middle is the 20-bar average of the close. The bands sit 2 population standard deviations either side. A deviation within 1e-10 of the mean counts as 0.

STEP 2

Turn the gap into a percent

Subtract the lower band from the upper, divide by the middle, and multiply by 100. The first value is on the 20th bar.

STEP 3

Mark the extremes

Highest expansion is the highest of the last 125 widths. Lowest contraction is the lowest. They start 125 widths later.

Bollinger BandWidth settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length201 to 5,000Bars in the average and the deviation. The Signal lens changes this.
SourceCloseCloseThe price the bands are built from. The default is the close.
StdDev20.001 to 50How many standard deviations the outer bands sit from the middle.
Highest Expansion Length1251 to 5,000How many BandWidth values the high line looks back over.
Lowest Contraction Length1251 to 5,000How many BandWidth values the low line looks back over.
Lines#2962FF, rgba(242, 54, 69, 0.5), rgba(8, 153, 129, 0.5)FixedBandWidth in blue. The high extreme is red and the low extreme is green, both at half strength.
Setting
Length
Default
20
Range
1 to 5,000
What it changes
Bars in the average and the deviation. The Signal lens changes this.
Setting
Source
Default
Close
Range
Close
What it changes
The price the bands are built from. The default is the close.
Setting
StdDev
Default
2
Range
0.001 to 50
What it changes
How many standard deviations the outer bands sit from the middle.
Setting
Highest Expansion Length
Default
125
Range
1 to 5,000
What it changes
How many BandWidth values the high line looks back over.
Setting
Lowest Contraction Length
Default
125
Range
1 to 5,000
What it changes
How many BandWidth values the low line looks back over.
Setting
Lines
Default
#2962FF, rgba(242, 54, 69, 0.5), rgba(8, 153, 129, 0.5)
Range
Fixed
What it changes
BandWidth in blue. The high extreme is red and the low extreme is green, both at half strength.
2033 bars in the bands
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Bollinger BandWidth strategiesUse it in 3 setups.

A pinch, then a close outside

WhileBBWis near its lowwait for a close outside the bands

A pinched width says the range is small. Traders often wait for price to leave the bands before they pick a side.

A stretch after a long move

IfBBWis near its highthe bands are already open

A wide reading says the recent move used a lot of range. It is context for the next bar, not an exit by itself.

Skip a dead window

IfBBWis0the closes did not move

A width of 0 means the window was flat. There is no band to break.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Bollinger BandWidth mistakesCommon mistakes.

Treating a pinch as a direction

A low width says the bands are close together. It does not say whether the next close will be up or down.

Reading the percent as a price

A reading of 10 is 10 percent of the middle band, not 10 points of price.

Expecting the extreme lines on bar 20

BandWidth starts on the 20th bar. The 125-bar extremes start 125 widths after that.

Bollinger BandWidth combinationsPair it with these.

Bollinger BandWidth FAQQuestions traders ask.

What are the Bollinger BandWidth settings?

Length 20, source close, standard deviation 2, and 125 bars for both the highest expansion and the lowest contraction.

When does the line start?

On the 20th bar. The two extreme lines start once 125 BandWidth values exist.

What is the length-2 example?

For illustration, closes of 10 and 12 with a multiplier of 2 put the second bar at 36.36. That is (4 / 11) times 100. The default length is 20.

What does a reading of zero mean?

The window of prices was flat, so the bands have no gap. A deviation within 1e-10 of the mean is treated as zero.

What if the middle band is zero?

The bar is empty. Dividing by a zero average is not drawn.

Does a gap in the data reset the 125?

No. The extreme lines use the BandWidth values they have. A hole does not start the window over.

Who defined BandWidth?

John Bollinger, in Bollinger on Bollinger Bands (McGraw-Hill, 2001).

Does it repaint?

No. A closed bar stays. The live bar moves until it closes.

Related indicatorsMore volatility tools.

All volatility indicators

Try Bollinger BandWidth on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Bollinger BandWidth