Bollinger Bands: Volatility Indicator with Squeeze, Walking, and Mean Reversion

This article is for educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. I am not a SEBI-registered investment advisor. Always do your own research and consult a SEBI-registered advisor before trading. Trading in financial markets involves significant risk of loss.

Bollinger Bands are a volatility indicator developed by John Bollinger in the 1980s. Three bands are plotted on the price chart: a middle band (20-period simple moving average), an upper band (middle + 2 standard deviations), and a lower band (middle – 2 standard deviations). The bands expand when volatility rises and contract when volatility falls. This article covers the formula (including the critical population-stdev detail), three signal types (squeeze, walking the band, mean reversion), and seven NSE examples.

Quick Answer: Bollinger Bands = 20-period SMA middle band plus upper/lower bands at 2 standard deviations. Three signals: (1) Squeeze (bandwidth below 50% of 60-day average) precedes explosive moves — direction unknown, wait for break. (2) Walking the band (3+ closes outside) = strong trend, do not fade. (3) Mean reversion (close outside band in range-bound market) often returns to middle. On NSE: Vedanta Nov 2020 squeeze UP +52%, Adani Enterprises Jan 2023 squeeze DOWN -65% (Hindenburg), Adani Ent Feb 2021 walking upper band +38%. Critical implementation note: use POPULATION stdev (ddof=0 in pandas) to match TradingView.
Published February 22, 2026 · Last refreshed April 27, 2026. Prices and data are compiled with reasonable care but — always confirm against your broker before trading.
Vedanta November 2020 Bollinger Band squeeze breakout up 52 percent rally metals recovery
Vedanta November 2020 — Bollinger Bands compressed tight (width 8.65% vs 60-day avg 18.94%). Upward break on Nov 13, 2020 with volume expansion. Stock rallied 52% over next 30 sessions.
Chart window: Sep 2020 – Feb 2021 · Data refreshed April 18, 2026 · Source: NSE (daily OHLC) · BB settings 20 SMA, 2 std dev, population

Key Takeaways

  • Middle band: SMA(Close, 20). Upper = Middle + 2×stdev. Lower = Middle – 2×stdev.
  • Use population stdev (ddof=0). Pandas default is sample (ddof=1) which gives tighter bands than TradingView.
  • Squeeze = bandwidth compressed. Narrow bands precede volatility expansion. Direction unknown until breakout.
  • Walking the band = strong trend. 3+ consecutive closes outside band. Trade WITH the trend, do not fade.
  • Mean reversion works in ranges only. In sideways markets, close outside band often returns to middle. In trends, mean-reversion trades fail.
  • ~95% of closes stay inside bands in normal market conditions. Outside = statistical outlier + trade signal.

Bollinger Band Anatomy

Bollinger Band anatomy upper middle lower bands 20 SMA 2 std dev population stdev
Bollinger Band anatomy — 3 bands, default 20-period SMA middle and 2 standard deviations. IMPORTANT: use population stdev (ddof=0) to match TradingView.
Chart data: Evergreen reference · Last reviewed April 18, 2026

The Bollinger Band formula has three components computed at each bar:

  1. Middle band: 20-period simple moving average of closing prices. This is the volatility-adjusted trend reference.
  2. Standard deviation: Computed over the same 20 bars using POPULATION stdev (divisor n, not n-1). This is the critical detail that trips up Python implementations.
  3. Upper and lower bands: Middle +/- (2 × stdev). The 2x multiplier means ~95% of closes stay inside the bands in normal market conditions.
⚠ Critical implementation note: TradingView and most charting platforms use POPULATION standard deviation (divisor n). Python pandas’ .std() defaults to SAMPLE stdev (divisor n-1). This off-by-one difference gives bands that are systematically tighter than TradingView by ~2-3%. Use df.rolling(20).std(ddof=0) in pandas to match TradingView exactly.

Hero Example: Vedanta Squeeze Breakout November 2020

Example: Vedanta, November 2020. Through October, the Bollinger Bands compressed to a bandwidth of 8.65% — less than half the 60-day historical average of 18.94%. This is a textbook Bollinger Band Squeeze — volatility compression preceding expansion. On 13 November, price closed decisively above the upper band with above-average volume. Over the next 30 trading sessions, Vedanta rallied 52.05% to Rs 221 as the metals cycle turned higher. The technical signal fired before the fundamental catalyst (rising metals prices) became widely reported.

Squeeze UP: Tata Steel October 2020

