Bollinger Bands Strategy: Complete Guide to Squeeze & Breakout Trading
Master the Bollinger Bands strategy. Learn squeeze setups, band bounces, and breakout signals. Automate your Bollinger Bands trading bot with no code required.
What Are Bollinger Bands?
Bollinger Bands are a volatility indicator developed by John Bollinger in the 1980s. They consist of three lines plotted around price: a middle band (20-period SMA) and upper/lower bands set 2 standard deviations above and below it.
As volatility increases, the bands widen. As volatility decreases, they contract. This dynamic behavior makes Bollinger Bands one of the most versatile tools in technical analysis — useful for both mean reversion and breakout strategies.
How Bollinger Bands Are Calculated
- Middle Band = 20-period Simple Moving Average (SMA)
- Upper Band = Middle Band + (2 × 20-period Std Dev)
- Lower Band = Middle Band − (2 × 20-period Std Dev)
Price stays within the bands approximately 95% of the time. Moves outside the bands signal statistically unusual price action worth paying attention to.
Strategy #1: The Band Bounce (Mean Reversion)
The classic Bollinger Band bounce is a mean reversion setup:
- Buy when price closes below the lower band
- Sell when price returns to the middle band (20-day SMA)
- Stop-loss: Close below lower band by more than 1 ATR
Works best in range-bound markets with liquid large-caps (SPY, QQQ, AAPL). Avoid during strong downtrends where price can "walk the band" lower.
Strategy #2: The Bollinger Squeeze Breakout
The Bollinger Squeeze is one of the most powerful setups in trading. When the bands contract to their narrowest point in months, it signals a period of extremely low volatility — and a big move is imminent.
- Identify the squeeze: Bands at their narrowest in 6 months (bandwidth at multi-month low)
- Wait for breakout: Enter when price closes outside either band
- Direction: Go long on upper band break, short on lower band break
- Stop-loss: Back inside the bands
Combine with MACD direction for confirmation before entering.
Strategy #3: %B Indicator
The %B indicator tells you where price is relative to the bands, expressed as a percentage:
- %B = 1.0 → price at upper band
- %B = 0.5 → price at middle band
- %B = 0.0 → price at lower band
Use %B below 0 as a buy signal and above 1 as a sell signal for systematic mean reversion entries.
Bollinger Bands Settings
| Setting | Value | Best For |
|---|---|---|
| Period | 20 | Swing trading (default) |
| Std Dev | 2.0 | Standard — catches 95% of moves |
| Period | 10 | Day trading, more signals |
| Std Dev | 2.5 | More conservative, fewer signals |
Combining Bollinger Bands with Other Indicators
Bollinger Bands + RSI
Buy when price touches the lower band AND RSI is below 30. Double confirmation significantly reduces false signals.
Bollinger Bands + MACD
Use MACD histogram direction to confirm squeeze breakout direction before entering.
Bollinger Bands + Moving Averages
Only take band bounces when the 200-day MA is rising — confirming you're buying dips in an uptrend, not catching a falling knife.
Risk Management
- Never fight the band walk — if price closes outside the band multiple days in a row, it's trending, not reverting
- Stop-losses required — place stops 1–2% beyond the outer band
- Position sizing — risk no more than 1–2% of capital per trade
- Confirm on higher timeframe — band touches on the weekly are more reliable than on 5-minute charts
How to Automate a Bollinger Bands Strategy
Bollinger Band strategies are rule-based and ideal for automation. With VibeTrader, describe your setup in plain English:
- "Buy SPY when it closes below the lower Bollinger Band. Sell when it returns to the middle band."
- "Buy when Bollinger Bands squeeze to a 6-month low and price breaks above the upper band."
Your bot monitors every candle, executes instantly, and never misses a setup. No coding required — connect your Alpaca account to go live.
Conclusion
Bollinger Bands are one of the most flexible tools in trading — equally useful for mean reversion bounces and volatility breakouts. Master the squeeze, the band bounce, and the %B indicator. Always confirm with a second indicator and use disciplined risk management. Start building your Bollinger Bands bot with VibeTrader today.
Automate Your Bollinger Bands Strategy
Describe your band bounce or squeeze breakout rules in plain English. VibeTrader builds your bot automatically.
Create Your Bollinger Bands Bot Free →