Skip to main content

Bollinger Bands: Meaning, Formula, How to Calculate

6 min readUpdated on 1st Sept, 2026by Team Angel One
Bollinger bands measure volatility and boundary limits, giving traders a statistical read on how much room a stock has to move.
Share

Bollinger Bands measure how stretched or still a stock’s price is relative to its own recent statistical behaviour. The technical trading tool was developed by John Bollinger in the early 1980s.

Unlike the traditional view that volatility was relatively constant, Bollinger recognised that market volatility is dynamic and changes over time, leading to the development of bands that expand and contract with price volatility.

This article explains what Bollinger Bands are and how to read them.

Key Takeaways

  • Bollinger Bands consist of a middle moving average line and outer bands based on standard deviations, acting directly as a measure of market volatility rather than direction.
  • Bands widen during periods of high volatility and contract during calm periods (“squeezes”), signalling that larger price displacement may be building.
  • Touching a band is not an automatic entry or exit signal; in strong trends, prices can “walk the band” for extended durations.
  • Bollinger Bands perform best when integrated with momentum oscillators (such as RSI) or volume filters to filter out false breakouts.
  • Automated strategies utilising technical indicators are formally classified into “White Box” (transparent logic) or “Black Box” (hidden logic) categories under updated regulatory guidelines.

What are Bollinger Bands?

Bollinger Bands are a technical analysis tool composed of three tracks plotted over price data:

  • Middle Band: A Simple Moving Average (SMA) acting as the baseline.
  • Upper Band: Set a specified number of standard deviations above the middle band.
  • Lower Band: Set the same number of standard deviations below the middle band.

How Bollinger Bands Are Calculated

Step 1: Middle Band (Simple Moving Average)

Middle Band = SMA(Closing Price, 20)

The 20-period SMA is the standard default, though other periods can be used depending on the trader's preferred timeframe.

Step 2: Standard Deviation

Standard Deviation measures how much the closing price varies from the moving average over the same 20-period window.

Step 3: Upper and Lower Bands

Upper Band = Middle Band + (2 × Standard Deviation)

Lower Band = Middle Band − (2 × Standard Deviation)

The multiplier of 2 is the standard default, though some traders adjust it (commonly to 1.5 or 2.5) depending on how sensitive they want the bands to be.

Example:

Day  Closing Price  20-day SMA (Middle)  Standard Deviation  Upper Band  Lower Band 
Day 20  ₹502  ₹500  ₹8  ₹516  ₹484 
Day 21  ₹520  ₹501  ₹10  ₹521  ₹481 

Note: On Day 21, price approaches the upper boundary of ₹521 as volatility expands, pushing the standard deviation from ₹8 to ₹10. 

Custom Settings Reference

Timeframe / Trading Style  Moving Average Setting  Standard Deviation Multiplier 
Short-term / Intraday  10 SMA  1.5 to 2.0 
Medium-term / Swing  20 SMA (Default)  2.0 
Long-term / Position  50 SMA  2.0 to 2.5 

How to Read Bollinger Bands?

  • Band Width: It’s the distance between upper and lower tracks. Wider gaps denote high volatility, narrow gaps denote low volatility.
  • The Squeeze: Extreme contraction of band width, warning traders of an impending breakout in either direction.
  • Band Touching: Price interacting with outer limits, which can signify either short-term overbought/oversold conditions or strong momentum continuity.
  • Walking the Band: Consecutive closes hugging an outer band, demonstrating strong directional trend strength rather than a reversal opportunity.

Advanced Indicators: %b and Bandwidth

  • %b (Percent b): Quantifies where the current price sits relative to the upper and lower bands on a scale from 0 to 1 (where 0 is the lower band and 1 is the upper band). Values above 1 indicate the price has moved above the upper band, while negative values show it has dropped below the lower band.
  • Bandwidth: Measures the normalized distance between the upper and lower bands, calculated as (Upper Band - Lower Band) / Middle Band. It explicitly tracks the compression or expansion of volatility over time, making it useful for identifying pre-breakout squeezes.

Read More About: Simple Moving Average

Why Touching a Bollinger Band Isn't Automatically a Signal?

A misconception is that price hitting the upper band means "sell" and hitting the lower band means "buy." In a trending market, price can ride along a band for an extended stretch. Traders who sell every upper-band touch during a strong uptrend can end up exiting a winning position far too early.

This is why Bollinger Bands are generally read alongside context, such as:

  • Whether the broader trend is up, down, or range-bound
  • Volume accompanying the move toward the band
  • A momentum indicator (like RSI or MACD) confirming or contradicting the band signal

Where Bollinger Bands Fit in a Trading Approach

  • Range-bound markets: Using band touches as potential reversal points, ideally confirmed by a momentum indicator.
  • Breakout anticipation: Watching for a squeeze as an early signal that a larger move may be building, without assuming a direction in advance.
  • Trend-following context: Treating repeated band touches during a strong trend as confirmation of trend strength rather than an automatic reversal signal.
  • Automated or rule-based strategies: Since the calculation is fully formula-driven, Bollinger Bands are commonly coded into systematic strategies with clearly defined entry and exit rules.

Strengths and Limitations of Bollinger Bands

Advantages:

  • Dynamic adaptation: Automatically adjusts to market volatility, unlike static channels or fixed-percentage envelopes.
  • Early breakout warnings: The squeeze formation offers a visually straightforward heads-up for compression phases preceding major moves.
  • Broad applicability: Functions across various asset classes and timeframes, from 5-minute intraday charts to daily swing trading setups.

Disadvantages:

  • Lagging Nature: Because the baseline is built on a moving average, it inherently lags behind instantaneous price action.
  • False Reversals: Can produce misleading counter-trend signals in strong, persistent directional trends.
  • No directional forecast: The bands show volatility range and boundaries, but they do not predict whether the eventual breakout will be upward or downward.

Bollinger Bands vs Other Volatility and Momentum Tools

Indicator  What It Measures  How It Complements Bollinger Bands 
Average True Range (ATR)  Absolute volatility magnitude (independent of a moving average)  Pairs excellently with Bollinger Bands to define precise stop-loss distances and breakout targets. 
Relative Strength Index (RSI)  Momentum speed and overbought/oversold extremes  Used concurrently to verify if a price touch on the outer band aligns with genuine momentum exhaustion. 
Moving Average Convergence Divergence (MACD)  Trend direction and momentum shifts  Helps distinguish a true market reversal from a powerful trend continuation when price approaches a band. 

SEBI’s Framework Around Automated, Indicator-Based Strategies

Transitioning manual indicator logic into an automated execution script requires strict adherence to regulatory guidelines:

  • White Box vs Black Box: Transparent rule sets (White Box) allow for a streamlined review process, whereas proprietary logic (Black Box) requires the provider to hold a SEBI Research Analyst (RA) licence.
  • Unique Strategy ID: Every automated order must carry an exchange-assigned identifier for auditability.
  • Orders Per Second (OPS) Thresholds: Self-built personal scripts operating below 10 OPS are classified as regular API usage and do not require formal exchange registration, though they must comply with static IP whitelisting and 2FA mandates.

Conclusion

Bollinger Bands offer a straightforward, visual way to understand if a stock's recent price action is unusually volatile or unusually calm. The bands work best as a volatility lens, used alongside trend context and a confirming momentum tool, rather than as a standalone signal generator based purely on price touching a band.

FAQs

No. In robust uptrends, prices can ride or “walk” along the upper band continuously without reversing. 

It indicates market consolidation and low volatility, acting as an early visual warning that a sharp breakout could happen soon. 

A 20-period simple moving average with outer bands set at 2 standard deviations is the default industry standard. 

Not, ideally. Pairing them with momentum metrics such as RSI or volume indicators yields far greater reliability. 

No, they function best as reversal triggers in range-bound markets and trend-strength confirmations in trending markets. 

If you execute personal scripts below 10 orders per second without commercial distribution, formal exchange registration is not required, though broker API security protocols (such as static IP binding) remain mandatory. 

White Box strategies feature transparent, user-auditable code logic, whereas Black Box strategies conceal internal parameters and require the developer to maintain SEBI Research Analyst credentials. 

Intraday equity profits are categorised as speculative business income and taxed at your standard income tax slab rates. 

Open Free Demat Account!

Join our 3.8 Cr+ happy customers

+91

Open Free Demat Account!

Join our 3.8 Cr+ happy customers
+91