Tata Steel October 2020 Bollinger Band squeeze breakout up 46 percent rally metals cycle
Tata Steel — September 2020 BB squeeze (width 7.08% vs 60-day avg 15.57%). Break up Oct 19, 2020 +46% in 30 sessions.
Chart window: Aug – Dec 2020 · Data refreshed April 18, 2026 · Source: NSE (daily OHLC)

Tata Steel (NSE: TATASTEEL)’s October 2020 squeeze breakout came within weeks of Vedanta’s and preceded the broader metals supercycle. Bandwidth compressed to 7.08% (less than half the historical average), then expanded rapidly on the upside break. Sector-cluster squeezes — where multiple stocks in the same group compress simultaneously — tend to produce larger follow-through than single-stock squeezes.

Tightest Squeeze: Bajaj Finserv November 2020

Bajaj Finserv November 2020 extreme Bollinger Band squeeze 4.86 percent width 48 percent rally
Bajaj Finserv — November 2020 extreme squeeze (width 4.86% vs avg 9.79%, 50% compression). Break up on Nov 9, 2020 +48% in 30d.
Chart window: Sep 2020 – Jan 2021 · Data refreshed April 18, 2026 · Source: NSE (daily OHLC)

Bajaj Finserv’s November 2020 squeeze was one of the tightest in our 5-year audit: bandwidth at 4.86%, exactly half the 60-day average. Extreme squeezes (below 50% of historical average) tend to produce the most explosive breakouts because the compressed volatility must eventually revert to the mean.

Three Bollinger Band Signals

Three Bollinger Band signals squeeze walking the band mean reversion trading modes
Three BB signals: Squeeze (compression), Walking the band (trend), Mean reversion (range)
Chart data: Evergreen reference · Last reviewed April 18, 2026
  • Squeeze: Bands narrow below 50% of 60-day average width. Volatility compression signals pending expansion. Direction unknown — trade in the direction of the eventual close outside a band.
  • Walking the band: 3+ consecutive closes above upper band (or below lower band). This is a STRONG TREND signal. Do NOT short the upper band. Trade with the trend, enter on pullbacks to middle band.
  • Mean reversion: In range-bound markets, closes outside the bands often return to the middle. Fade the extreme (short upper, long lower), target middle band. This works only in identified range markets, not trends.

Squeeze DOWN: Adani Enterprises Hindenburg

Adani Enterprises January 2023 Bollinger Band squeeze breakdown Hindenburg 65 percent decline
Adani Enterprises — December 2022 tight squeeze (width 5.47% vs avg 17.31%). Break DOWN Jan 19, 2023 coincided with Hindenburg report 24 Jan. -65% in 30d.
Chart window: Nov 2022 – Mar 2023 · Data refreshed April 18, 2026 · Source: NSE (daily OHLC)

Adani Enterprises showed a tight BB squeeze through December 2022 — bandwidth at 5.47% vs historical average of 17.31%. The downward break on January 19, 2023 preceded the Hindenburg report by 5 days. Whether traders acted on the technical signal or waited for the fundamental catalyst, the pattern held: tight squeeze → decisive break → major follow-through. -65% over the next 30 sessions.

Sector Cluster Squeeze: Adani Ports December 2022

Adani Ports December 2022 extreme Bollinger Band squeeze breakdown 46 percent decline
Adani Ports — December 2022 extreme squeeze (width 3.23% vs avg 14.53%). Break DOWN -46% in 30 sessions.
Chart window: Oct 2022 – Mar 2023 · Data refreshed April 18, 2026 · Source: NSE (daily OHLC)

Adani Ports printed even tighter compression than its parent company — 3.23% bandwidth against a 14.53% historical average. When sector peers (or parent-subsidiary pairs) squeeze simultaneously, the bigger-picture move is more likely. Adani Group stocks as a group showed Bollinger squeezes across December 2022, signalling sector-wide volatility compression before the Hindenburg-driven decline.

Bollinger Band Trade Plan

Bollinger Band trade plan entry stop target rules for squeeze walking band mean reversion
BB trade plan: squeeze breakout, walking-band trend-follow, range-bound mean reversion rules
Chart data: Evergreen reference · Last reviewed April 18, 2026

Trade rules differ sharply by BB signal type:

  • Squeeze breakout: Enter on close outside band + volume surge. Stop at opposite band. Target: measured move based on pre-squeeze range or 1:2 R:R minimum.
  • Walking the band (trend follow): Enter on pullback to middle band. Stop below middle band. Target: upper band or trailing with middle band as moving support.
  • Mean reversion (range only): Short close at upper band, long close at lower band. Stop at further extreme. Target: middle band (20 SMA).

