Technical Analysis

Bollinger Bands: Calculation, Squeeze, %B & Breakout Signals

Bollinger Bands wrap a moving average in a volatility envelope that widens when prices swing hard and narrows when markets go quiet. This guide explains how the bands are calculated, what %B and Bandwidth measure, how to read squeezes and band walks, and how traders build screener filters such as “close above the upper Bollinger Band with ADX above 20.”

๐ŸŽฏ Difficulty: Intermediate โฑ๏ธ 11 min read ๐Ÿ“… Updated: Oct 2026

What Are Bollinger Bands?

Bollinger Bands are a volatility indicator developed by John Bollinger in the 1980s. They plot three lines on the price chart: a middle band (a moving average) and an upper and lower band set a number of standard deviations away from it. Because standard deviation rises when prices are volatile and falls when they are calm, the bands automatically expand and contract with market conditions.

The bands answer a relative question: is the current price high or low compared with its recent range? A price near the upper band is high relative to the last 20 bars; a price near the lower band is relatively low. “Relatively high” is not the same as “too high,” and much of using the indicator well comes down to telling those two apart.

How Bollinger Bands Are Calculated

The standard settings are a 20-period simple moving average and bands 2 standard deviations away:

Middle Band = 20-period SMA of closing price Upper Band = Middle Band + (2 ร— 20-period standard deviation) Lower Band = Middle Band โˆ’ (2 ร— 20-period standard deviation)

Standard deviation measures how far closes have spread from their average over the same 20 bars.

For example, if a stock's 20-day SMA is $50 and its 20-day standard deviation is $1.50, the upper band sits at $53 and the lower band at $47. If volatility doubles so the standard deviation becomes $3, the bands widen to $56 and $44 even if the average stays put.

The middle band is just a simple moving average, so everything you know about moving averages applies: price holding above a rising middle band suggests an uptrend, and price holding below a falling one suggests a downtrend.

๐Ÿ’ก Not a 95% guarantee

In a normal distribution about 95% of values fall within 2 standard deviations. Stock prices are not normally distributed and the calculation uses only 20 bars, so the share of closes inside the bands varies by stock and period. Treat closes outside the bands as “unusual,” not “statistically impossible.”

%B and Bandwidth

Bollinger introduced two derived indicators that turn the bands into numbers you can compare across stocks and filter in a screener.

%B (Percent B)

%B = (Close โˆ’ Lower Band) รท (Upper Band โˆ’ Lower Band)

1.0 = close on the upper band; 0.5 = on the middle band; 0 = on the lower band. Above 1 or below 0 = outside the bands.

%B tells you where price sits inside the envelope regardless of the stock's price level, which makes it useful for ranking and for spotting divergences. For example, a new price high with a lower %B than the previous high means the second push was weaker relative to volatility.

Bandwidth

Bandwidth = (Upper Band โˆ’ Lower Band) รท Middle Band

Often shown as a percentage. Low readings mean contracted bands; high readings mean expanded bands.

Bandwidth measures how wide the bands are relative to price. It is the tool for finding a squeeze objectively: rather than eyeballing narrow bands, you look for Bandwidth near its lowest level of the past several months.

The Bollinger Band Squeeze

Volatility tends to cycle: quiet periods are often followed by active ones and vice versa. A squeeze happens when the bands contract to an unusually narrow width, commonly defined as Bandwidth at a six-month (roughly 125-trading-day) low. It signals that volatility is compressed, not which way it will be released.

Traders typically watch for the first decisive close outside the bands after a squeeze, ideally on above-average volume (see volume analysis). A common trap is the head fake: price pokes out one side, reverses, and the real move goes the other way. Waiting for a close rather than an intraday poke, and checking volume, reduces but does not eliminate head fakes.

๐Ÿ’ก Squeeze vs. Keltner Channels

Some platforms define a squeeze as Bollinger Bands moving inside Keltner Channels, which are based on Average True Range (ATR). The idea is the same: standard-deviation volatility has dropped below typical range volatility.

Walking the Bands

In a strong uptrend, price can hug or repeatedly close near the upper band for many bars while the middle band rises underneath it. This is called walking the band. It is a sign of strength, not an automatic sell signal. Pullbacks in such trends often stop near the middle band rather than the lower band. The mirror image, walking the lower band, occurs in strong downtrends.

A walk often ends in one of two ways: price fails to reach the upper band on a new push (a falling %B), or it closes back below the middle band. Neither is a guaranteed reversal, but both show the trend's momentum fading.

Close Above the Upper Band: Breakout or Overbought?

A close above the upper band is one of the most searched Bollinger Band conditions, and it has two opposite readings:

ContextCommon interpretationWhat traders check
After a squeeze, bands starting to widenVolatility breakout; possible start of a trendVolume above average, ADX rising, close near the high of the bar
Established uptrend, rising middle bandTrend strength (walking the band)Pullbacks holding the middle band
Sideways range, flat middle bandStretched move that may revertRSI above 70, long upper wick, price at range resistance

The indicator alone can't tell these cases apart; context can. A trend-strength reading such as ADX and a look at support and resistance are the usual tie-breakers.

Mean Reversion With Bollinger Bands

In range-bound markets, traders sometimes treat the lower band as an area to look for long entries and the upper band as an area to take profits, with the middle band as the first target. This is a mean-reversion approach: it bets that stretched prices return toward the average.

