Volatility

Bollinger Bands and %B

Bollinger Bands and %B explained: the bands, squeezes, band walks, mean reversion and Bollinger alerts on crypto and stocks.

4 min readUpdated

Bollinger Bands wrap a moving average in an envelope that breathes with volatility: two bands two standard deviations above and below the average. When the market is calm the bands squeeze together; when it gets wild they spread apart. %B tells you where the price is inside the bands.

What it measures

is the standard deviation of the last 20 closes. If prices were normally distributed, about 95 % of closes would fall inside Β±2Οƒ. Markets have fat tails, so the price leaves the bands more often than that, but a close outside is still statistically unusual.

Try it

Look at the band width: tight during the range, then exploding in the drop. In the lower pane, %B goes beyond 0 and 1 when the price leaves the bands.

PriceSMA 20Bands%BExample market Β· hover to read values
Price, SMA 20, Upper band, %B on an example market: a rise, a sideways range, a sharp drop and a recovery.113.1highlow0.510

How Subtrigger computes it

OutputStream (BTC on Binance)Meaning
upperind:bb_20_2_1m@binance.miniticker:BTCUSDT:upperupper band, in price
lowerind:bb_20_2_1m@binance.miniticker:BTCUSDT:lowerlower band, in price
percent_bind:bb_20_2_1m@binance.miniticker:BTCUSDT:percent_bposition in the bands

The middle band is the SMA 20 stream of the same market. Standard deviation is the population one (divided by N, as in Bollinger's definition). If the 20 closes are all equal, the bands collapse and %B is 0.5. Stocks use 5-minute bars: ind:bb_20_2_5m@nasdaq.stocks:AAPL:percent_b.

How to read it

%BPrice is…
above 1above the upper band
0.8 – 1near the top of the bands
0.5at the middle (SMA 20)
0 – 0.2near the bottom
below 0below the lower band

Two opposite schools read the same picture:

  • Mean reversion: a close outside the bands is stretched and tends to snap back to the middle. Works best in ranges.
  • Breakout / band walk: in strong trends the price "walks" along the outer band, closing near or outside it bar after bar. A close outside the bands is then a sign of strength.

Alert ideas

Price closes below the lower band:

Alert idea

BTCUSDT BB 20 %B Β· 1m Β· Binance < 0

Create this alert

Price pushes above the upper band of a stock:

Alert idea

AAPL Price > AAPL BB 20 upper Β· 5m

Create this alert

The squeeze

When volatility dries up, the bands narrow to their tightest in a long while. Volatility comes in cycles: low volatility tends to be followed by high volatility. A squeeze says a big move is likely; it does not say which way.

In Subtrigger you can watch it from the bands themselves or, more directly, with volatility (the standard deviation the bands are built on, in percent): "volatility 20 below 0.05 %" on a 1-minute BTC chart is a squeeze.

For pros

  • Band width is a relative volatility measure; Bollinger's "squeeze" is its multi-month low.
  • Walking the bands. Successive closes above the upper band with %B > 1 indicate trend strength, not exhaustion; mean-reversion entries against a band walk are the costliest mistake with this tool.
  • Combine with RSI. Bollinger suggested confirming band touches with an independent momentum tool; RSI divergences at band touches are a classic setup.
  • SMA: the middle band.
  • Z-score: the same distance, in standard deviations.
  • Volatility: how wide the swings are, in percent.

FAQ

What do 20 and 2 mean?

20 is the period of the moving average and of the standard deviation; 2 is how many standard deviations the bands are away from the average.

How often does the price leave the bands?

In theory about 5 % of the time; in practice more, because price moves have fat tails. On 1-minute crypto bars, several times a day.

Is %B above 1 a sell signal?

Only in a range. In a strong trend it is a sign of strength. Combine with a trend condition.