Home

Technical Indicators

Bollinger Bands Explained: Squeezes, Band Walks, and Mean Reversion

Spot the edge. Swoop in.

Bollinger Bands are a volatility envelope built around a moving average. Here's what a squeeze actually predicts, why a "band walk" isn't automatically a reversal, and how %B and BandWidth fit into a mean-reversion setup.

By Swoopr Editorial Team

Published · Updated

AI-assisted content · Swoopr is responsible for the final published article.

What Are Bollinger Bands?

Bollinger Bands are a volatility envelope built around a moving average, usually set a multiple of standard deviation above and below that average. They show relative price location and changing dispersion — how far price is trading from its own recent average, and how wide that average's normal range currently is. A band touch, by itself, is not automatically a reversal signal.

The practical use is identifying volatility contraction, expansion, and price location relative to a moving average, then connecting that read to a specific setup: a breakout after a squeeze, a continuation during a band walk, or a mean-reversion trade back toward the middle band. The central caution is that the bands adapt to recent volatility and can expand during strong trends, letting price sit near an outer band far longer than a mean-reversion trader expects.

Key takeaways: the bands plot a moving average with an upper and lower line set by a multiple of standard deviation. A squeeze shows volatility contraction, not direction. A band walk is persistent movement along an outer band during a genuine trend, not proof of exhaustion. %B and BandWidth turn band position and width into numbers usable in screens and rules. Because the bands widen and narrow with recent volatility, a fixed dollar distance from price never means the same thing twice — read every signal against the middle band's slope and the broader market regime.

How Bollinger Bands Are Calculated

The standard version uses a 20-period simple moving average with an upper and lower band set two standard deviations away, but the exact implementation matters — platforms can differ in smoothing, session handling, and plotting conventions.

ComponentFormulaInterpretation note
Middle bandA moving average, commonly 20 periodsBecause it's a simple moving average, the middle band reacts only as fast as its period length allows — treat it as a trend reference, not a precise entry level.
Upper bandMiddle band + multiplier × standard deviationIts distance from the middle band widens automatically as volatility rises, so a fixed dollar or percentage gap from price isn't equivalent to a genuine band signal.
Lower bandMiddle band − multiplier × standard deviationBecause the multiplier applies symmetrically, a lower band that hugs price closely reflects low dispersion, not necessarily bullish conviction.
%B(Price − lower band) ÷ (upper band − lower band)As a ratio rather than a bounded score, %B can exceed 1 or fall below 0 whenever price closes outside the bands — useful for screening, but not a fixed 0-to-1 scale.
BandWidth(Upper band − lower band) ÷ middle bandBecause BandWidth divides by the middle band, it's most informative compared with its own historical range rather than judged against a fixed number.

Use one documented definition through an entire comparison — don't combine a metric from one provider with a denominator from a different period or session convention. A formula can be mathematically correct and still economically misleading; where multiple valid definitions exist, show the alternatives and explain why the primary version was selected.

The Swoopr BAND Framework

This framework is an editorial and analytical organizing method, not an externally validated system — adapt it when the market, instrument, or evidence calls for a different process.

ComponentWhat to doWhy it matters
BaselineEvaluate the moving average's direction and slope.Establishing this first prevents a mean-reversion tactic from being applied inside a genuine trend, where the middle band itself is moving away from price.
AmplitudeUse BandWidth or another normalized measure to classify contraction and expansion.Classifying the volatility regime up front determines whether a squeeze breakout or a range mean-reversion setup is even appropriate before any price trigger is considered.
NarrativeDecide whether the setup is continuation, breakout, or mean reversion.Naming the specific setup forces one falsifiable hypothesis instead of treating every band touch as evidence for whichever outcome eventually occurs.
Decision levelDefine the price trigger and structural invalidation.Fixing the trigger and invalidation price before entry keeps the trade from being redefined after the fact once price starts moving.
DefenseSize risk using stop distance and volatility.Sizing from the stop distance ties position size to the trade's actual risk instead of a fixed share count that ignores current volatility.

