Trading Indicator

Bollinger Bandwidth Indicator for Automated Trading

Learn how the Bollinger Bandwidth indicator can turn volatility squeeze and expansion conditions into rule-based trading tests in Tradeworks.

Bollinger Bandwidth indicator showing band width contraction and expansion for automated trading rules

Understanding the Bollinger Bandwidth Indicator

The Bollinger Bandwidth indicator measures the distance between the upper and lower Bollinger Bands. When the bands contract, bandwidth falls. When the bands expand, bandwidth rises.

For automated trading, Bollinger Bandwidth is useful when it becomes a rule: for example, testing whether bandwidth is below a defined threshold before allowing a breakout condition, or whether bandwidth is rising after a squeeze.

  • Band Width: The distance between the upper and lower Bollinger Bands
  • Volatility Contraction: Low bandwidth can define a squeeze condition to test
  • Volatility Expansion: Rising bandwidth can define a post-squeeze expansion condition
  • Breakout Filter: Bandwidth can be paired with price crossing the upper or lower Bollinger Band
  • Automation Use: Thresholds and band crosses should be explicit, measurable rules

Tradeworks indicator source: Bollinger Bandwidth measures the distance between the upper and lower Bollinger Bands. Low values can be used as a volatility-contraction condition before testing breakout rules.

Volatility compression and breakout filter

Strategy 1: Bollinger Bandwidth Squeeze Strategy

Bollinger Bandwidth squeeze strategy showing low bandwidth and band breakout rules

This Bollinger Bandwidth indicator strategy tests whether a low-bandwidth squeeze condition can act as a filter before a Bollinger Band breakout rule becomes active.

Setup in Tradeworks:

  1. Add Bollinger Bandwidth to your strategy
  2. Add Bollinger Bands
  3. Set a tested low-bandwidth threshold, such as 4 if supported by the platform context
  4. Configure entry conditions:
  • Open Position Buy Signal: Bollinger Bandwidth is less than tested threshold AND Strategy symbol ASK price crosses from below to above Bollinger upper band
  • Open Position Sell Signal: Bollinger Bandwidth is less than tested threshold AND Strategy symbol BID price crosses from above to below Bollinger lower band

Trade Management

  • Stop Loss Exit Signal:
    • For longs: Strategy symbol BID price crosses from above to below Bollinger middle band
    • For shorts: Strategy symbol ASK price crosses from below to above Bollinger middle band
  • Take Profit Exit Signal:
    • For longs: Strategy symbol BID price is greater than entry price plus (ATR x 2.0)
    • For shorts: Strategy symbol ASK price is less than entry price minus (ATR x 2.0)
  • Common Timeframe: 1-hour to 4-hour charts for cleaner squeeze tests
  • Suitable Pairs: EUR/USD, GBP/USD, AUD/USD

Volatility expansion confirmation

Strategy 2: Bollinger Bandwidth Expansion Strategy

Bollinger Bandwidth expansion strategy with EMA trend filter

A Bollinger Bandwidth strategy can also test whether bandwidth is expanding after a period of contraction. The expansion condition should be paired with trend direction so the rule does not rely on volatility alone.

Setup in Tradeworks:

  1. Add Bollinger Bandwidth
  2. Add Exponential Moving Average (EMA) with period 50
  3. Configure entry conditions:
  • Open Position Buy Signal: Bollinger Bandwidth crosses from below to above tested expansion threshold AND Strategy symbol ASK price is greater than EMA(50)
  • Open Position Sell Signal: Bollinger Bandwidth crosses from below to above tested expansion threshold AND Strategy symbol BID price is less than EMA(50)

Trade Management

  • Volatility Exit: Test exiting when Bollinger Bandwidth crosses from above to below the expansion threshold, or when price returns through the EMA filter.
  • Stop Loss Exit Signal: Use ATR-based exits as in Strategy 1
  • Take Profit Exit Signal: Use ATR-based exits as in Strategy 1
  • Common Timeframe: 30-minute to 4-hour charts depending on signal frequency
  • Suitable Pairs: EUR/USD, EUR/GBP, GBP/USD

Volatility and momentum confirmation

Strategy 3: Bollinger Band Width Strategy with RSI Filter

Bollinger Band Width strategy with RSI filter and band breakout rules

