📘Comprehensive Analysis of Bollinger Bands: Formulas, Trading Signals, Divergence Traps, and Practica
This article was produced by the Quantitative Trading Lab at https://www.itrade.icu. Visit for more benefits.
1. Introduction to Bollinger Bands
Bollinger Bands, developed by technical analysis expert John Bollinger, are a trend and volatility indicator used to measure the "relative high or low" of prices and changes in volatility.
They consist of three lines:
Middle Band: Typically an N-day Simple Moving Average (SMA).
Upper Band: Middle Band + K times the standard deviation.
Lower Band: Middle Band − K times the standard deviation.
Calculation Formulas:
Middle Band = MA(Close, N) Middle Band Formula
Upper Band = Middle Band + K * StdDev(Close, N) Upper Band Formula
Lower Band = Middle Band - K * StdDev(Close, N) Lower Band FormulaCommon parameters:
N = 20 (Period)
Used to calculate the moving average and standard deviation, typically based on the most recent 20 K-lines.
Larger values make the bands smoother; smaller values make them more responsive but prone to false signals.
K = 2 (Standard Deviation Multiplier)
Controls the distance between the upper/lower bands and the middle band, typically set to 2, covering about 95% of price fluctuations.
Larger K values produce fewer but more stable signals; smaller K values generate more frequent but less reliable signals.
2. 📐 Calculation Example: Bollinger Bands Computation Process
Assume we calculate Bollinger Bands using closing price data with a period N = 5 and standard deviation multiplier K = 2.
📊 Hypothetical 5-day closing prices:
Step 1: Calculate the Middle Band
The Middle Band is the 5-day Simple Moving Average (SMA):
Step 2: Calculate the Sample Standard Deviation (σ)
The sample standard deviation formula is:
Using the data, with the mean $\bar{X} = 100$:
$(98 - 100)^2$
4
$(100 - 100)^2$
0
$(102 - 100)^2$
4
$(101 - 100)^2$
1
$(99 - 100)^2$
1
Sum of Squared Differences
4 + 0 + 4 + 1 + 1 = 10
Sample Standard Deviation σ
$\sqrt{10 / (5-1)} = \sqrt{2.5} \approx 1.5811$
Step 3: Calculate the Upper and Lower Bands
Using the standard deviation multiplier $K = 2$:
Parameter Explanation
$K$ (Standard Deviation Multiplier):
Controls the width of the Bollinger Bands relative to the Middle Band.
A common value of 2 means the bandwidth covers approximately 95% of price fluctuations (based on a normal distribution assumption).
Larger K values widen the bands, producing more conservative signals; smaller K values narrow the bands, making signals more sensitive but prone to false breakouts.
$\sigma$ (Standard Deviation):
Measures the degree of price volatility over the given period.
A larger standard deviation indicates greater price fluctuations, widening the Bollinger Bands.
This example uses the "sample standard deviation" to estimate future volatility based on historical data.
💡 5-Day Bollinger Bands Example Summary
This case calculates the three Bollinger Band lines using 5-day closing price data:
Upper Band (≈103.16): Middle Band plus two standard deviations, representing the upper limit of price fluctuations. A breakout above this level indicates strong upward momentum or short-term overbought conditions, requiring volume confirmation.
Middle Band (100.00): The 5-day average price, reflecting the recent price trend and serving as the baseline for the Bollinger Bands.
Lower Band (≈96.84): Middle Band minus two standard deviations, representing the lower limit of price fluctuations. A breakdown below this level typically indicates an oversold region, potentially leading to a rebound or further decline.
3. Suitable Periods and Use Cases for Bollinger Bands
Short-term Oscillation Trading
N = 10~20
Capture rebound/fallback opportunities at the upper/lower bands
Medium-to-Long-term Trends
N = 20~30
Use the Middle Band to judge trend direction and support levels
High-Frequency Strategies
N < 10
Quickly identify volatility expansion/contraction
Applicable to:
✅ Volatility-driven strategies
✅ Breakout capture
✅ Mean-reversion (oscillation) strategies
4. Advantages and Disadvantages of Bollinger Bands and Applicable Periods
✅ Advantages:
Dynamically reflects market volatility range, adapting to different market conditions.
Identifies "overbought" and "oversold" zones.
Contraction and expansion phases signal impending market breakouts.
❌ Disadvantages:
Prone to frequent false signals in trending markets.
Signals near the bands may be delayed, requiring confirmation from other indicators.
In strong trending markets, prices may not reverse at the lower band or stop rising at the upper band.
5. Bollinger Bands Trading Signals
✅ Touch Lower Band Rebound
Price touches the lower band with a reversal pattern
Consider a small long position
✅ Retest Middle Band Support
In an uptrend, price falls back to the Middle Band and stabilizes
Opportunity to add to position
✅ Upper Band Breakout (with Volume)
Closing price breaks above the upper band with increased volume
Strong breakout, consider going long
❌ Break Below Middle Band
Middle Band is lost, trend may reverse
Take profit/stop loss or short position
❌ Break Below Lower Band (with Volume)
Large bearish candle breaks below the lower band
Beware of accelerated declines
6. Signal Traps and Counter Strategies
Upper Band Short Trap
Shorting immediately after the price breaks above the upper band
Confirm with volume and candlestick patterns for true/false breakout
Lower Band Bottom-Picking Trap
Buying immediately after breaking below the lower band
For large bearish candles with volume, wait for confirmation of a reversal signal
Bollinger Contraction Trap
Entering directional trades immediately during contraction
Use Bollinger Band Width (BB Width) + volume changes to confirm
Ignoring Trends
Relying solely on Bollinger Bands for trades
Pair with EMA to assess the overall trend direction or strength
7. Identifying False Breakouts in Bollinger Bands
Bollinger Bands’ upper and lower bands are often used as support and resistance levels, but "false breakouts" are common in real markets, especially in choppy or manipulated markets, leading traders to make incorrect decisions.
📌 What is a False Breakout?
A false breakout occurs when the price briefly breaks through the upper or lower band but fails to sustain the direction, quickly reversing and causing stop-loss triggers or mistimed trades.
🔍 Methods to Identify False Breakouts
✅ 1. Volume Confirmation Method
True Breakout: Typically accompanied by significant volume increase.
False Breakout: Often occurs with low volume or no volume change.
✅ 2. Candlestick Pattern Confirmation
False Breakouts are often accompanied by:
Long upper/lower shadows
Long-legged doji, hanging man, or inverted hammer
Price retraces back within the band the next day (engulfing pattern)
✅ 3. Multi-Timeframe Confirmation
If a short timeframe (e.g., 15m) breaks through the Bollinger Band:
But the longer timeframe (e.g., 1h) shows no breakout signs,
It may just be a false fluctuation within short-term oscillations.
✅ 4. Bollinger Band Width Not Expanding
Valid breakouts are typically accompanied by Bollinger Band "expansion."
If the price breaks through the band but the bandwidth does not expand → High probability of a false breakout.
📉 Example: False Breakout Pattern
✅ Counter Strategies
Slight upper band breakout with no volume
Do not chase; wait for closing confirmation
Breakout followed by quick retracement
Take quick stop-loss or reverse position
RSI > 70 and price far from Middle Band
Beware of potential top manipulation
Contraction breakout without BB expansion
Be cautious about going long or short
8. Using Bollinger Band Width (BB Width) for Coin Selection
Bollinger Band Width = Upper Band - Lower Band, representing the magnitude of price volatility.
Low Volatility (very narrow width) indicates a "converging" market state with tight price oscillations, often a signal of an impending major breakout, making such coins worth monitoring for breakout opportunities.
High Volatility (wide width) indicates an active market, potentially in a trend or experiencing sharp fluctuations, suitable for trend-following or pullback strategies.
Coin Selection Suggestions
Regularly screen for coins with historically low Bollinger Band Width, monitoring for breakout directions.
Combine with volume and moving average trends to confirm breakout validity.
2. Using Bollinger Band Breakout Signals for Coin Selection
A price breaking above the upper band indicates a strong breakout, potentially signaling the start of an uptrend.
A price breaking below the lower band indicates potential accelerated declines or oversold rebound opportunities.
Coin Selection Suggestions
Select coins that have recently broken above the upper band multiple times with increased volume, considering them strong candidates.
Conversely, be cautious of coins frequently breaking below the lower band with no rebound signs.
3. Using Bollinger Band Mean Reversion for Coin Selection
Coins that revert to the Middle Band after touching the upper or lower bands exhibit relatively healthy oscillations, suitable for short-term swing trading.
Persistent deviation from the Middle Band may indicate trend imbalance risks.
4. Combining Other Indicators to Enhance Coin Selection
Bollinger Bands are only a volatility measurement tool and are less effective when used alone. Combining with the following indicators improves results:
Volume: Confirms breakout validity.
Moving Average System (MA, EMA): Determines trend direction.
Relative Strength Index (RSI): Assesses overbought/oversold conditions.
MACD: Evaluates momentum and trend changes.
Summary
Low Bollinger Band Width
Seek low-volatility convergence periods
Wait for breakouts
Upper Band Breakout
Strong price surge with increased volume
Bullish continuation
Lower Band Breakout
Price breaks below lower band, watch for risks or rebounds
Beware of risks or seek rebounds
Price Reverts to Middle Band
Swing trading opportunities in oscillating markets
Short-term swing trading
9. Strategy Example (Freqtrade)
Case Logic: Buy when the price breaks below the lower band and sell when the price breaks above the upper band, a typical Bollinger Band mean-reversion strategy. Below is the detailed explanation:
Backtest Results Analysis
Trades: A total of 29 trades were executed in this backtest.
Avg Profit %: Average loss per trade was approximately 0.56%.
Tot Profit USDT: Total loss amounted to approximately 52.573 USD.
Tot Profit %: Total loss percentage was 5.26%.
Avg Duration: Average holding time was 15 hours and 54 minutes.
Win / Draw / Loss: No winning trades, 22 draws, and 7 losses.
Win%: Winning trade percentage was 0%.
Drawdown: Maximum drawdown was 52.573 USD, with a maximum drawdown percentage of 5.26%.
Backtest Summary
The strategy is currently in a loss-making state with no profitable trades, indicating poor performance. It is not recommended to use Bollinger Bands as the sole trading signal. It is advised to combine Bollinger Bands with other technical indicators (e.g., RSI, MACD, moving averages) to form a multi-factor strategy, while incorporating proper stop-loss/take-profit mechanisms and risk management to enhance stability and profitability.
Conclusion and Practical Suggestions
Bollinger Bands are a comprehensive indicator combining trend and volatility, capable of capturing breakouts and identifying rebound zones. However, they are not foolproof and should not be used in isolation. It is strongly recommended to combine them with other indicators for optimal results.
Last updated