How to Use Bollinger Bands Step by Step

  1. Identify the moving-average and standard-deviation settings the chart is using. A 10-period, 1.5-deviation setup flags far more touches and squeezes than the standard 20-period, 2.0-deviation configuration on the same chart — confirm the settings before interpreting anything.
  2. Classify the middle-band slope and broader price structure. A rising or falling middle band with sustained directional swings points toward a trend; a flat middle band inside a recognizable range points toward mean reversion instead.
  3. Measure whether BandWidth is contracting, normal, or expanding relative to its own history. A reading near a multi-month low flags a squeeze worth watching for a breakout; a wide or expanding BandWidth suggests the market is already in an active move where mean-reversion entries are less reliable.
  4. Choose one setup: squeeze breakout, pullback during a band walk, or range mean reversion. Each rests on different evidence, and trading more than one off the same signal blurs the invalidation level and the logic for the stop.
  5. Wait for a price-based trigger instead of entering on a touch alone. A band touch describes location, not direction — require a close outside the range on rising volume for a breakout, or a reversal candle closing back inside the band for a mean-reversion trade.
  6. Set invalidation beyond the relevant swing or range boundary. For a breakout, invalidation belongs inside the prior compression range or at an ATR-based distance. For a mean-reversion trade, invalidation belongs beyond the recent price extreme.
  7. Backtest long and short rules separately, and include gap behavior. Uptrends and downtrends can walk a band with different persistence and volume characteristics, and an overnight gap around earnings or news can open beyond a band and invalidate a stop before it fills at the intended price.
  8. Review how results change when volatility shifts abruptly. Because the bands are built from a rolling standard deviation, a sudden volatility shift can turn a recent squeeze reading into a wide range within a few bars — check whether the strategy depends on gradual, orderly volatility changes that won't always hold.

Squeezes, Band Walks, and the Main Signals

What a band touch actually means

A touch of the upper band means price is high relative to its recent average and volatility; a touch of the lower band means price is low relative to that same reference. It does not automatically mean reversal. In a strong uptrend, price can repeatedly touch or move along the upper band — this is a band walk. In a strong downtrend, price can walk the lower band the same way. Interpret a touch alongside trend direction, band slope, volume, momentum, nearby support and resistance, and whether price closes inside or outside the band.

The Bollinger Band squeeze

A squeeze occurs when the bands contract and BandWidth falls, representing reduced volatility. Low volatility often precedes higher volatility, but the squeeze itself does not predict direction — a directional trigger is still required. A breakout framework may require:

  1. Bands contract to a low relative level.
  2. Price forms a defined range.
  3. Price closes outside the range and band.
  4. Volume expands.
  5. The middle band begins to slope in the breakout direction.
  6. The stop is placed inside the range or set using ATR.
  7. Exit uses a target, the opposite band, or a trailing method.

False breakouts are common after a squeeze; confirmation and risk controls are essential.

BandWidth

BandWidth measures the distance between the upper and lower bands, normalized by the middle band: BandWidth = (Upper band − Lower band) ÷ Middle band. It helps compare current volatility with an instrument's own historical volatility. Rather than reading against an arbitrary fixed value, traders typically compare BandWidth with its own recent percentile or multi-month low.

%B

%B shows where price sits relative to the bands: %B = (Price − Lower band) ÷ (Upper band − Lower band). A %B near 1 means price is near the upper band; near 0, price is near the lower band; above 1, price has closed above the upper band; below 0, price has closed below the lower band. %B is designed for use in scans and systematic rules rather than as a standalone signal.

Mean reversion inside the bands

A mean-reversion strategy tries to trade a return toward the average. A basic framework might require a sideways or weak-trend market, a flat middle band, low ADX, a price close outside a band near established support or resistance, a reversal candle closing back inside the band, a stop beyond the recent extreme, and a target at the middle band or the opposite side of the range. This setup is less reliable during a genuine strong trend.

M-tops and W-bottoms

A W-bottom is a potential bullish pattern: price makes a low near or below the lower band, rebounds, makes a second low that may sit lower in price but stays inside the lower band, then breaks the intervening high. An M-top is the bearish counterpart forming near the upper band. Both combine price structure with a change in volatility-adjusted momentum, rather than relying on the band alone.

Interpreting Bollinger Bands in Market Context

The definition above doesn't create a trade by itself — a useful rule connects the indicator to a specific market hypothesis, execution trigger, invalidation level, and position size. Start by classifying conditions with observable evidence:

The same instrument can show conflicting band states on different timeframes because each calculation summarizes a different window — a five-minute reading describes intraday behavior, a daily reading describes a broader sequence, and neither is inherently correct. State which timeframe governs regime, which timeframe triggers entry, and which session supplies the data; intraday readings can shift materially when premarket or after-hours data are included.

Confirmation only adds information when it measures something meaningfully different — pairing a band reading with a volume or trend measure can be more informative than stacking several oscillators built from the same closing prices. Before adding a component, ask what specific error it's meant to prevent and whether testing shows it improves risk-adjusted results after costs.

Above all, the bands adapt to recent volatility and can expand during strong trends, letting price sit near an outer band far longer than a mean-reversion trader expects. Strong-looking alignment can still fail because participants react to new information, liquidity disappears, or the setup is already crowded — treat the indicator as evidence within a probabilistic process, not a promise.

Choosing Bollinger Band Settings

