What you will learn
- How Bollinger Bands are built from a moving average and a standard deviation, and how to calculate the bands, %b and bandwidth by hand.
- Why the bands do not contain 95% of prices as often claimed: on our data about 87% of closes sat inside them.
- What a close outside a band has been followed by in our data, and what the bands’ own inventor says about it.
- What a squeeze is, how often it occurs, and what the data show about the size and direction of the move that follows.
The idea in plain words
Markets are sometimes calm and sometimes wild. A fixed-width envelope around a moving average, say 20 pips either side, is too loose in a calm market and too tight in a wild one. Bollinger Bands solve that by making the envelope breathe: the bands are placed a set number of standard deviations above and below a moving average, so they widen when prices are spread out and narrow when prices are tightly clustered.
A standard deviation measures how far prices typically wander from their average. If the last 20 closes were all within a few pips of each other, the standard deviation is tiny and the bands hug the average. If the closes were all over the place, it is large and the bands are far apart. So the width of the bands is a picture of recent volatility, and the position of price inside them tells you how high or low it is compared with recent history.
John Bollinger developed the bands after he became active in the markets full time in 1980, according to his own site, settling on the design after some experimentation. The name came later, when a television host asked him what he called the lines and he answered “Bollinger Bands” on the spot. His site says the default settings today are the same as they were 35 years ago.
How it works
The construction
With the standard settings:
1. The middle band is the 20-period simple moving average of the closes.
2. The standard deviation is calculated over the same 20 closes. Bollinger’s site states that a simple average is used in the standard deviation calculation and that the population version of the calculation is used (it divides by 20, not by 19).
3. The upper band = middle band + 2 × standard deviation. The lower band = middle band − 2 × standard deviation.
The two numbers, 20 and 2, are defaults, not requirements. Bollinger’s own published rules say so: they are starting points, and the right values depend on the market and the task.
Two derived readings
%b says where the latest close is inside the bands: %b = (close − lower band) ÷ (upper band − lower band). It is 1 at the upper band, 0 at the lower band, 0.5 at the middle, and above 1 or below 0 when the close is outside the bands.
Bandwidth says how wide the bands are compared with the middle: bandwidth = (upper band − lower band) ÷ middle band. It is a measure of volatility that can be compared across time. When bandwidth is unusually low, the bands are narrow. This is what traders call a squeeze.
Why not 95%?
For a bell-shaped (normal) distribution, 95.45% of values lie within two standard deviations of the mean, and many guides say that Bollinger Bands therefore contain about 95% of prices. Bollinger himself says otherwise: his rules state that in practice one typically finds 90%, not 95%, of the data inside the bands with the default settings, and warn against statistical assumptions, because the distribution of security prices is non-normal and the sample (20 closes) is small.
We measured it. For five instruments on 4-hour and daily candles (the last 1,500 candles of each to 15 October 2026), we counted the share of closes at or inside the bands. The result was between 86.0% and 88.0% in all ten cases, lower than Bollinger’s 90% and well below 95%. So roughly one close in eight sits outside the bands. A close outside the bands is therefore not rare and not a signal in itself.
Touches, closes outside, and what the inventor says
Bollinger’s rules say that a tag of the upper band is not in and of itself a sell signal, and that closes outside the bands are initially continuation signals, not reversal signals. In a strong trend, price can ride along a band. That fits the picture from earlier lessons: in a trend, the RSI stays above 70 and the price stays near the upper band, because the trend is strong.
The squeeze
Our analysis engine flags a squeeze when the Bollinger Bands (20, 2) sit entirely inside a Keltner Channel, a band set 1.5 average true ranges either side of a 20-period exponential moving average. The idea is that when the standard deviation shrinks relative to the ATR, volatility has compressed, and compressions tend to be followed by expansions. We measured how often it occurs and what followed, in the section below.
What the research says
- Lento, Gradojevic and Wright (Applied Financial Economics Letters, 2007) tested Bollinger Band trading rules. They report that, after adjusting for transaction costs, the bands were consistently unable to earn profits in excess of a buy-and-hold strategy, although profitability improved when the signals were used in a contrarian way.
- Park and Irwin (Journal of Economic Surveys, 2007) surveyed the technical-analysis literature: of 95 modern studies, 56 found positive results, 20 negative and 19 mixed, with data snooping, rules chosen after the fact and weak handling of costs as the main warnings.
The only Bollinger-specific test we could verify found no consistent profit after costs, with a weak positive result only for a contrarian reading. That is one paper, and we could read only its abstract.
Our event studies
After a first close outside the bands. For each instrument and timeframe, we took the first close above the upper band (or below the lower band) after a close inside, and measured the change in price over the next 12 candles in units of ATR. We compared it with the average 12-candle change after any candle:
| Timeframe, instrument | All candles | After first close above the upper band (events, mean, standard error) | After first close below the lower band |
|---|---|---|---|
| H4 EUR/USD | −0.11 | 42, +0.39 (0.32) | 58, +0.20 (0.32) |
| H4 GBP/USD | +0.05 | 44, +0.36 (0.34) | 49, +0.52 (0.34) |
| H4 USD/JPY | 0.00 | 46, −0.22 (0.55) | 27, −0.93 (0.95) |
| H4 XAU/USD | +0.07 | 44, +0.35 (0.43) | 41, +0.06 (0.36) |
| H4 BTC/USD | +0.18 | 52, +0.19 (0.51) | 45, +0.53 (0.34) |
| D1 EUR/USD | −0.17 | 44, −0.21 (0.30) | 54, −0.47 (0.27) |
| D1 GBP/USD | −0.09 | 46, +0.18 (0.23) | 48, +0.47 (0.34) |
| D1 USD/JPY | +0.46 | 59, −0.25 (0.40) | 34, +0.08 (0.47) |
| D1 XAU/USD | +0.58 | 57, +1.16 (0.38) | 33, −0.16 (0.30) |
| D1 BTC/USD | +0.53 | 49, +1.12 (0.61) | 41, +0.45 (0.46) |
After a first close above the upper band, the 12-candle move was above the all-candle average in 7 of the 10 rows, and after a first close below the lower band it was below the average in 6 of the 10. That is a faint tilt toward continuation, in line with Bollinger’s own remark, but in most rows the gap to the average is within about one standard error, the standard errors (0.23 to 0.95 ATR) are large, and the events overlap, so the real uncertainty is larger still. We read it as “no reliable reversal signal in this data”, not as a trading result, since it ignores costs, stops and size.
After a squeeze. We flagged every candle where the engine’s squeeze was on, and measured the absolute size of the next 12 candles’ move in ATRs against all candles:
| Timeframe, instrument | Candles in a squeeze | Mean absolute move after a squeeze (ATR) | Mean absolute move, all candles | Mean signed move after a squeeze | Mean signed move, all candles |
|---|---|---|---|---|---|
| H4 EUR/USD | 13.0% | 2.55 | 1.80 | −0.18 | −0.11 |
| H4 GBP/USD | 14.2% | 2.08 | 1.77 | −0.05 | +0.05 |
| H4 USD/JPY | 18.6% | 2.74 | 2.02 | −0.19 | 0.00 |
| H4 XAU/USD | 17.9% | 2.17 | 1.93 | +0.42 | +0.07 |
| H4 BTC/USD | 18.0% | 1.75 | 1.92 | −0.27 | +0.18 |
| D1 EUR/USD | 10.2% | 1.93 | 1.78 | −0.19 | −0.17 |
| D1 GBP/USD | 14.0% | 2.07 | 1.73 | −0.40 | −0.09 |
| D1 USD/JPY | 12.4% | 2.26 | 1.96 | +1.27 | +0.46 |
| D1 XAU/USD | 15.2% | 2.00 | 1.97 | −0.11 | +0.58 |
| D1 BTC/USD | 19.6% | 2.33 | 2.01 | +0.78 | +0.53 |
In 9 of the 10 rows the move after a squeeze was larger in size than the average move, by about 10% to 40% in most rows (the exception was Bitcoin on H4). In direction, there is no consistent pattern: the mean signed move after a squeeze was higher than the all-candle average in three rows and lower in seven, with large differences either way. Two cautions. First, the move is measured in ATRs of the candle where the squeeze is on, and the ATR is low during a squeeze, so part of the bigger move in ATR units is arithmetic: when volatility returns to normal, the move looks large against a small ATR. Second, this describes size and not direction, so it gives no entry. What it supports is the idea that volatility compresses and then returns toward normal, which fits the volatility-clustering result from the ATR lesson.
Worked examples
Example 1: calculate the bands by hand
These are the last 20 four-hour closes of EUR/USD on the demo feed, oldest first:
1.11714, 1.11815, 1.11959, 1.11894, 1.11976, 1.12033, 1.12091, 1.11950, 1.11290, 1.11236, 1.11554, 1.11961, 1.12155, 1.12159, 1.12140, 1.12070, 1.12188, 1.12124, 1.12290, 1.12451.
- The mean (the middle band) is 1.119525, shown as 1.11953.
- The population standard deviation (divide by 20) is 0.002997, shown as 0.00300. For comparison, the sample version (divide by 19) is 0.00307, a difference of 0.07 pips that does not matter here.
- Upper band = 1.119525 + 2 × 0.002997 = 1.125519, which rounds to 1.12552. Lower band = 1.119525 − 0.005994 = 1.113531, which rounds to 1.11353. (Using the rounded 1.11953 and 0.00300 gives 1.12553 and 1.11353; the 0.00001 difference is only rounding.) The engine gives the same values.
- The last close, 1.12451, gives %b = (1.12451 − 1.11353) ÷ (1.12552 − 1.11353) = 0.01098 ÷ 0.01199 = 0.916, so price is near the top of the bands but inside them.
- Bandwidth = (1.12552 − 1.11353) ÷ 1.11953 = 1.07%.
The bands are about 120 pips wide, which reflects the sharp drop to 1.11236 and the recovery within the 20-candle window. The standard deviation looks at all 20 closes, so one large move widens the bands for as long as it stays in the window.

