TradeProfy
Loading global marketscrypto live · forex ECB

Popular & new

Most used

New this month NEW

New this month

Education and estimation only. TradeProfy is not a registered investment adviser in any country and does not recommend buying or selling any security, currency or crypto-asset. Leveraged trading can lose money quickly.

Bollinger Bands: a practical guide

Bollinger Bands put a moving average inside an envelope that widens and narrows with volatility. They are useful for judging whether a move is ordinary or unusual, but they are often taught as a simple buy-low, sell-high tool. Here is how they really behave.

Mantu KumarBy Reviewed 7 November 2026How we check our numbers

Key takeaways

  • Bands sit two standard deviations around a 20-period average and widen with volatility.
  • A close outside a band is unusual for the recent past, not a forecast.
  • Mean reversion suits ranges; walking the band is common in trends.
  • A squeeze shows low volatility but not the direction of the next move.
  • %B and bandwidth make the bands testable as numbers.

Construction

John Bollinger introduced the bands in the 1980s. The standard version uses a 20-period simple moving average and draws lines two standard deviations above and below it.

Middle band = SMA(20) of close
σ = standard deviation of the last 20 closes
Upper band = Middle + 2 × σ · Lower band = Middle − 2 × σ
%B = (Close − Lower) ÷ (Upper − Lower)
Bandwidth = (Upper − Lower) ÷ Middle

Because the width depends on the standard deviation of recent closes, the bands automatically widen after big moves and contract during quiet periods. That is the whole point: a two-dollar move means one thing in a calm market and something else in a wild one.

Worked example

Over 20 days a share averages 50.00 with a standard deviation of 1.25. The bands sit at 47.50 and 52.50. A close at 52.00 gives %B = (52.00 − 47.50) ÷ 5.00 = 0.90, near the top of the envelope. Bandwidth is 5.00 ÷ 50 = 10%. If a week later the standard deviation has fallen to 0.50, the bands narrow to 49.00–51.00 and bandwidth drops to 4%: a squeeze.

A common misunderstanding

It is often said that “95% of prices stay inside the bands.” That statistic comes from the normal distribution, but market returns are not normally distributed and the bands are built from closes, not returns. In practice prices close outside two-standard-deviation bands more often than 5% of the time, and in trends they can “walk the band” for many sessions. A close above the upper band is a sign of strength first, and only sometimes a sign of exhaustion.

Three ways traders use the bands

1. Mean reversion

Buy when price closes below the lower band and exit at the middle band (or the reverse for shorts). This works best in sideways markets where moves away from the average tend to snap back. In trending markets it fails repeatedly: the rule buys into a falling market each time it makes a new low.

2. The squeeze

When bandwidth falls to its lowest level in several months, volatility is unusually low. Periods of low volatility tend to be followed by higher volatility, so a squeeze is a warning that a bigger move may come. It says nothing about the direction. Traders often wait for a close outside the band, or a break of a recent high or low, to choose a side.

3. Walking the band

In a strong uptrend, closes hug the upper band and pullbacks stop near the middle band. Trend followers use a close below the middle band as an exit signal rather than using touches of the upper band as sell signals.

Settings and other markets

Bollinger himself suggested about 20 periods with 2 standard deviations, 10 periods with 1.9, and 50 periods with 2.1 as roughly equivalent setups. On crypto, which trades every day, 20 daily bars cover under three weeks; on stocks they cover four. When you compare markets, think in calendar time as well as bars.

ReadingWhat it saysWhat it does not say
Close above upper bandThe close is unusually high for the last 20 barsThat price must fall
%B below 0The close is below the lower bandThat the market is cheap
Bandwidth at a multi-month lowRecent volatility is unusually lowWhich way the next move will go

Testing a band strategy

The TradeProfy backtester includes a “Bollinger Band reversion” rule: buy a close below the lower band, sell at the middle band, with an option to short the upper band. Try it on a range-bound pair and on a strongly trending coin. The contrast is usually stark and shows why the same tool needs a different approach in each regime. A simple trend filter, such as taking long reversion trades only while price is above its 200-day average, is a common way to reduce the worst losses.

Stops and sizing

The bands give natural reference points: a reversion trade that keeps falling far beyond the lower band is not working. One approach is to place the stop a fixed number of average true ranges below the entry and size the position from that distance in the Trade Planner. Because the expected gain of a reversion trade (back to the middle band) is often small, check the net reward-to-risk after fees carefully; tight setups can lose money even with a high win rate.

