Learn › Indicators
Bollinger Bands and the Squeeze: Band Width, Breakouts and False Signals
Bollinger Bands, created by John Bollinger in the 1980s, place an envelope around price that widens when the market is volatile and narrows when it is quiet. Two very different trading styles grew out of them: fading moves to the outer bands, and trading breakouts after the bands have contracted — the “squeeze”. This guide explains the calculation, the band-width measure behind the squeeze, and the filters that separate a meaningful breakout from noise.
How the bands are calculated
With the standard settings of 20 periods and 2 standard deviations:
- Middle band = 20-period simple moving average of the close.
- Upper band = middle band + 2 × the 20-period standard deviation of the close.
- Lower band = middle band − 2 × the same standard deviation.
The standard deviation measures how widely closes have been spread around their average. When closes cluster tightly, the bands pinch together; when they swing widely, the bands spread apart. Most implementations use the population standard deviation (dividing by n rather than n − 1), which is why values can differ slightly between platforms.
What the bands do and do not mean
If closing prices were normally distributed, about 95% of closes would fall within two standard deviations of the mean. Market returns are not normally distributed — they have fat tails and volatility clusters — so price touches and closes outside the bands far more often than a textbook would suggest. A close above the upper band is therefore not a statistical anomaly that must reverse. It means price has moved further from its 20-bar average than recent volatility would typically allow.
Band width
Band width expresses the distance between the bands relative to the middle band or price:
Band width = (upper band − lower band) / middle band
Dividing by price makes the number comparable across time and instruments. A band width of 0.04 means the bands are about 4% of price apart. Some traders use %B instead, which shows where the close sits within the bands (0 at the lower band, 1 at the upper band).
The squeeze idea
Volatility tends to alternate between quiet and active phases. Long, low-volatility periods often end with a strong directional move. The squeeze setup tries to catch the start of such a move:
- Identify contraction. Band width is low relative to its own recent history — for example, below its 50-bar average, or at its lowest level in 120 bars.
- Wait for expansion. Price closes outside a band, and band width begins to rise.
- Trade the direction of the break, with a stop on the other side of the structure or a multiple of ATR away.
The important detail is the order: contraction first, then the break. A close outside the bands when they are already wide is a very different event — often late in a move rather than at its start.
Why many band breakouts fail
A close outside a band is a low bar to clear. In practice, many such breaks reverse within a few bars, especially when:
- the bands were not contracted beforehand, so the break happens during an already volatile period;
- volume or participation does not increase on the break;
- the break runs against the higher-timeframe trend;
- the move is driven by a single news spike that fades.
Testing on liquid crypto perpetuals and index futures typically shows that removing the contraction condition increases the number of trades considerably while lowering the average result per trade — often below the level needed to cover costs. That is a useful lesson in general: a filter that removes trades can raise total profit if the trades it removes were, on average, losers.
Common confirmation filters
- Volume. Require the breakout bar's volume to exceed its 20-bar average.
- Momentum. Require RSI above a threshold such as 55 for long breaks or below 45 for short breaks.
- Higher-timeframe trend. Require price to be on the same side of a longer-term moving average, for example a 50-period EMA on a four-hour chart for a one-hour strategy.
- Close, not touch. Use closed bars only; a bar that pokes outside the band and closes back inside is not a break.
Exits for squeeze breakouts
Because the setup aims to catch the start of a larger move, exits matter as much as entries. A fixed target of a few ATR can cut the best trades short, while a stop that is too tight gets hit by the normal retest of the breakout level. Many traders therefore use a trailing stop — for example, a stop that follows the highest price since entry by a multiple of ATR — combined with a distant target, so that most trades end on the trailing stop and the occasional strong trend is allowed to run. Whatever exit you use, test it separately: two strategies with identical entries can have very different results with different exits.
Mean reversion with the bands
The opposite approach sells near the upper band and buys near the lower band, expecting price to return to the middle band. It tends to work in range-bound markets and fail badly in trends, where price can “walk the band” for many bars. If you test band-fade rules, add a trend or regime filter and a firm stop.
Settings
The 20-period, 2-standard-deviation default is a reasonable starting point on most timeframes. Shorter periods make the bands hug price more closely; a higher multiplier reduces the number of breaks. Change one thing at a time and check whether the result holds on a later period that was not used to choose the setting.
Key takeaways
- Bands = 20-period SMA ± 2 standard deviations; band width = (upper − lower) / middle.
- Closes outside the bands are common and are not reversal signals on their own.
- The squeeze trades a break that follows contraction; without the contraction, results usually deteriorate.
- Volume, momentum and higher-timeframe filters, plus a deliberate exit design, matter more than the band settings.
Educational content only. This guide explains general concepts and is not investment advice or a recommendation to trade any instrument. Trading involves substantial risk of loss, and historical or simulated results do not guarantee future performance. Read the Risk Disclosure.
