Strategy Intermediate

Bollinger Bands Backtesting: Test Squeeze and Bounce Strategies

Sentinel Team · 2026-03-10

Bollinger Bands Backtesting: Test Squeeze and Bounce Strategies

Bollinger Bands are one of the most versatile technical indicators available to crypto traders. They adapt to volatility, identify squeeze conditions that precede explosive moves, and highlight potential mean-reversion opportunities when price touches the bands. But which Bollinger Bands strategy actually works on your chosen trading pair? The only way to know is rigorous backtesting against historical data.

For foundational knowledge on Bollinger Bands trading approaches, read our Bollinger Bands trading strategy guide. This article focuses on the backtesting process: setting up BB backtests on Sentinel, optimizing period and deviation parameters, testing squeeze detection strategies, and combining Bollinger Bands with complementary indicators.

Bollinger Bands Refresher for Backtesting

Bollinger Bands consist of three lines calculated from price data:

The bands expand during high volatility and contract during low volatility. This dynamic behavior creates two primary trading opportunities:

  1. Bounce/Mean-Reversion: Price touching or crossing the outer bands tends to revert toward the middle band.
  2. Squeeze/Breakout: When bands contract to unusually narrow width, a significant directional move often follows.

Each strategy type produces fundamentally different backtest results and requires different optimization approaches.

Setting Up a Bollinger Bands Backtest

Step 1: Choose Your Strategy Type

Before configuring parameters, decide which BB strategy you are testing:

Bounce Strategy (Mean-Reversion):

Squeeze Strategy (Breakout):

These are opposing philosophies. Do not mix them in a single backtest. Test each independently, then compare performance metrics.

Step 2: Configure the Bollinger Bands Entry Block

In Sentinel's block-based builder, add a Bollinger Bands entry block. Core parameters:

For a bounce strategy, configure the signal to trigger when price crosses below the lower band (long entry) or above the upper band (short entry).

Step 3: Select Timeframe and Pair

Bollinger Bands work across timeframes, but behavior differs:

Start with 4H or daily on BTC/USDT or ETH/USDT for your baseline backtest.

Step 4: Configure Exits

Bounce strategy exits:

Squeeze strategy exits:

Step 5: Set Realistic Costs

Commission: 0.1%, slippage: 0.05%, starting capital: 10,000 USDT. Run the backtest and analyze results.

Backtesting the Bounce Strategy

Expected Results

Bollinger Band bounce strategies are mean-reversion by nature:

The biggest risk is a strong trend where price runs along the lower or upper band without reverting. During the 2022 crypto bear market, BTC rode the lower Bollinger Band for weeks, punishing bounce buyers repeatedly.

Identifying When Bounces Fail

Examine your backtest's losing trades. Most losses in bounce strategies occur during:

Add a trend filter to reduce these losses. An EMA or ADX condition can prevent bounce entries during established trends. See our EMA crossover backtesting guide for setup details.

Backtesting the Squeeze Strategy

Detecting Squeezes in Backtesting

A Bollinger Band squeeze occurs when the bandwidth (distance between upper and lower bands relative to the middle band) contracts to an unusually low level. This indicates a period of low volatility that typically precedes a significant price move.

Bandwidth formula:

Bandwidth = (Upper Band - Lower Band) / Middle Band

To detect a squeeze, you need to define a threshold. Common approaches:

In Sentinel's block builder, configure the Bollinger Bands block for squeeze detection. The signal fires when bandwidth contracts below your threshold and then price breaks out of the compressed range.

Determining Breakout Direction

The squeeze tells you that a big move is coming. It does not tell you the direction. You need a directional filter:

Combine the squeeze detection with a directional filter using Sentinel's AND composite logic.

Expected Squeeze Backtest Results

Squeeze strategies behave differently from bounce strategies:

The main challenge is generating enough trades for statistical significance. On a daily timeframe, you might only get 10-15 squeeze signals per year per pair. Consider testing across multiple pairs to accumulate more data points.

Period and Deviation Optimization

Period Optimization

The default 20-period Bollinger Bands are widely used but not necessarily optimal for crypto:

| Period | Behavior | Best For |

|---|---|---|

| 10-14 | Tight bands, more band touches | Short-term trading, frequent signals |

| 15-20 | Standard behavior | General purpose |

| 21-30 | Wider bands, fewer touches | Swing trading, higher conviction signals |

| 30-50 | Very wide bands, rare touches | Position trading, major reversals only |

Use Sentinel's grid search to test periods from 10 to 40 in steps of 2.

Deviation Multiplier Optimization

The standard deviation multiplier controls how far the bands sit from the middle:

| Multiplier | Band Width | Signal Frequency | Signal Quality |

|---|---|---|---|

| 1.0 | Very narrow | Very high | Low (many false signals) |

| 1.5 | Narrow | High | Moderate |

| 2.0 | Standard | Medium | Good |

| 2.5 | Wide | Low | High |

| 3.0 | Very wide | Very low | Very high |

For crypto's higher volatility, multipliers of 2.0 to 2.5 typically perform best. Multipliers below 1.5 generate too many false signals. Multipliers above 3.0 rarely trigger.

Combined Grid Search

Sweep both parameters simultaneously:

This produces 42 combinations. Examine the results for stable performance clusters where changing parameters slightly does not dramatically alter results.

Combining Bollinger Bands with Other Indicators

BB + RSI: Double Mean-Reversion Confirmation

The most natural Bollinger Bands combination:

Both indicators independently signal an extreme. When they agree, the probability of mean-reversion is significantly higher. This combination typically improves win rate by 5-15% compared to standalone BB signals. See our RSI backtesting guide for optimal RSI thresholds.

BB + Volume: Conviction Filter

Require above-average volume on band touches:

BB Squeeze + MACD: Direction Confirmation

As discussed in the squeeze section, combine bandwidth contraction with MACD direction for high-conviction breakout trades. This is one of the strongest multi-indicator combinations in crypto strategy building.

BB + EMA Trend Filter

Add a 200 EMA trend filter:

This prevents the most dangerous BB trades: buying bounces in a bear market downtrend.

Real-World Considerations

Bollinger Bands and Crypto Volatility Regimes

Crypto alternates between periods of compressed volatility (accumulation/distribution) and explosive volatility (trends). Bollinger Bands naturally adapt to this because the standard deviation calculation expands and contracts the bands. However, the lookback period determines how quickly the bands adapt.

Backtest both and compare how quickly each adapts to the volatility regimes present in your data. The equity curve will reveal which parameter set handles regime transitions better.

Limitations of BB Backtesting

Frequently Asked Questions

What Bollinger Bands period works best for crypto?

Backtesting consistently shows that periods between 15 and 25 work well for crypto on 4-hour and daily timeframes. The default period of 20 is a solid starting point. Grid search results typically show a stable performance zone in this range rather than a single optimal value.

Should I use 2.0 or 2.5 standard deviations for crypto?

Crypto is more volatile than traditional markets, so 2.0 to 2.5 is the recommended range. A 2.0 multiplier generates more signals but more false ones. A 2.5 multiplier is more selective, with higher win rate but fewer opportunities. Backtest both and compare Sharpe ratios.

How do I detect a Bollinger Band squeeze in Sentinel?

Use the Bollinger Bands block with squeeze detection mode. Set a bandwidth threshold (e.g., bandwidth below its 20th percentile over the last 100 candles). Combine with a directional indicator like MACD or RSI to determine entry direction.

Can I combine bounce and squeeze strategies?

Yes, but run them as separate strategies (or separate bots), not in a single combined strategy. They have opposite philosophies: bounces bet on mean-reversion while squeezes bet on breakouts. Combining them in one backtest would produce confusing, unreliable results. Test and optimize each independently, then allocate capital between them.

Do Bollinger Bands work on altcoins?

Bollinger Bands work on any asset with sufficient liquidity and price history. However, low-cap altcoins often have thin order books and erratic price action that can pierce bands without meaningful reversal. Stick to pairs with at least moderate daily volume for reliable BB signals.

Ready to discover whether Bollinger Band bounces or squeezes work best for your trading? Sign up for Sentinel Bot and backtest both strategies with grid search optimization. Visual block builder, professional metrics, and no coding required.


Disclaimer: This article is for educational purposes only and does not constitute financial advice. Backtesting results do not guarantee future performance. Cryptocurrency trading involves significant risk of loss. Always do your own research and never trade with money you cannot afford to lose.