The risk is obvious: mean reversion works until a trend starts, and then the “cheap” stock keeps walking down the lower band. For that reason, mean-reversion setups are commonly paired with a trend filter (for example, only buying lower-band touches while price is above the 200-day moving average) and a predefined stop-loss. A common refinement is waiting for a close back inside the band rather than buying the first touch.

Combining Bollinger Bands With Other Indicators

Bollinger himself recommended pairing the bands with indicators that measure something different, rather than with other price-envelope tools:

  • RSI (momentum): An upper-band close with RSI above 70 in a range is a classic stretched reading; a lower-band touch with RSI holding above 30 can signal positive divergence.
  • Volume (participation): Breakouts from a squeeze with relative volume above 1.5โ€“2 are generally more convincing than quiet ones.
  • ADX (trend strength): ADX above roughly 20โ€“25 suggests a trending market where band walks are more likely; below 20 suggests a range where mean reversion fits better.
  • ATR (range volatility): A rising ATR confirms that volatility is expanding along with the bands, and ATR is commonly used to size stops.

Bollinger Band Screener Filters

Most screeners, including the TradingView-powered Tockmarket stock screener, offer price relative to the upper or lower Bollinger Band as a filter. The examples below are educational starting points, not recommendations:

ScreenExample criteria
Volatility breakoutPrice % change โ‰ฅ 3%, close โ‰ฅ upper Bollinger Band (20, 2), ATR(14) > previous ATR(14), ADX(14) โ‰ฅ 20
Squeeze watchlistBollinger Bandwidth near a 6-month low, average volume > 500K, price > $5
Trend pullbackPrice above 200-day MA, price near the middle band (20 SMA), RSI(14) 40โ€“55
Oversold in an uptrendClose โ‰ค lower band, price above 200-day MA, RSI(14) < 35
Range fade (watch only)Close โ‰ฅ upper band, ADX(14) < 20, RSI(14) > 70

The first row combines four conditions: a meaningful daily gain, a close outside the upper band, expanding range volatility (ATR higher than the prior bar's value) and enough trend strength (ADX at least 20). Requiring all four filters out many one-off spikes, but every extra AND condition shrinks the list, so loosen thresholds if you get zero results. Add a liquidity floor such as average volume above 500K shares. For more recipes, see stock screener criteria.

Bollinger Band Settings

SettingTypical use
20, 2 (default)Swing trading on daily charts; the most widely used and the default in most screeners
10, 1.5Shorter-term trading; faster, more signals and more noise
50, 2.1โ€“2.5Longer-term trends; slower bands that are touched less often

Bollinger suggested increasing the multiplier slightly for longer periods and decreasing it for shorter ones so the bands contain a similar share of price action. Whatever you choose, keep settings consistent between your chart and your screener, or the results won't match what you see.

Bollinger Band Pitfalls

โŒ

Treating band touches as automatic signals

Touching the upper band is not a sell signal and touching the lower band is not a buy signal. In trends, price can ride a band for weeks.

โŒ

Guessing squeeze direction

A squeeze says volatility is likely to expand, not which way. Wait for the breakout close and confirm with volume.

โŒ

Ignoring gaps and earnings

An earnings gap can blow straight through the bands and permanently widen them for 20 bars. Check the earnings calendar before reading a band break.

โŒ

Stacking similar indicators

Adding Keltner Channels or moving-average envelopes on top of Bollinger Bands mostly repeats the same information. Pair the bands with momentum, volume or trend-strength tools instead.

Frequently Asked Questions

What are the default Bollinger Bands settings?

The standard settings are a 20-period simple moving average as the middle band, with upper and lower bands placed 2 standard deviations above and below it. Most charting platforms and screeners use 20 and 2 by default.

Is a close above the upper Bollinger Band bullish or bearish?

It depends on context. In a strong trend or after a squeeze, a close above the upper band often reflects breakout momentum. In a sideways range, the same close can mark a stretched move that tends to revert toward the middle band. Trend filters such as ADX help tell the two apart.

What is a Bollinger Band squeeze?

A squeeze is a period when the bands contract to an unusually narrow width, meaning volatility is low relative to its recent history. Low volatility tends to be followed by higher volatility, so traders watch squeezes for a potential expansion, but the squeeze itself does not predict direction.

What is %B in Bollinger Bands?

%B shows where the close sits relative to the bands. A value of 1 means the close is on the upper band, 0 means it is on the lower band, and 0.5 means it is on the middle band. Values above 1 or below 0 mean price closed outside the bands.

What percentage of prices fall inside Bollinger Bands?

Price closes inside the bands most of the time, but not a fixed 95%. Market returns are not normally distributed, so the statistical rule of thumb for 2 standard deviations does not apply exactly. Closes outside the bands are less common but happen regularly, especially in trends.

Can I screen for stocks closing above the upper Bollinger Band?

Yes. Many screeners, including TradingView's, let you filter for price above the upper Bollinger Band. Traders often add trend and volatility conditions such as ADX(14) of at least 20, ATR(14) higher than its prior value, a minimum daily gain and an average volume floor, then review each chart manually.

Key Takeaways

1

Bollinger Bands are a 20-period SMA with bands 2 standard deviations above and below; they widen and narrow with volatility.

2

%B shows where price sits within the bands; Bandwidth measures how wide they are and identifies squeezes.

3

A close above the upper band can mean breakout strength in a trend or a stretched move in a range. ADX and context help decide which.

4

Squeezes signal coming volatility, not direction; confirm breakouts with volume.

5

Pair the bands with RSI, volume, ADX and ATR rather than other price envelopes, and always define risk before trading.