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.
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
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:
- Add Bollinger Bandwidth to your strategy
- Add Bollinger Bands
- Set a tested low-bandwidth threshold, such as 4 if supported by the platform context
- 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
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:
- Add Bollinger Bandwidth
- Add Exponential Moving Average (EMA) with period 50
- 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
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:
- Add Bollinger Bandwidth
- Add Relative Strength Index (RSI) with period 14
- Add Bollinger Bands for breakout levels
- 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.
- Use Bollinger Bandwidth below a tested threshold as the volatility condition
- Use price crossing the upper or lower Bollinger Band as the breakout condition
- Use ATR-based Stop Loss Exit Signal and Take Profit Exit Signal rules
- Test EUR/USD or GBP/USD before adding more symbols
- 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.
Related Indicators
Bollinger Bands
Use upper, middle, and lower bands for breakout and return-inside-band rules.
Average True Range (ATR)
Build volatility-aware Stop Loss Exit Signal and Take Profit Exit Signal rules.
Exponential Moving Average (EMA)
Add trend context to Bollinger Bandwidth expansion rules.
Simple Moving Average (SMA)
Compare bandwidth conditions with broader moving-average direction.
Relative Strength Index (RSI)
Add momentum confirmation to Bollinger band bandwidth rules.
Trend Indicators
Trend indicators help traders identify the direction of market movement. They smooth price data to show whether an uptrend, downtrend, or sideways movement is occurring.
Simple Moving Average
Learn more →
Exponential Moving Average
Learn more →
Parabolic SAR
Learn more →
Heikin Ashi
Learn more →
High Low
Learn more →
Linear Regression
Learn more →
Two Pole Butterworth Filter
Learn more →
Ichimoku Kinko Hyo
Learn more →
Alligator
Learn more →
Envelopes
Learn more →
Doji Arrows
Learn more →
Oscillators
Oscillators are bounded indicators that move between set values. They help identify overbought and oversold conditions, momentum, and potential reversal points.
Relative Strength Index
Learn more →
Relative Momentum Index
Learn more →
Stochastic Oscillator
Learn more →
Moving Average Convergence/Divergence
Learn more →
Awesome Oscillator
Learn more →
Accelerator/Decelerator Oscillator
Learn more →
Commodity Channel Index
Learn more →
Relative Vigor Index
Learn more →
Williams' Percent Range
Learn more →
Gator Oscillator
Learn more →
DeMarker
Learn more →
Fisher Transform
Learn more →
Fisher CG
Learn more →
Laguerre RSI
Learn more →
Momentum
Learn more →
Moving Average of Oscillator
Learn more →
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.