This Bollinger Band Width strategy combines volatility contraction with RSI momentum context. The goal is to avoid treating every low-bandwidth period as a complete trading setup.

Setup in Tradeworks:

  1. Add Bollinger Bandwidth
  2. Add Relative Strength Index (RSI) with period 14
  3. Add Bollinger Bands for breakout levels
  4. Configure entry conditions:
  • Open Position Buy Signal: Bollinger Bandwidth is less than tested threshold AND RSI(14) is greater than 50 AND Strategy symbol ASK price crosses from below to above Bollinger upper band
  • Open Position Sell Signal: Bollinger Bandwidth is less than tested threshold AND RSI(14) is less than 50 AND Strategy symbol BID price crosses from above to below Bollinger lower band

Trade Management

  • Momentum Exit: For longs, test exiting when RSI crosses from above to below 50. For shorts, test exiting when RSI crosses from below to above 50.
  • Stop Loss Exit Signal: Use ATR-based exits as in Strategy 1
  • Take Profit Exit Signal: Use ATR-based exits as in Strategy 1
  • Common Timeframe: 1-hour and 4-hour charts for cleaner confirmation tests
  • Suitable Pairs: EUR/USD, GBP/USD, AUD/USD

For Bot Developers: Implementation Tips

Bollinger Bandwidth strategies should use explicit threshold and crossover rules. Avoid visual-only squeeze descriptions unless they become measurable conditions in the editor.

  • Confirm whether the editor exposes Bollinger Bandwidth directly
  • Confirm exact upper, middle, and lower Bollinger Band field names
  • Use EMA or SMA for trend filtering
  • Use RSI for momentum confirmation
  • Use ATR for volatility-aware exits
  • Backtest squeeze and expansion logic separately before combining filters

Manageable Beginner Setup

A manageable Bollinger Bandwidth setup keeps the logic simple: one bandwidth threshold, one breakout condition, and one exit framework.

  1. Use Bollinger Bandwidth below a tested threshold as the volatility condition
  2. Use price crossing the upper or lower Bollinger Band as the breakout condition
  3. Use ATR-based Stop Loss Exit Signal and Take Profit Exit Signal rules
  4. Test EUR/USD or GBP/USD before adding more symbols
  5. Review losing trades to see whether entries came from false breakouts or sideways markets
?

Questions

Frequently Asked Questions

What is the Bollinger Bandwidth indicator? +

The Bollinger Bandwidth indicator measures the distance between the upper and lower Bollinger Bands. In trading, it is often used to define volatility contraction, squeeze conditions, and volatility expansion rules to test.

What is a Bollinger Bandwidth strategy? +

A Bollinger Bandwidth strategy uses low or rising bandwidth values as volatility conditions. Traders often combine bandwidth with price crossing a Bollinger Band, moving average, or momentum filter before testing entries.

Is Bollinger Bandwidth the same as Bollinger Band Width? +

Yes. Traders use Bollinger Bandwidth, Bollinger Band Width, and Bollinger band bandwidth to describe the same concept: the measured distance between the upper and lower Bollinger Bands.

Can Bollinger Bandwidth be automated in Tradeworks? +

Bollinger Bandwidth can be used in automated rules when the editor exposes the bandwidth value or the band values needed for comparison. The rules should define the threshold, breakout condition, and exit logic clearly.

Which indicators combine well with Bollinger Bandwidth? +

Bollinger Bandwidth can be combined with Bollinger Bands for breakout levels, EMA or SMA for trend direction, RSI for momentum confirmation, ATR for exits, and ADX for trend-strength filtering.

Try it in Tradeworks

Want to test a Bollinger Bandwidth indicator strategy in Tradeworks?

Build the rules visually, connect them to your MetaTrader setup, and test how bandwidth squeeze and expansion conditions behave before using them in live automation.

Volume Indicators

Volume indicators measure the strength of price movements by analyzing trading volume. They help confirm trends and identify potential reversals.

Volatility Indicators

Volatility indicators measure the rate of price change. They help traders set stop losses, determine risk levels, and identify potential breakouts.

Bill Williams Indicators

A collection of indicators developed by Bill Williams for trend identification, momentum analysis, and fractal pattern recognition.

Note: This content is for educational purposes only. Past performance does not guarantee future results. Trading involves risk of loss.