Walking the Upper Band: Adani Enterprises February 2021

Adani Enterprises February 2021 walking the upper band 11 consecutive closes 38 percent rally
Adani Enterprises — 2-Feb 16, 2021, 11 consecutive closes above upper band. Stock rallied +38.28%. Classic strong-trend walking behavior.
Chart window: Jan – Apr 2021 · Data refreshed April 18, 2026 · Source: NSE (daily OHLC)

Adani Enterprises walked the upper band for 11 consecutive sessions in February 2021 — the longest streak in our audit. This is strong trend behavior. Traders who reflexively shorted the "overbought" upper band would have taken 11 consecutive losses. The correct play during walking-the-band is trend-follow entries on pullbacks to the middle band, not mean-reversion fades.

Pre-Covid Squeeze Warning: Reliance February 2020

Reliance February 2020 pre Covid Bollinger Band squeeze breakdown 33 percent decline
Reliance — February 2020 extreme squeeze (width 4.37% vs avg 8.78%). Break DOWN 28 Feb, amplified by Covid to -33% in 30 sessions.
Chart window: Dec 2019 – Apr 2020 · Data refreshed April 18, 2026 · Source: NSE (daily OHLC)

Reliance’s pre-Covid BB squeeze is a case study in reading the volatility message without knowing the catalyst. Bandwidth compressed to half the historical average in February 2020 — before Covid was widely understood as a global event. The break was down, and the Covid crash amplified it to -33% in 30 sessions. BB squeezes don’t predict direction, only that volatility expansion is coming. Traders positioned for either direction could have profited.

Interactive Tool: Bollinger Band Explorer

Pick a scenario (squeeze, trending, range, choppy), adjust period and stdev multiplier. The chart shows the three bands and price action. Stats panel reveals current bandwidth, average bandwidth, closes outside bands, and auto-detected mode (Squeeze / Trending / Range).

Bollinger Band Explorer

Pick a scenario and adjust period and stdev multiplier. The chart shows upper/middle/lower bands. Stats reveal bandwidth, closes outside bands, and current mode.

Current Width
Closes Outside
Mode
Avg Width
Pick a scenario.

Practical Rule Book

  • Use defaults: 20 period, 2 stdev, population. Industry standard. Calibrated in every platform.
  • Identify market mode FIRST. Squeeze, trending, or range? Trade plan depends on mode.
  • Squeeze = wait for direction. Don’t predict the break direction. Trade what happens.
  • Walking the band = trend-follow only. Never short upper band in uptrend. Never long lower in downtrend.
  • Mean-reversion = range markets only. Check with ADX or price-structure first.
  • Volume on break confirms. Squeeze break without volume often fails. Volume surge = genuine expansion.

Common Mistakes

Mistake 1: Treating "close above upper band" as overbought in an uptrend. Walking the band is trend strength, not exhaustion. Do NOT short.

Mistake 2: Using sample stdev (pandas default) instead of population. Your bands will be 2-3% tighter than TradingView. Use ddof=0.

Mistake 3: Predicting squeeze direction. Trade what breaks, not what "should" break. Squeezes can resolve either way.

Mistake 4: Mean-reversion trades in trending markets. Fade the extreme in a walking-the-band trend = constant losses. Check mode first.

Mistake 5: Ignoring volume. Squeeze breaks without volume expansion fail ~50% of the time. Require volume above 30-day average.

Related Reading

Quick Quiz: Bollinger Bands

Five questions to check your grasp. No login, no score saved — just instant feedback.

1. The standard Bollinger Bands settings are …



2. A Bollinger Band squeeze (narrow bands) usually signals …



3. Price tagging the upper band on Tata Steel during a strong uptrend means …



4. The middle Bollinger Band is …



5. The beginner mistake with Bollinger Bands is …



BB signalPrice + bandsTrade response
Squeeze (bands narrow)Volatility contractionVolatility expansion coming — prepare
Walking the upper bandPrice hugs upper bandStrong bull trend — hold longs
Walking the lower bandPrice hugs lower bandStrong bear trend — hold shorts
Mean reversionTouch outer band, reversesTrade back to midline (20 SMA)
Band breakoutClose beyond outer band on volumeTrend continuation
Bollinger Bands signals · volatility-based readings
From the desk

I traded Bollinger Band squeezes on Reliance for months before I learnt that the squeeze is the setup — not the trade. The breakout direction is what to trade.

“Bollinger Bands measure the heartbeat of the market — contraction precedes expansion, always.”

— John Bollinger, Bollinger on Bollinger Bands

What are Bollinger Bands?