Bandwidth and %B as numbers you can test

The two derived measures turn the visual idea of the bands into numbers you can put in rules. Bandwidth answers “how volatile is this market compared with its own recent past?” A practical way to use it is to compare today’s bandwidth with its range over the last six months. If it is in the lowest tenth of that range, the market is unusually calm; if it is in the highest tenth, unusually wild. %B answers “where is the close inside the envelope?” Values above 1 mean the close is above the upper band, values below 0 mean below the lower band. A rule such as “buy when %B is below 0 and the 200-day average is rising” is precise enough to backtest.

Two-panel chart: simulated prices with a 20-day average and Bollinger Bands that narrow during a quiet range and widen when price breaks out, and below it the bandwidth line falling to its lowest point at the squeeze
Bandwidth turns the squeeze into a number you can test. It fell to its lowest point in the quiet range just before the breakout; a squeeze tells you volatility is low, not which way price will break.

Bands on different timeframes

A 20-bar band on a 1-hour chart covers less than a day of trading; on a weekly chart it covers almost five months. Bands on a higher timeframe tell you about the bigger structure: a weekly close outside the upper band is a much rarer event than an hourly one. A common approach is to check the daily bands for context and use the hourly bands for timing, while making sure the two do not contradict each other. If the daily close is already near the upper band, an hourly buy signal at the lower band has less room to run.

A step-by-step reversion plan

  1. Confirm the market has been moving sideways: for example, the 50-day average is roughly flat and price has crossed it several times in the last two months.
  2. Wait for a daily close below the lower band (%B below 0).
  3. Enter at the next open, not at the close you used for the signal. That is how the TradeProfy backtester fills trades, so your plan and your test match.
  4. Place a stop about 1.5 average true ranges below the entry.
  5. Target the middle band. Check the distance: if it is less than the stop distance after costs, the trade has a net reward-to-risk below 1 and needs a very high win rate.
  6. Size the position from the stop in the Trade Planner and record the result in R.

Keltner channels and other envelopes

Bollinger Bands are one of several envelope indicators. Keltner channels, for example, place lines a multiple of average true range around an exponential average, so they respond to the size of each bar rather than to the spread of closes. Some traders treat Bollinger Bands moving inside Keltner channels as a squeeze signal. Whatever envelope you use, the same principles apply: the envelope describes recent volatility, and a close outside it is a fact about the recent past, not a forecast.

Using the bands on TradeProfy

Add Bollinger Bands in Advanced Charts from the ƒx menu; they draw on the price pane with a shaded area between the bands. Hover over any bar to see the upper, middle and lower values. To see which markets currently have unusually low or high volatility, sort the screener by its volatility column, then open the calm or wild names on a chart and look at their bands.

Try band reversion on a live marketTest buying the lower band and selling at the middle band, with an optional short side.
Open the backtester →

Key terms

Standard deviation
A measure of how widely the last N closes are spread around their average.
%B
Where the close sits inside the bands: 0 at the lower band, 1 at the upper.
Bandwidth
Band width divided by the middle band; a volatility measure.
Squeeze
A period of unusually narrow bands.
Walking the band
Closes repeatedly near or beyond one band during a trend.
Education only. This guide explains how an indicator or method works. It is not a recommendation to buy or sell anything, and past patterns do not predict future prices. Trading, especially with leverage, can lose money quickly.

Frequently asked questions

What are the default Bollinger Band settings?

A 20-period simple moving average with bands two standard deviations above and below. Most platforms use these values by default.

Is a touch of the upper band a sell signal?

Not on its own. In uptrends prices often ride the upper band. A touch shows the close is high relative to the last 20 bars, nothing more.

What is a Bollinger squeeze?

A period when the bands are unusually narrow, meaning recent volatility is low. It often comes before a larger move, but it does not tell you the direction.

What is %B used for?

%B shows where the close sits inside the bands: 0 at the lower band, 1 at the upper band, 0.5 at the middle. It makes band position comparable across markets and easy to use in rules.

Do Bollinger Bands work on crypto?

The calculation works on any price series. Crypto’s high volatility makes the bands wide, and trends can be strong, so reversion rules need testing with realistic costs.

Mantu Kumar, founder of TradeProfy

Written and maintained by Mantu Kumar

Mantu builds the TradeProfy calculators and checks every formula with worked examples. Each page lists its data sources and assumptions. TradeProfy explains costs and maths but never tells you what to buy or sell.

Read Mantu’s profile · How we check our numbers