Bollinger %B

Bollinger %B
Indicator

VolatilitySeparate panelFree on ChartLabs

Bollinger %B says where the close sits inside the Bollinger Bands. It is 1 on the upper band, 0.5 on the middle and 0 on the lower.

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

Example market1hIndicatorsAtlas AIBollinger %Bchartlabs.co/charts
Atlas reads it

BollingerPercentB -0.05

Pane

Atlas reads it

BollingerPercentB -0.05

Pane

Illustration on simulated data.

Bollinger %BWhat is the Bollinger %B indicator?

Bollinger %B asks one question: where is the close between the lower band and the upper band? It is 1 on the upper band, 0.5 on the middle and 0 on the lower. A close outside the bands prints above 1 or below 0.

The bands are a 20-bar average of the close, plus and minus 2 population standard deviations. The first value is on the 20th bar. With the length set to 2, for illustration, closes of 10 and 12 put the second bar at 0.75.

A flat window has no width, and that bar is empty rather than 0.5. The line is #2962FF. Guides sit at 1 in rgba(242, 54, 69, 0.5), at 0.5 in rgba(41, 98, 255, 0.5) and at 0 in rgba(8, 153, 129, 0.5). The band from 0 to 1 is rgba(41, 98, 255, 0.1). John Bollinger defines %B in Bollinger on Bollinger Bands (McGraw-Hill, 2001).

Outside the bands

Above 1 the close is past the upper band. Below 0 it is past the lower band.

A flat window

If the bands have no width, the bar is empty. It is not drawn as 0.5.

Bollinger %B signalsFive patterns to know.

1Bullish lean

At or above 1

The close is on or past the upper band.

2Bearish lean

At or below 0

The close is on or past the lower band.

3Inconclusive

Near 0.5

The close is near the middle band.

4Inconclusive

Through 0.5

The close has moved from one side of the average to the other.

5Inconclusive

A print far outside

One bar can push %B well past 1 or 0. The next close shows whether it stays there.

Bollinger %B formulaHow it is calculated.

%B=close−lowerupper−lower
STEP 1

Build the bands

Middle is the 20-bar average. The bands sit 2 population standard deviations either side.

STEP 2

Place the close

Subtract the lower band from the close, and divide by the gap between the bands.

STEP 3

Read the scale

1 is the upper band, 0.5 the middle, 0 the lower. The first value is on the 20th bar. A zero gap leaves the bar empty.

Bollinger %B 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 and the reading use. The default is the close.
StdDev20.001 to 50How many standard deviations the outer bands sit from the middle.
Line#2962FFFixedGuides at 1, 0.5 and 0 are rgba(242, 54, 69, 0.5), rgba(41, 98, 255, 0.5) and rgba(8, 153, 129, 0.5). The band from 0 to 1 is rgba(41, 98, 255, 0.1).
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 and the reading use. 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
Line
Default
#2962FF
Range
Fixed
What it changes
Guides at 1, 0.5 and 0 are rgba(242, 54, 69, 0.5), rgba(41, 98, 255, 0.5) and rgba(8, 153, 129, 0.5). The band from 0 to 1 is rgba(41, 98, 255, 0.1).
208 bars in the bands
10.5070,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 %B strategiesUse it in 3 setups.

A close through the upper band

If%Bcloses above1

The close is past the upper band. Traders often want a trend tool on the same side before they treat it as a break.

Back through the middle

If%Bcrosses0.5

The close has crossed the average. It says which side of the middle the bar finished on.

A close through the lower band

If%Bcloses below0

The close is past the lower band. The same idea runs the other way: look for the trend to agree.

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

Bollinger %B mistakesCommon mistakes.

Selling every print above 1

Above 1 means the close is outside the upper band. In a strong trend that can go on for many bars.

Reading a flat window as 0.5

No band width means the bar is empty, not the middle of the range.

Using one outside bar as a target

%B names a place inside the bands. It does not name the next price.

Bollinger %B combinationsPair it with these.

Bollinger %B FAQQuestions traders ask.

What are the Bollinger %B settings?

Length 20, source close and standard deviation 2. The first value is on the 20th bar.

What do 1, 0.5 and 0 mean?

1 is the upper band, 0.5 is the middle band and 0 is the lower band. Above 1 or below 0, the close is outside the bands.

What is the length-2 example?

For illustration, closes of 10 and 12 with a multiplier of 2 put the second bar at 0.75. The default length is 20.

What if the bands have no width?

The bar is empty. A flat window is not drawn as 0.5, and a tiny deviation within 1e-10 of the mean counts as zero width.

Does %B use the high and low?

No. It uses the source, which defaults to the close, against bands built from that same source.

Does it repaint?

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

Who defined %B?

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

What timeframe can I use?

Any. Twenty bars is twenty minutes on a one-minute chart and twenty days on a daily chart.

Related indicatorsMore volatility tools.

All volatility indicators

Try Bollinger %B on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Bollinger %B