What to notice: That the bands widened after the sharp drop and that price sits near the upper band.
Example 2: a band walk and a double top
A band walk. In the January 2026 rally (the up-trend in the trends lesson), over the 24 candles from 22 to 27 January, the close was above the upper band on 6 candles, %b was above 0.8 on 17 candles, and the close never fell below the middle band. The lowest %b was 0.53. Price had been riding the upper half of the bands for days. A trader who sold every time price touched the upper band would have sold into a rally that kept going.
A double top. On 19 and 20 August 2026 the 4-hour closes were above the upper band several times (19 August 20:00, %b 1.20; 20 August 00:00, 1.05; 20 August 08:00, 1.02). The first swing high of the double top, 1.17106 at 20 August 12:00, touched the upper band, then closed inside it (%b 0.91). The second high, 1.17113 at 21 August 12:00 (0.7 pips higher), came with the upper band at 1.17442 and a close at %b 0.73: the second push did not even reach the upper band. Over the following 30 candles price traded as low as 1.16365, below the middle band (1.16451 at that time).
The two cases show the same indicator giving opposite impressions: the band walk says “strong trend, do not fade it”, and the double top says “second test is weaker”. The bands do not tell you which case you are in. Neither case was used to measure how often such patterns work, and both were chosen after the fact.

