Technical Analysis

What is Bollinger Bands?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionBollinger Bands draw an upper and lower line a set number of standard deviations around a moving average, by default 2 standard deviations around a 20-period simple moving average. With Nifty’s 20-day average at 25,000 and a standard deviation of 150 points, the bands sit at 25,300 and 24,700 (illustrative).
Formula
Middle = SMA(20) of closes; Upper = Middle + 2 × σ(20); Lower = Middle − 2 × σ(20); %B = (Price − Lower) ÷ (Upper − Lower); Bandwidth = (Upper − Lower) ÷ Middle
Example
SMA 25,000, σ 150: bands 25,300 and 24,700; bandwidth 600 ÷ 25,000 = 2.4%; price 25,240 gives %B = 540 ÷ 600 = 0.90 (illustrative)

John Bollinger designed the bands in the 1980s so that their width adapts to volatility. When prices swing widely, the standard deviation grows and the bands move apart; when the market goes quiet, they pinch together. The bands therefore answer two questions at once: is price high or low relative to its recent average, and is volatility expanding or contracting?

How the bands are calculated

  1. Take the 20-period simple moving average of closes. This is the middle band.
  2. Compute the standard deviation of the same 20 closes. Bollinger’s method uses the population standard deviation (dividing by 20, not 19).
  3. Add 2 standard deviations to the middle band for the upper band and subtract 2 for the lower band.
  4. Optionally compute %B (where price sits between the bands, 0 at the lower and 1 at the upper) and bandwidth (band distance as a share of the middle band).
  5. The 20 and 2 defaults are a starting point. Bollinger’s own guidance widens the multiplier slightly for longer periods and narrows it for shorter ones, and many traders keep 20,2 on every timeframe. Whatever you pick, keep it fixed while you collect trades.

Worked example: Nifty, normal and squeeze

Upper band
25,300
Lower band
24,700
Bandwidth
2.4%
%B at 25,240
0.90

Illustrative levels with the 20-day SMA at 25,000 and σ at 150 points. If Nifty then spends two quiet weeks and σ falls to 60, the bands tighten to 25,120 and 24,880, a width of 240 points or 0.96% of the middle band. That compression is the squeeze. Back in the first case, a close at 25,360 above the 25,300 upper band would show %B of 660 ÷ 600 = 1.10: price is outside the band, which happens in strong moves and is not by itself a signal to fade.

Three common uses

BehaviourWhat traders look forJournal tag idea
Squeeze, then expansionBandwidth near a multi-week low, then a close outside the band with volumebb-squeeze-break
Walking the bandRepeated closes near the upper (or lower) band in a trend; pullbacks to the middle band as entriesbb-band-walk
Fade at the bandA rejection candle at the outer band inside a range, with a target at the middle bandbb-fade

The fade and the band walk are opposite trades in the same picture, so only your journal can say which suits you. Log the setup tag, timeframe, %B and bandwidth at entry. After 30 or more trades per tag, compare expectancy; if fades lose money when ADX is high, that becomes a written filter.

Bollinger Bands

Width from standard deviation of closes around an SMA. Reacts sharply to single large closes.
Default: 20-period SMA, 2σ

Keltner Channel

Width from ATR around an EMA, so it is smoother. A squeeze is often defined as Bollinger Bands moving inside the Keltner Channel.
Common: 20-period EMA, 1.5 to 2 × ATR

Limits worth knowing

  • The bands are not support and resistance. They mark where price is unusual relative to the last 20 bars, and in a trend unusual can last for weeks. Treating every touch as a wall is the most common way the indicator costs money.
  • Standard deviation reacts to single large closes. One results-day gap can widen the bands for the next 20 bars, then they snap narrower when it drops out of the window.
  • A squeeze tells you volatility is low, not which way it will expand. Many squeezes resolve with a false move first, so define the break and the stop before it happens.
  • The middle band is a 20-period simple average, so it lags in fast moves. Pullback entries to it work better in steady trends than in sharp ones.
  • Bands on very short intraday charts include the open, lunch lull and close in one window, which mixes very different volatility regimes.

A useful habit is to write down, before the session, which of the three behaviours you expect on the instruments you trade and what would prove you wrong. If you expect a range and price closes outside the band with rising bandwidth, the fade setup is off for the day. That single rule, logged with each trade, is usually more worth reviewing than the choice of period or multiplier.

For traders in India
Bank Nifty and Nifty often compress before RBI policy announcements and the Union Budget, then expand sharply. Tag those sessions separately, and consider tagging Nifty’s Tuesday weekly expiry, so a few event days do not decide whether your squeeze setup works.

Reference guide

ContextValueReading
A squeeze read as a sign that a bigger move may followFair readingIt says nothing about direction; wait for price to leave the range
Shorting every touch of the upper bandCostly in trendsStrong trends can walk along the band for many sessions
Same 20,2 settings on a 5-minute and a daily chart, logged under one tagMuddled dataThey behave like two different systems; tag the timeframe with the setup

Questions

What are the standard Bollinger Band settings?

A 20-period simple moving average with bands 2 standard deviations above and below. Some traders adjust the period or multiplier for shorter or longer timeframes.

How are Bollinger Bands calculated?

Middle band = 20-period SMA of closes. Upper and lower bands = middle ± 2 × the standard deviation of those 20 closes.

What is a Bollinger Band squeeze?

A period when the bands are unusually close together because volatility has dropped. It often precedes a larger move but does not show which way.

Is price touching the upper band a sell signal?

Not on its own. In a strong uptrend price can ride the upper band for many sessions. Touches matter only inside a defined setup with a trigger and stop.

Do Bollinger Bands work on Nifty and Bank Nifty intraday?

They can be applied on any timeframe. Results depend on the setup, so tag the timeframe and review expectancy on your own trades.

Related terms