StylePeriodDeviation
Short-term10–141.5–2.0
Standard202.0
Longer-term502.0–2.5

Test the full strategy rather than optimizing only the visual fit. Bollinger Bands use standard deviation, while Keltner Channels commonly use average true range instead — Bollinger Bands often respond more sharply to sudden price dispersion, while Keltner Channels can appear smoother. Some traders watch both together to flag unusually tight volatility conditions, but that combination should be tested rather than assumed.

Comparison Table

ItemWhat it measuresBest useMain caution
Band squeezeVolatility contractionBreakout preparationDirection is unknown
Band walkPersistent trendContinuation and pullbacksFading the band can be costly
Lower-band touch in rangeRelative weakness near range supportMean reversionNeeds structural support
%BNormalized band positionScreening and rulesCan exceed 0 or 1
BandWidthNormalized band distanceVolatility regimeNo direction

The table narrows the decision, it doesn't replace it — choose the item whose purpose matches the question, then review its main caution before relying on the result. When two readings disagree, investigate the assumptions and underlying data rather than averaging incompatible outputs.

Worked Hypothetical Example

A stock trades around a $100 middle band, with upper and lower bands at $104 and $96. BandWidth contracts to a low percentile, then price closes at $104.50 on higher volume. A breakout trader might enter only after that close, place a stop below the compression range at $101.50, and size the trade from the $3 of risk rather than assuming the upper-band break guarantees continuation.

The example shows how the method connects to a decision — it doesn't claim that the illustrated setup, instrument, or threshold will produce the same outcome in another period. Change the inputs, include realistic costs, and inspect the downside before using the result.

Common Mistakes

Risks and Limitations

The core limitation of Bollinger Bands is that they adapt to recent volatility — during a genuine trend, the bands themselves widen, which lets price remain near or along an outer band for far longer than a mean-reversion trader expects, and a squeeze has historically preceded breakouts in both directions with roughly comparable frequency. Treat uncertainty as a required input rather than an edge case. A good process can reduce avoidable errors, but it cannot remove market risk, model risk, data risk, or execution risk, and no band setting eliminates the possibility of a false or failed signal.

Advanced Considerations

1. Normalize BandWidth against its own rolling percentile

A fixed BandWidth threshold that works for one instrument or period rarely transfers to another, so ranking the current reading within its own trailing distribution — the past six or twelve months, for example — gives a more comparable measure of how tight the current squeeze really is.

2. Separate close-outside-band signals from intraday touches

An intraday wick beyond a band can reverse before the bar closes, while a closing price outside the band reflects where the market actually settled — treating these as the same event overstates how often a genuine break occurs.

3. Test whether volume, gap size, or trend context improves squeeze breakouts

Volume expansion, a wide opening gap, or an already-established broader trend can each separate breakouts that continue from ones that immediately fail — test them individually to see which, if any, actually adds predictive value rather than just adding rules.

4. Use %B as an input, not a complete strategy

Because %B only restates where price sits within the bands, it adds the most value combined with trend, volume, or support-and-resistance evidence rather than used as a standalone overbought or oversold trigger.

5. Study band behavior around earnings, since overnight gaps can bypass normal stop assumptions

A stop placed just outside a band assumes the market can trade through that level in small increments, but an earnings gap can open well beyond both the band and the stop — position size around known event dates should account for that gap risk directly.

Bollinger Bands Glossary

Bollinger Bands FAQs

Is Bollinger Bands a buy or sell signal?

No. Bollinger Bands are a volatility envelope built around a moving average, usually using a multiple of standard deviation. They show relative price location and changing dispersion, but a band touch is not automatically a reversal signal. A complete trade still needs a market hypothesis, entry rule, invalidation level, position size, and tested exit logic.

What is the best setting for Bollinger Bands?

There is no universal best setting. Start with the conventional setting, then test nearby values across instruments, regimes, and out-of-sample periods. Prefer stable parameter regions over one historical winner.

Can Bollinger Bands be used by itself?

It can describe one aspect of market behavior, but using it alone usually leaves direction, regime, execution, or risk undefined. Add only evidence that has a separate role.

Does Bollinger Bands work on every timeframe?

The calculation can be applied to many timeframes, but behavior, costs, liquidity, and session effects change. Validate the exact timeframe and execution model you intend to trade.

Why do Bollinger Bands signals fail?

Signals fail because the indicator is lagging, the market regime changes, rules are ambiguous, costs are ignored, or the historical relationship was noise. Failure is normal and must be included in risk design.

How should Bollinger Bands be backtested?

Use reproducible rules, point-in-time data, realistic fills and costs, a separate validation sample, regime breakdowns, and sensitivity tests. Compare the result with a simpler baseline.

Related Reading