Bollinger Bands are a volatility-based technical indicator developed by John Bollinger in the 1980s. Unlike static support and resistance levels, Bollinger Bands expand and contract dynamically in response to market volatility, making them an exceptionally powerful tool for automated crypto trading. A bot can use Bollinger Bands to identify when price is statistically extended relative to recent volatility — a signal that mean reversion is likely — or when volatility is compressing before a large directional move.
This guide covers how Bollinger Bands work, the three primary trading setups for crypto bots (mean reversion, band squeeze breakout, and walking the band), parameter configurations for different markets, and how to configure DennTech's Bollinger Band strategy. If you are new to indicator-based strategies, our RSI guide and MACD guide are foundational reads that complement the concepts covered here.
How Bollinger Bands Work
Bollinger Bands consist of three lines:
- Middle Band (MB) — A simple moving average (SMA) of closing prices, default 20 periods
- Upper Band (UB) — MB + (Standard Deviation × Multiplier), default 2×
- Lower Band (LB) — MB − (Standard Deviation × Multiplier), default 2×
The key insight: with a 2× standard deviation setting, approximately 95% of price action falls within the bands under normal conditions. When price touches the upper band, it has moved 2 standard deviations above the mean — a statistically unusual event that often precedes a pullback. When price touches the lower band, the reverse is true.
The width of the bands directly reflects current volatility. Narrow bands (Bollinger Squeeze) indicate compressed volatility and often precede a large directional move. Wide bands indicate high volatility and often precede a mean reversion period.
Setup 1: Bollinger Band Mean Reversion
The classic Bollinger Band trade: buy when price touches or crosses below the lower band (oversold by 2 standard deviations), exit when price returns to the middle band (mean). Sell when price touches the upper band, exit at the middle band.
Best conditions: Range-bound or oscillating markets. ETH/USD and BTC/USD during consolidation phases respond well to this setup on the 4H chart.
Risk: In a strong downtrend, price can "walk the lower band" — repeatedly touching and staying near the lower band without reverting to the mean. Adding a trend filter (only take lower band buys when price is above the 200 EMA) significantly reduces these losing trades.
In DennTech, configure the Bollinger Band strategy with:
- Period: 20, Multiplier: 2.0
- Entry: Lower Band Touch (buy) or Upper Band Touch (sell)
- Target: Middle Band (SMA20)
- Stop-loss: 1× ATR below entry for dynamically sized stops — see our stop-loss guide
Setup 2: Bollinger Squeeze Breakout
The Bollinger Squeeze occurs when the bands contract to unusually narrow width — indicating that volatility has compressed to historically low levels. This condition typically precedes a large directional move as the coiled volatility releases. The strategy: identify the squeeze, then enter in the direction of the breakout when price exits the narrow range.
Measuring the squeeze: The Band Width indicator (Upper Band − Lower Band) ÷ Middle Band gives a normalized measure of band width. When Band Width drops to its lowest level in 6 months, a squeeze is forming. DennTech's Bollinger Band module includes Band Width as an optional signal filter.
Entry trigger: When Band Width begins expanding (squeeze ending), enter long if price closes above the upper band or short if it closes below the lower band. This captures the initial surge of the directional move.
Risk: Squeeze breakouts can produce false signals — a brief excursion outside the bands that reverses quickly. Using a 2-candle confirmation (two consecutive closes outside the band) before entering reduces false breakout entries.
Setup 3: Walking the Band (Trend-Following)
In a strong trend, price does not reverse at the upper band — it "walks" along it, with each candle closing near the upper band as the trend continues. This behavior indicates particularly strong momentum and is a continuation signal, not a reversal signal.
For trend-following bots: if price closes above the upper band for two consecutive candles, enter long rather than fading it. Trail a stop below the middle band to stay in the trade as long as the trend persists. Combine this with MACD confirmation (MACD above zero) for stronger signal quality. See our MACD guide for the complementary approach.
Bollinger Band Parameters: When to Adjust
The default 20-period, 2× standard deviation setting works well for swing trading on 4H and daily charts. Adjustments for specific situations:
- Shorter period (10–15): More reactive bands, more signals on 1H charts. Use for scalping strategies on high-volume pairs.
- Longer period (50): Smoother bands, fewer signals. Useful for daily chart swing trading on BTC/USD where you want only the strongest statistical extremes.
- Wider multiplier (2.5× or 3×): Bands capture more price action, fewer false touch signals. Use on volatile altcoins where normal daily moves can exceed 2× standard deviation regularly.
- Narrower multiplier (1.5×): Tighter bands, more frequent touch signals. Use in low-volatility stablecoin pairs or BTC during quiet accumulation phases.
Combining Bollinger Bands with RSI
Bollinger Bands identify the statistical extreme; RSI confirms whether momentum supports a reversal. Entry rule for the combined setup:
- Price touches the lower Bollinger Band (statistical oversold)
- RSI is below 35 (momentum confirms weakness)
- RSI begins turning upward (reversal starting)
This dual-confirmation approach produces higher-quality mean-reversion entries than either indicator alone. See our detailed RSI guide for the RSI configuration within this setup.
Bollinger Bands in DennTech: Configuration Overview
- Open DennTech and select the Bollinger Band Strategy from the Strategy tab
- Set Band Period (default 20), Multiplier (default 2.0), and select your signal type (Mean Reversion, Squeeze Breakout, or Trend Follow)
- Configure your entry condition (Lower Band Touch, Upper Band Touch, or Squeeze Expansion)
- Set exit target (Middle Band for mean reversion; trailing stop for trend-follow)
- Add optional RSI filter for dual confirmation
- Set stop-loss (ATR-based recommended)
- Select exchange, pair, and timeframe; run in paper mode first
Full documentation is available in the DennTech docs. To see all available indicator strategies, visit the strategies page. For edition comparison, see the pricing page.
Bollinger Bands in Context
Bollinger Bands are most powerful when used as a volatility and statistical context tool, not a standalone buy/sell signal generator. On their own, band touches produce too many false signals in trending markets. Combined with trend filters, RSI confirmation, and volume analysis, they become a robust component of a multi-factor strategy.
For a complete picture of strategy combinations in DennTech, see how Bollinger Bands complement the RSI and MACD strategies in our guides. If you want to watch Bollinger Band strategies running on a live account before committing, visit the live bot demo.
Frequently Asked Questions
- Do Bollinger Bands work in crypto bear markets?
- Mean reversion Bollinger setups struggle in persistent bear markets because price walks the lower band continuously. Adding a trend filter (only take lower band longs when price is above the 200-day EMA) eliminates most bear market false longs. In bear markets, focus on Bollinger squeeze strategies and short-side setups rather than lower band mean reversion.
- What is the best Bollinger Band setting for Bitcoin?
- The standard 20/2 setting on the 4H chart is a reliable starting point for BTC swing trading. For shorter-term scalping on the 1H chart, 15/1.8 produces more signals with acceptable noise levels. Always backtest your specific settings in DennTech's paper mode before going live.
- Can I run Bollinger Bands on multiple pairs simultaneously?
- Yes. DennTech Elite supports running the Bollinger Band strategy (and any other strategy) on multiple pairs simultaneously. Each pair instance has independently configured parameters. See Elite edition pricing for multi-pair and multi-strategy capabilities.