What to notice: That the second high sits further inside the bands than the first.
How to apply it step by step
- Add Bollinger Bands (20, 2) to the chart and read three things: where price is inside the bands (%b), how wide the bands are (bandwidth), and which way the middle band is sloping.
- Check the trend first. In a strong trend, price can ride a band for many candles, and a touch is not a reversal signal.
- Compare the current bandwidth with its own history. Note whether it is near the low end of the last 100 candles.
- Treat a close outside the bands as information about strength, not as a reversal signal.
- If you use a squeeze, remember it describes size and not direction. Decide in advance how you will determine direction, and test that rule.
- If you change the settings, change them before you look at results and write down why.
- Record every band signal you consider and what happened over the next 12 candles in ATR units. Do not rely on a pattern with fewer than 30 cases.
Common mistakes
- Selling every touch of the upper band. In trends, price rides a band. Bollinger’s own rules say a tag of a band is not a signal.
- Assuming 95% of prices sit inside the bands. In our data about 87% did, and Bollinger says about 90%.
- Reading a squeeze as a direction. In our data the size of the move after a squeeze tended to be larger, and the direction showed no pattern.
- Treating bandwidth as an absolute number. It differs by instrument and timeframe. Compare it with its own recent history.
- Using the bands in isolation. Combine them with structure, levels and a plan with fixed risk.
- Changing settings after seeing results. That is data snooping.
When it works and when it does not
Bollinger Bands work as a measure of recent volatility drawn on the chart and a way to see where price sits relative to its recent range. They are most informative for judging whether a move is large or small compared with the recent past, and for spotting when volatility has compressed. They are poor as a stand-alone reversal signal, which is what many beginners use them for.
The evidence is limited. The one Bollinger-specific test we could verify found no consistent profit after costs, a large survey found the whole literature mixed, and our own event studies found a faint tendency toward continuation after a close outside the bands and a larger move after a squeeze without a direction. The numbers come from one feed, five instruments and two timeframes, and ignore costs, stops and size. Treat the bands as a description of recent volatility, and test any rule you build on them with costs and fresh data.
Practice exercise
Ten-candle bands for simplicity (not 20). The last ten closes are 100, 102, 101, 103, 105, 104, 106, 108, 107, 109.
- What is the mean?
- The population standard deviation of these ten closes is 2.87 (rounded). What are the upper and lower bands with k = 2?
- The last close is 109. What is %b, and is the close inside the bands?
- The bandwidth is (upper − lower) ÷ mean. What is it as a percentage?
- A trader sees %b = 1.15 and wants to sell. What does Bollinger’s own rule say about a close outside the band?
Answers:
1. Sum = 1,045, mean = 104.5.
2. Upper = 104.5 + 2 × 2.87 = 110.24. Lower = 104.5 − 5.74 = 98.76.
3. %b = (109 − 98.76) ÷ (110.24 − 98.76) = 10.24 ÷ 11.48 = 0.892. It is inside the bands, near the top.
4. Bandwidth = 11.48 ÷ 104.5 = 11.0%.
5. A close outside the bands is initially a continuation signal, not a reversal signal, and a tag of a band is not a sell signal in itself.
Key terms
Bollinger Bands – a moving average with bands placed a set number of standard deviations above and below it.
Standard deviation – a measure of how far values typically wander from their average.
Middle band – the 20-period simple moving average.
%b – the position of the close inside the bands: (close − lower) ÷ (upper − lower).
Bandwidth – the gap between the bands divided by the middle band.
Squeeze – a period when the bands are unusually narrow, or (in our engine) inside a Keltner Channel.
Keltner Channel – a band set a multiple of the ATR either side of an exponential moving average.
Band walk – price staying near one band for many candles in a trend.
Frequently asked questions
How do Bollinger Bands work?
They plot a 20-period simple moving average and two lines two standard deviations above and below it. The bands widen when prices are spread out and narrow when they are tightly clustered, so they show recent volatility and where price sits within it.
What do Bollinger Bands tell you?
How high or low price is compared with its recent range (%b) and how volatile the market has been (bandwidth). They do not tell you what will happen next.
Do prices stay inside Bollinger Bands 95% of the time?
No. Bollinger’s own rules say about 90%, and in our data between 86.0% and 88.0% of closes were inside the bands across five instruments and two timeframes.
Is a touch of the upper band a sell signal?
Bollinger’s own rules say a tag of a band is not a signal in itself, and closes outside the bands are initially continuation signals. In a strong trend price can ride a band for many candles.
What is a Bollinger Band squeeze?
A period when the bands are unusually narrow. In our data, the move after a squeeze was larger than average in 9 of 10 cases, but its direction showed no pattern, so a squeeze describes size and not direction.
What are the best Bollinger Band settings?
No setting has been shown to be best. 20 periods and 2 standard deviations are defaults, and Bollinger’s rules say they are starting points. Choose settings before looking at results.
Key takeaways
- Bands = 20-period SMA ± 2 population standard deviations. %b = (close − lower) ÷ (upper − lower). Bandwidth = (upper − lower) ÷ middle.
- About 87% of closes sat inside the bands in our data (86.0% to 88.0%), not 95%.
- A touch or a close outside a band is not a reversal signal: Bollinger says closes outside are initially continuation signals, and our data showed a faint continuation tilt.
- After a squeeze, the next move tended to be larger in size, with no pattern in direction.
- The one Bollinger-specific test we could verify found no consistent profit after costs.
Quick quiz
Q1. Mean 1.2000, standard deviation 0.0020. What are the bands (k = 2)?
A: Upper = 1.2040, lower = 1.1960.
Q2. The close is 1.2020 with those bands. What is %b?
A: (1.2020 − 1.1960) ÷ (1.2040 − 1.1960) = 0.0060 ÷ 0.0080 = 0.75.
Q3. Bandwidth for the same bands?
A: (1.2040 − 1.1960) ÷ 1.2000 = 0.0080 ÷ 1.2000 = 0.67%.
Q4. Why do the bands widen after a big move?
A: The standard deviation is calculated over the last 20 closes, so a large move increases it for as long as it stays in the window.
Q5. What does our data say about the direction of the move after a squeeze?
A: No consistent pattern: the mean signed move after a squeeze was above the all-candle average in three of ten rows and below it in seven, with large differences either way.
Q6. Why is the larger move after a squeeze partly arithmetic?
A: It is measured in ATRs of the candle where the squeeze is on, and the ATR is low then, so a return to normal volatility looks like a large move.
Going deeper
- Moving averages explained – the middle band.
- ATR and volatility – another measure of volatility, and the unit used in our tests.
- RSI explained – why a high reading is common in trends.
- Standard deviation – the measure the bands are built on.