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.
How Subtrigger computes it
| Output | Stream (BTC on Binance) | Meaning |
|---|---|---|
upper | ind:bb_20_2_1m@binance.miniticker:BTCUSDT:upper | upper band, in price |
lower | ind:bb_20_2_1m@binance.miniticker:BTCUSDT:lower | lower band, in price |
percent_b | ind:bb_20_2_1m@binance.miniticker:BTCUSDT:percent_b | position 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
| %B | Price is⦠|
|---|---|
| above 1 | above the upper band |
| 0.8 β 1 | near the top of the bands |
| 0.5 | at the middle (SMA 20) |
| 0 β 0.2 | near the bottom |
| below 0 | below 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
Price pushes above the upper band of a stock:
Alert idea
AAPL Price > AAPL BB 20 upper Β· 5m
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.
Related
- 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.
Keep reading
- TrendSMAThe simple moving average explained: formula, how to read it, crossovers, support levels and ready-made SMA alerts for crypto and stocks.
- StatisticsZ-scoreThe price z-score explained: how many standard deviations from the mean, Β±2 extremes, mean reversion and z-score alerts.
- VolatilityVolatilityHistorical volatility explained: log returns, standard deviation, calm and stormy markets, and volatility alerts in Subtrigger.