Bollinger Bands, developed by John Bollinger in the 1980s, plot a moving average with an upper and lower band set a number of standard deviations away. Because the bands widen and narrow with volatility, they are especially useful for spotting the quiet periods that often come before a breakout. This guide explains how to build a breakout approach around them and how to avoid the false breakouts that catch most traders.
How the bands are calculated
- Middle band: 20-period simple moving average (the default).
- Upper band: middle band + 2 standard deviations of the last 20 closes.
- Lower band: middle band − 2 standard deviations.
Two related readings help with breakouts:
- Bandwidth = (upper − lower) ÷ middle. Low bandwidth means volatility has compressed.
- %B = (price − lower) ÷ (upper − lower). Above 1 means price closed above the upper band.
The idea behind a Bollinger breakout: the squeeze
Volatility tends to alternate between quiet and active phases. When bandwidth falls to its lowest level in, say, the last 120 bars, the market is unusually quiet. A close outside the bands after such a squeeze suggests a new expansion phase may be starting. Bollinger himself warned that the squeeze does not tell you direction, so a direction filter is essential.
A rules-based framework to test
- Squeeze: bandwidth is at or near its lowest reading of the last 100–150 bars.
- Direction filter: trade only in the direction of the higher-timeframe trend (for example, price above or below the 50-period EMA on the timeframe above), or wait for the first close outside the band and trade that direction.
- Trigger: a candle closes outside the band, not merely touching it intrabar.
- Confirmation (optional): the breakout candle’s range is larger than the recent average, or volume (tick volume in forex) is rising.
- Stop: beyond the middle band or the opposite side of the squeeze range, whichever gives a logical invalidation point.
- Exit: trail the stop along the middle band, or exit when price closes back inside the band on the opposite side of the middle line.
Size every trade from the stop distance so a loss is a fixed small percentage of the account (see position sizing).
Why touching the band isn’t a signal on its own
In a strong trend, price can “walk the band”, closing along the upper or lower band for many bars. That is why treating every touch of the upper band as a sell signal fails in trends, and treating every touch as a breakout fails in ranges. The squeeze-then-expansion context is what distinguishes a breakout.
Applying it to gold and forex
- On XAU/USD, squeezes often form during the Asian session and resolve around the London open or US data releases. A squeeze into a scheduled event like CPI is common, but the first move after news is frequently reversed, so many traders wait for a candle close after the release.
- On major forex pairs, H1 and H4 squeezes tend to give cleaner signals than M5.
- Keep the default 20/2 settings unless testing shows a clear, stable improvement; heavily tuned settings tend to be overfit.
Common mistakes
- Entering on an intrabar poke outside the band that closes back inside.
- Ignoring the higher-timeframe trend.
- Combining Bollinger Bands with Keltner Channels, RSI and Stochastic all at once; they largely describe the same price information (see indicator stacking).
- Tight stops right outside the band, which get hit by normal post-breakout retests.
Frequently asked questions
What are the best Bollinger Band settings for breakouts?
The default 20-period, 2-standard-deviation setting is the most widely used and a sensible starting point. Test changes on out-of-sample data before adopting them.
What is a Bollinger squeeze?
A period when the bands contract to their narrowest in a long lookback, signalling low volatility that often precedes a larger move.
Do Bollinger Bands work on gold?
They are commonly used on XAU/USD, but like any indicator they need a direction filter, sound risk management and testing with realistic costs.
How do I avoid false breakouts?
Require a candle close outside the band, trade with the higher-timeframe trend and be cautious around news releases.
Trading forex and gold carries a high level of risk. See our risk disclaimer.






