Skip to main content

Bollinger Bands

Bollinger Bands are a volatility indicator consisting of a middle band (Simple Moving Average) and two outer bands placed at a specified number of standard deviations above and below the middle. The bands dynamically widen when volatility increases and narrow when volatility decreases, providing a visual envelope of “normal” price behavior.

How It Works

The three components are calculated as follows:
Middle Band = SMA(Close, period)
Upper Band  = Middle Band + (stdDev × σ)
Lower Band  = Middle Band - (stdDev × σ)

where σ = standard deviation of Close over the last `period` bars
The standard deviation measures how much closing prices have varied from the mean over the lookback window. When prices are stable, σ is small and the bands are tight. When prices swing wildly, σ is large and the bands expand.

Statistical Foundation

With stdDev: 2 (the default), approximately 95% of closing prices should fall within the bands under a normal distribution assumption. In practice, financial data is not perfectly normal (fat tails are common in crypto), so prices exit the bands more frequently than 5% — but each exit still represents a statistically significant deviation.

Indicator Type

Overlay — Bollinger Bands are drawn directly on the price chart, wrapping around candlesticks.

Settings

ParameterTypeDefaultDescription
periodnumber20Lookback period for the SMA and standard deviation calculation.
stdDevnumber2Number of standard deviations for the upper and lower bands.
colorcolor#3b82f6Color of the middle band (SMA line).
upperColorcolor#60a5faColor of the upper band line.
lowerColorcolor#1d4ed8Color of the lower band line.
lineWidthnumber1.2Thickness of all three band lines in pixels.

Parameter Combinations

PeriodStdDevCharacterUse Case
101.5Tight, reactiveScalping, quick mean-reversion entries
202.0Standard (default)General-purpose swing and day trading
202.5WiderReducing false signals on volatile pairs
502.0Smooth, slowPosition trading, identifying major expansions
503.0Very wideOnly flagging extreme moves on higher TFs
The default 20/2.0 combination works well for most situations. Only change these values if you have a specific reason — for example, widening stdDev to 2.5 on a highly volatile altcoin to avoid excessive band touches.

Interpretation

The Bollinger Squeeze

The most powerful Bollinger Bands signal is the squeeze — when bands narrow to their tightest point in recent history:
  1. Bands contract: Volatility has dropped to a low. Price is consolidating in a tight range.
  2. Breakout: Price breaks out of the squeeze, usually accompanied by a volume spike.
  3. Bands expand: Volatility returns. The direction of the breakout indicates the new trend.
A squeeze often precedes the most explosive moves. The longer the squeeze persists, the more powerful the subsequent breakout tends to be.

Band Walks

In a strong trend, price can “walk” along one of the outer bands:
  • Upper band walk: Price consistently touches or exceeds the upper band. This is a sign of strong bullish momentum, not an automatic sell signal.
  • Lower band walk: Price consistently touches or hugs the lower band. Strong bearish momentum, not an automatic buy signal.
Band walks typically end when price closes back inside the bands and the middle band begins to flatten.

Mean Reversion Signals

In ranging (non-trending) markets, Bollinger Bands excel as mean-reversion indicators:
  • Price touches upper band in a range → potential short entry, targeting the middle band.
  • Price touches lower band in a range → potential long entry, targeting the middle band.
  • The middle band (SMA) acts as the natural mean-reversion target.
The critical distinction is context: band touches in a trend are continuation signals (band walk), while band touches in a range are reversal signals (mean reversion). Determine the market context before acting on band touches.

Bandwidth and %B

Two derived metrics help quantify Bollinger Band signals: Bandwidth measures how wide the bands are relative to the middle:
Bandwidth = (Upper - Lower) / Middle × 100
Low Bandwidth values indicate squeezes. Monitoring Bandwidth over time helps identify when a squeeze is forming before it becomes visually obvious. %B measures where price sits within the bands:
%B = (Close - Lower) / (Upper - Lower)
  • %B > 1.0: Price is above the upper band.
  • %B = 0.5: Price is exactly at the middle band.
  • %B < 0.0: Price is below the lower band.

Alerts

Bollinger Bands support the following alert rules:
Alert EventDescription
upper_touchPrice closes above or touches the upper band
lower_touchPrice closes below or touches the lower band
Enable alerts in the indicator settings dialog under the Alert section. Set a cooldown to avoid repeated alerts during band walks.
Price touching the bands is not an automatic buy or sell signal. In strong trends, price will walk along a band for extended periods. Always assess whether the market is trending or ranging before interpreting band touches as reversal signals.

Combining with Other Indicators

CompanionStrategy
RSIBand touch + RSI divergence = high-probability reversal
Volume BarsSqueeze breakout + volume spike = confirmed expansion
VWAPBand touch near VWAP = strong confluence for mean reversion
MACDSqueeze + MACD histogram growing = building breakout momentum
DeltaLower band touch + positive delta = aggressive buying at oversold levels

Practical Considerations

  • Not a standalone system: Bollinger Bands describe volatility, not direction. They tell you when the market is stretched, not which way it will go. Always combine with directional indicators or price action.
  • Crypto volatility: Crypto markets are inherently more volatile than equities. The default 2.0 standard deviations may produce frequent band touches on lower timeframes. Consider 2.5 for altcoins.
  • Multi-timeframe: A squeeze on the daily chart is more significant than one on the 5-minute chart. Check higher timeframes to calibrate expectations.
  • False squeezes: Not every squeeze leads to a trend move. Some squeezes resolve with a brief spike followed by more ranging. Volume confirmation (a meaningful increase on the breakout bar) helps distinguish real breakouts from false ones.
  • Lookback startup: The indicator needs at least period bars to calculate the first valid value. The standard deviation stabilizes after approximately 2 × period bars.

Common Mistakes

  1. Shorting upper band touches in uptrends — band walks can persist for days. Wait for price to close back below the upper band and the middle band to flatten.
  2. Using in isolation — Bollinger Bands do not predict direction. A squeeze tells you “something is about to happen,” not “which way.”
  3. Ignoring the middle band — The SMA (middle) is often the strongest support/resistance on the chart and the primary mean-reversion target.
  • SMA — The middle band is an SMA; understanding SMA behavior helps interpret Bollinger Bands
  • RSI — Momentum oscillator that pairs well with band touch signals
  • VWAP — Volume-weighted mean for intraday confluence
  • MACD — Momentum confirmation for squeeze breakouts