Bollinger Bands
By Chad Smith, Director of Research & Analysis · Updated
On this page
Bollinger Bands are a volatility indicator made of a middle moving average and two outer bands set a number of standard deviations away from it. John Bollinger developed them in the 1980s. Because the bands widen in volatile markets and contract in quiet ones, they adapt to conditions instead of using fixed distances.
What it measures
Bollinger Bands measure two things at once. The middle band shows the recent average price, which gives a sense of trend. The distance between the outer bands shows how widely prices have been spread around that average, which is a measure of volatility.
When price sits near the upper band, it is high relative to its recent behavior. When it sits near the lower band, it is low relative to recent behavior. "High" and "low" here are relative terms. They do not mean price is about to reverse.
Two related readings come from the same calculation:
- %B shows where price is within the bands, from 0 at the lower band to 1 at the upper band.
- Bandwidth shows how wide the bands are relative to the middle band.
The formula
Middle band = SMA(Close, N)
Upper band = Middle band + k × StdDev(Close, N)
Lower band = Middle band − k × StdDev(Close, N)
%B = (Close − Lower band) / (Upper band − Lower band)
Bandwidth = (Upper band − Lower band) / Middle band
where
N = the lookback period (20 by default)
k = the number of standard deviations (2 by default)
StdDev = the population standard deviation of the last N closes
Worked example (illustrative numbers). Suppose the 20-period SMA of closes is 50.00 and the standard deviation over the same 20 closes is 1.50. The upper band is 50.00 + 2 × 1.50 = 53.00. The lower band is 50.00 − 3.00 = 47.00. If today's close is 52.25, %B = (52.25 − 47.00) / (53.00 − 47.00) = 5.25 / 6.00 = 0.875, so price is in the upper part of the bands. Bandwidth is 6.00 / 50.00 = 0.12.
Default settings
| Setting | Conventional value |
|---|---|
| Period | 20 |
| Standard deviations | 2 |
| Average type | Simple |
| Source | Close |
Bollinger suggested adjusting the multiplier with the period: around 1.9 for a 10-period band and around 2.1 for a 50-period band, so the bands contain a similar share of price action. Bollinger Bands are built into MetaTrader, TradingView and other major platforms.
How to read it
Relative highs and lows. A close near the upper band is high relative to the last 20 bars; a close near the lower band is low. Bollinger designed the bands to give a relative definition of high and low, not to give buy and sell signals alone.
Band walks. In strong trends, price can "walk the band", closing at or near the upper band bar after bar in an uptrend, or the lower band in a downtrend. A walk is a sign of strength, not a sign of exhaustion.
The squeeze. When bandwidth drops to a low for the lookback, volatility has contracted. Periods of low volatility tend to give way to periods of higher volatility. A squeeze warns that a larger move may come, but it does not reveal its direction.
Return to the middle. In ranges, price often moves from one band toward the middle band and then toward the other band. The middle band also acts as a reference during trends; pullbacks in an uptrend often hold near it.
Bollinger Bands vs Keltner Channels and envelopes
Keltner Channels look similar but use ATR around an EMA. ATR includes gaps and the full high-low range, and it changes smoothly. Standard deviation is based on closes and reacts sharply to a few large moves. So Bollinger Bands tend to balloon after sudden spikes, while Keltner Channels widen more gradually.
Envelopes use a fixed percentage above and below a moving average. They do not adapt to volatility at all, which is the key difference from Bollinger Bands.
Some traders compare the two: when Bollinger Bands contract inside Keltner Channels, it marks an especially tight squeeze.
Common strategies
Squeeze breakout
Wait for bandwidth to reach a low, then trade the first strong close outside the bands in the direction of the break. A stop-loss often goes on the other side of the middle band. Bollinger warned of the "head fake", where price first breaks one way and then reverses, so many traders wait for confirmation.
Mean reversion in ranges
In a sideways market, look for price to touch or pierce a band and then close back inside it, ideally with an oscillator like RSI turning from an extreme. The target is the middle band or the opposite band.
Trend pullbacks
In an uptrend, buy pullbacks to the middle band when price then closes back up. In a downtrend, sell rallies into the middle band.
W bottoms and M tops
Bollinger described W bottoms in which the first low pierces the lower band and the second low holds inside it, and M tops as the mirror image. These are close relatives of the double bottom and double top.
Weaknesses
Band touches are not signals. Treating every upper-band touch as a sell will fight strong trends.
The bands lag. They are built on a moving average and on past standard deviation, so they adapt after volatility changes, not before.
A squeeze gives no direction. Low volatility tells you a larger move may follow, not which way it will go.
The statistics are rough. Price changes are not normally distributed, so the textbook idea that two standard deviations contain most prices does not hold neatly on real charts.
Indicators it pairs with
- RSI or the money flow index, to confirm whether a band touch comes with a momentum extreme.
- Keltner Channels, to identify tight squeezes.
- ADX, to decide whether to expect band walks (trend) or band-to-band moves (range).
- Volume tools such as OBV or chaikin money flow, to judge breakouts from a squeeze.
- MACD, for trend and momentum context around band signals.
For more on volatility tools and how they fit into a full method, see the technical analysis course.
Brokers with strong charting to practice on
Put this into practice on a demo account first, with no money at risk.
- Featured broker
Pepperstone4.7 / 5Visit
IC Markets4.9 / 5Visit
GO Markets4.8 / 5Visit
Frequently asked questions
What do Bollinger Bands show?
They show a moving average with an upper and lower band that widen when volatility rises and narrow when it falls. They describe whether price is high or low relative to its recent average and spread.
What are the standard Bollinger Band settings?
The conventional settings are a 20-period simple moving average with bands two standard deviations above and below it.
Is touching the upper band a sell signal?
Not by itself. John Bollinger stressed that a touch of a band is not a signal, because in strong trends price can walk along a band for a long time.
What is a Bollinger Band squeeze?
A squeeze is a period when the bands narrow to an unusually tight width, showing low volatility. Low volatility phases are often followed by larger moves, but the squeeze does not tell you the direction.
How are Bollinger Bands different from Keltner Channels?
Bollinger Bands use standard deviation of closing prices around an SMA, while Keltner Channels use Average True Range around an EMA. Bollinger Bands usually react more sharply to sudden price moves.