Bollinger Bands are a volatility envelope drawn around price: a moving average in the middle and two bands that widen when the market becomes volatile and narrow when it calms down. John Bollinger developed them in the early 1980s, and they are now a standard tool on almost every charting platform.
The bands answer one question: is the price high or low relative to its own recent range? They do not say whether it will reverse. That distinction explains both of the main ways traders use them, betting on a return to the average or on a breakout, and why each works only in the right market conditions.
How are Bollinger Bands calculated?
The standard settings are 20 periods and 2 standard deviations:
Middle band = 20-day simple moving average of closes
Upper band = middle band + 2 × standard deviation of the last 20 closes
Lower band = middle band − 2 × standard deviation of the last 20 closes
The standard deviation measures how far the 20 closes are spread around their average. VantageLedger computes it as a population standard deviation, dividing by 20 rather than 19, which is the method Bollinger specifies. Some spreadsheets and platforms default to the sample version (dividing by N − 1), which makes the bands slightly wider; that explains small differences between websites.
Because the bands are built from the standard deviation, they react to volatility automatically. A quiet market produces narrow bands; a sharp sell-off makes them balloon outward within days.
A worked example: the S&P 500 on April 4, 2025
The tariff sell-off of early April 2025 is a clear illustration. On April 4, 2025, the S&P 500 closed at 5,074.08 after two days of heavy losses. The 20-day window ran from March 10 to April 4.
| Component (April 4, 2025) | Value |
| Middle band (20-day average) | 5,607.95 |
| Population standard deviation | 147.08 |
| Upper band (5,607.95 + 2 × 147.08) | 5,902.12 |
| Lower band (5,607.95 − 2 × 147.08) | 5,313.79 |
| Close | 5,074.08 |
| %B | −0.41 |
| Bandwidth | 10.5% |
The close sat about 240 points below the lower band, so %B was negative. With the sample standard deviation instead (150.90), the bands would have been about 8 points wider on each side. Two days earlier, on April 2, bandwidth was 4.8%; by April 8 it had reached 16.6%, as the crash fed straight into the standard deviation.
Was the close below the lower band a buy signal? Not on its own terms: the index fell further and closed lower on April 7 and April 8, before rebounding sharply on April 9.
%B and bandwidth: the two numbers behind the bands
Bollinger introduced two derived indicators that turn the picture into numbers.
%B = (close − lower band) ÷ (upper band − lower band)
Bandwidth = (upper band − lower band) ÷ middle band
- %B locates price within the bands. 1 means the close is on the upper band, 0 on the lower band, 0.5 on the middle. Above 1 or below 0 means outside the bands. In the example, (5,074.08 − 5,313.79) ÷ (5,902.12 − 5,313.79) = −0.41.
- Bandwidth measures how wide the bands are as a share of the average. It is the cleanest way to compare volatility across time or across assets, and the basis of the squeeze.
Because it is a ratio, %B can be compared across assets in a way raw prices cannot: a %B of 1.1 means the same thing on a $20 stock and on the S&P 500.
What does it mean when price touches a band?
A common belief is that price stays inside two-standard-deviation bands about 95% of the time. That is true for normally distributed data, but market returns have fatter tails and trends. We counted how often the daily close ended outside the 20-day, 2-standard-deviation bands from 2016 to 2025 (stock closes adjusted for splits and dividends, the S&P 500 as a price index):
| Asset, 2016–2025 | Closes above upper band | Closes below lower band | Median bandwidth |
| S&P 500 | 6.0% | 4.8% | 5.2% |
| Apple | 8.6% | 4.6% | 10.7% |
| Tesla | 8.2% | 5.1% | 20.5% |
| Bitcoin | 8.7% | 4.5% | 18.0% |
Two lessons follow. First, closes outside the bands happen on roughly one session in eight to ten, so a band touch is a routine event, not an extreme one. Second, closes above the upper band were more frequent than closes below the lower band for every asset in the table, a reflection of rising markets: strength tends to persist, so touching the upper band is more often a sign of momentum than of exhaustion.
The Bollinger squeeze
A squeeze happens when bandwidth drops to its lowest level in several months. Volatility tends to cycle: quiet periods are followed by active ones, and the reverse. A squeeze says a big move is more likely than usual. It says nothing about direction.
To give a sense of scale: from 2016 to 2025, the S&P 500's bandwidth was below 2.7% on one session in ten and above 10.8% on one in ten, with a median of 5.2%. For Tesla the same range ran from about 10% to 43%. What counts as "tight" therefore depends entirely on the asset, which is why a squeeze is defined against the asset's own history rather than a fixed number.
Traders who trade the squeeze usually wait for the first close outside the bands after it, and often want volume or a trend indicator such as the ADX to confirm. The classic trap is the "head fake": a first break in one direction that reverses into a real move in the other.
Walking the bands: when a band touch is not a reversal
In a strong trend, price can close at or near the upper band day after day while the bands widen and slope upward. Bollinger calls this walking the bands. It is a sign of a powerful trend, and selling every touch of the upper band during such a run means selling the trend's best days. The same is true in reverse in a crash.
A practical tell is the middle band. In a healthy uptrend, pullbacks often stop near the 20-day average and %B stays mostly above 0.5. A close below the middle band after a long walk along the upper band is one of the first signs that the trend is losing strength.
Mean reversion or breakout: two ways to trade the bands
- Mean reversion: buy near or below the lower band and sell near the middle or upper band, betting that price returns to its average. This works best in sideways markets and fails badly in trends, as April 2025 showed for anyone who bought the first close below the lower band.
- Breakout: buy a close above the upper band, especially after a squeeze, betting that expanding volatility marks the start of a trend. This works best when a range resolves into a trend and suffers in choppy markets, where breakouts fail.
Many traders combine the bands with an oscillator. A close below the lower band with a bullish RSI divergence is a stronger mean-reversion setup than a band touch alone. In VantageLedger's fake-money Alpha Arena, one of the rule-based house agents, Breakout Hunter, trades Bollinger breakouts, so you can follow how a breakout approach is traded in public.
Bollinger Bands vs Keltner Channels
Keltner Channels look similar but measure volatility differently. The version on VantageLedger's charts uses a 20-day exponential moving average as the middle line, with bands at 2 × the 10-day average true range (ATR) above and below.
| Bollinger Bands | Keltner Channels |
| Middle line | 20-day SMA | 20-day EMA |
| Volatility measure | Standard deviation of closes | Average true range (uses highs and lows) |
| Reaction to a shock | Fast and large: one big move widens the bands sharply | Smoother |
| Lower band, S&P 500, April 4, 2025 | 5,313.79 | 5,341.18 |
Because standard deviation squares each deviation, Bollinger Bands react more violently to a single large move. Some traders combine the two: a squeeze is flagged when the Bollinger Bands contract inside the Keltner Channels, meaning standard-deviation volatility has fallen below range-based volatility.
Bollinger Band settings for stocks, indexes and crypto
Bollinger's defaults of 20 periods and 2 standard deviations work on most daily charts, and they are VantageLedger's default. The chart also offers 10 and 50 periods.
- Shorter (10): follows price closely, suited to short-term trading. Bollinger suggests narrowing the multiplier slightly, to about 1.9, at this length.
- Standard (20): about a month of trading, the reference most traders use.
- Longer (50): a slower envelope for the intermediate trend; Bollinger suggests about 2.1 standard deviations here.
For volatile assets such as Tesla or bitcoin, the bands are simply much wider, which the standard deviation handles on its own; there is no need to change the multiplier to make them fit. Keep in mind that bitcoin trades seven days a week, so 20 periods cover under three calendar weeks instead of about four for stocks. The VIX Explained: The Stock Market Fear Index is the market-wide counterpart for S&P 500 volatility.
How to use Bollinger Bands on VantageLedger
Open any instrument page and add Bollinger Bands from the indicator picker; they are drawn on the price chart with the middle, upper and lower bands. Add Keltner Channels at the same time to compare the two envelopes, or the ATR for a separate volatility pane.
The screener can compare a band with the price across every asset. Set the condition to the upper band crossing below the price, which is the same as a close breaking above the band, to find breakouts, or the lower band being above the price to find stretched declines. An indicator alert does the same for a single asset and emails you once a day, after the close, when it happens.
Scan for Bollinger breakouts
Alerts are set up from the indicator alerts page; a free account can keep one active.
FAQ
What are the best Bollinger Band settings?
20 periods and 2 standard deviations, Bollinger's own defaults, are the reference on daily charts. Shorter periods suit short-term trading and longer ones the intermediate trend, with the multiplier adjusted slightly if you follow Bollinger's guidance.
Is it bullish when price breaks above the upper Bollinger Band?
It shows strong momentum, and in a trend price can walk along the upper band for weeks. It becomes a warning only if momentum fades, for example with a close back below the middle band.
Do Bollinger Bands use sample or population standard deviation?
Bollinger specifies the population standard deviation, dividing by the number of periods, and VantageLedger follows that. Platforms that use the sample version draw slightly wider bands.
Do Bollinger Bands work for crypto?
The same calculation applies, and the bands adapt to bitcoin's higher volatility automatically. From 2016 to 2025 bitcoin's median bandwidth was more than three times the S&P 500's, and it closed outside its bands slightly more often.
This article is for education only and is not investment advice. Past performance does not guarantee future results. Live figures are computed from daily closing prices and can lag the market by a day or more.