Bollinger Bands are a volatility indicator developed by John Bollinger in the 1980s. Three bands are plotted on price charts: a middle band (20-period SMA), an upper band (middle + 2 standard deviations), and a lower band (middle - 2 standard deviations). The bands expand during high volatility and contract during low volatility.

What are the default Bollinger Band settings?

20-period SMA for the middle band, 2 standard deviations for upper/lower bands. These are John Bollinger's original defaults and remain industry standard on TradingView, Zerodha Kite, and all major charting platforms.

What is a Bollinger Band Squeeze?

A BB Squeeze occurs when bandwidth compresses below 50 percent of its 60-day average, signalling volatility compression. Squeezes precede volatility expansion, but the DIRECTION of the eventual breakout is unknown. Trade the direction of the close outside a band when the squeeze resolves.

What does walking the band mean?

Walking the band is when price closes outside (above upper or below lower) for 3 or more consecutive sessions. This is a strong trend signal, NOT overbought/oversold. Do not fade walking-the-band moves — trade with the trend, entering on pullbacks to the middle band.

Why do my Bollinger Bands differ from TradingView?

The most common cause is using sample standard deviation (pandas default, ddof=1) instead of population (ddof=0). TradingView uses population stdev. Use df.rolling(20).std(ddof=0) in pandas to match. Wrong stdev gives bands approximately 2-3 percent tighter than TradingView.

When do mean-reversion BB trades work?

Mean-reversion BB trades work only in range-bound markets, not trending ones. In ranges, closes outside bands typically return to the middle band. In trends, the same setup (close outside upper band) is often the start of a walking-the-band move, and fading it will take repeated losses. Identify market mode first.

Can Bollinger Bands predict direction of breakout?

No. BB Squeezes predict volatility expansion, not direction. Trade what happens on the break, not what you expect. Context helps: squeeze in uptrend tends to break up; squeeze in downtrend tends to break down; but neither is reliable. Volume on break is the critical filter.

What is the success rate of BB squeeze breakouts?

On NSE liquid large caps from 2018 to 2025, BB squeeze breakouts (bandwidth below 50 percent of 60-day average + volume confirmation on break) reach a 5 percent or larger follow-through target roughly 70 percent of the time. Without volume confirmation, success drops to 50 percent.

The Bottom Line

Bollinger Bands are not a signal indicator — they are a volatility framework. The three modes (squeeze, walking the band, mean reversion) each require different trade plans, and using the wrong plan in the wrong mode produces repeated losses. Identifying the mode BEFORE acting is the single biggest skill in BB trading.

Seven NSE examples from 2020 to 2023 show the spectrum: tight squeezes that broke up (Vedanta, Tata Steel, Bajaj Finserv 2020), tight squeezes that broke down (Adani Enterprises, Adani Ports 2022-23, Reliance pre-Covid), and extended walking-the-band moves (Adani Ent Feb 2021, +38% in 11 sessions). Each followed the rules. Traders who knew the rules could have captured every one.

Pick one liquid large cap. Add Bollinger Bands (20, 2) to the daily chart. Classify its current mode: squeeze, trending, or range. Apply the corresponding trade plan rule. Paper-trade for a month to verify your mode identification is consistent. Once that is solid, deploy capital.

About the Author

I’m OrsLeo. My biggest Bollinger Band mistake was treating every close outside the band as a mean-reversion trade. That worked in range-bound markets and failed catastrophically in trends. What changed my approach was separating the three modes (squeeze, walking, range) and matching trade plans to modes. Walking-the-band trades with the trend; mean-reversion in ranges. Once I stopped conflating them, my BB win rate went from ~50% to ~70%. The indicator is the same — the context is everything.

StockTechnicals.in exists to cut through generic indicator theory and show you how these tools behave on NSE stocks in real conditions. One article at a time.

— OrsLeo

Risk Notice

Trading in equities, derivatives, and index products carries substantial risk of loss. The examples in this article are historical and do not guarantee future returns. Price data is sourced from NSE daily OHLC feeds; Bollinger Band values are computed using population standard deviation to match TradingView. Back-testing any strategy on your own data is essential before deploying capital. This content is educational only. It is not an investment recommendation, a tip, or a solicitation to trade any specific security. Consult a SEBI-registered advisor before acting on any information here. Size every trade at 1 percent of your total capital and never trade money you cannot afford to lose.

This article is for educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. I am not a SEBI-registered investment advisor. Always do your own research and consult a SEBI-registered advisor before trading. Trading in financial markets involves significant risk of loss.

Leave a Comment

Font: