Bollinger Bands Explained: Squeeze, Band Walks & Signals

Intermediate6 min read
Close-up Shot of a Stock Report
Image by RDNE Stock project on Pexels

What Are Bollinger Bands?

Bollinger Bands are a volatility indicator made of a 20-period simple moving average with an upper and lower band plotted 2 standard deviations above and below it. The bands widen when the market is volatile and contract when it is quiet, so they show whether price is high or low relative to its own recent behaviour. They do not predict direction — they describe volatility and give context for other signals.

The indicator was created by John Bollinger in the early 1980s. With default settings roughly 90% of closes fall inside the bands, but that is a tendency, not a rule: a close outside the bands is information, not an automatic signal.

How the Bands Are Calculated

  • Middle band: the 20-period simple moving average (SMA) of closing prices.
  • Upper band: middle band + 2 × the standard deviation of the last 20 closes.
  • Lower band: middle band − 2 × the same standard deviation.

For example, if the 20-period SMA on EUR/USD is 1.0850 and the standard deviation of those 20 closes is 0.0020 (20 pips), the upper band is 1.0850 + 0.0040 = 1.0890 and the lower band is 1.0850 − 0.0040 = 1.0810, giving a band 80 pips wide. If volatility doubles, the band doubles in width without any change in trend. The middle band behaves like any of the moving averages you may already use, and the band width tells a similar story to the ATR indicator: both measure how much price is moving, not where it is going.

The Squeeze: Quiet Before Expansion

Volatility moves in cycles. Quiet periods tend to be followed by active ones, and the squeeze is how the bands show it: they pinch together until the band is unusually narrow compared with its recent history. A squeeze tells you that a larger move is becoming more likely; it says nothing about which way.

EUR/USD daily candlestick chart with Bollinger Bands 20, 2 pinching to their narrowest in months, a boxed squeeze range, a close outside it and the bands then widening sharply
A real Bollinger squeeze on EUR/USD daily candles (20, 2). The bands narrowed to their tightest in six months; the box marks the squeeze range. Once a candle closed outside it, the move and the bands expanded together.

The practical approach is to mark the high and low of the squeeze range and wait for a decisive close outside it, ideally in the direction of the higher-timeframe trend. Be alert to the head fake — a brief push out of one side that reverses and breaks the other way. Squeezes often form ahead of scheduled events, so check the economic calendar before assuming a quiet market is a technical setup.

Walking the Band in Trends

The most expensive misunderstanding about Bollinger Bands is that a touch of the upper band is a sell signal and a touch of the lower band is a buy signal. In a strong uptrend, price can close at or near the upper band candle after candle while the band itself slopes upward. This is called walking the band, and it is a sign of strength, not exhaustion. Selling each touch in that environment means repeatedly fading a trend.

USD/JPY daily candlestick chart with Bollinger Bands 20, 2, where closes sit at the upper band for weeks, pullbacks stop near the middle band and the walk ends with a close below it
A real band walk on USD/JPY daily candles. Yellow dots mark 29 closes in the top 15% of the bands, a sign of strength rather than a sell signal. Pullbacks held the middle band until price finally closed below it.

During a band walk, pullbacks often reach only as far as the middle band before the trend resumes, which makes the 20-period SMA a useful reference for trend-following entries and trailing stops. A warning that the walk may be ending comes when price can no longer reach the outer band on a new push and then closes beyond the middle band.

Mean Reversion in Ranges

When the market is genuinely sideways — the middle band is flat and the bands run roughly parallel — price tends to oscillate between the outer bands, and fading the extremes becomes a reasonable idea. Even then, wait for evidence rather than selling the first touch: a rejection wick or a close back inside the band, preferably at a level you have already marked as support or resistance. The middle band is a natural first target and the opposite band a second. Place the stop beyond the recent extreme, and stand aside if the bands begin to widen sharply, because that often marks the start of a breakout rather than another swing within the range.

A plain band fade, entering on a close outside the band with RSI stretched and aiming for the middle band, lost money in every year of a 2023 to 2026 backtest on 11 instruments. ForexR tracks it as live signals, which shows why a filter matters.

W-Bottoms and M-Tops

These are the band-based versions of the double bottom and double top covered in chart patterns.

  • W-bottom: price makes a first low at or below the lower band, rallies towards the middle band, then makes a second low that holds inside the lower band — even if that low is slightly lower in price. The second low is weaker relative to the bands, showing that selling pressure is fading. The pattern is confirmed by a close above the high between the two lows.
  • M-top: the mirror image. A first high tags or exceeds the upper band, price pulls back, and a second high fails to reach the band. Confirmation is a close below the low between the two highs.

%B and Bandwidth in Brief

Two derived readings put numbers on what your eye sees. %B shows where price sits within the bands: %B = (price − lower band) ÷ (upper band − lower band). Using the example above, a price of 1.0870 gives (1.0870 − 1.0810) ÷ (1.0890 − 1.0810) = 0.0060 ÷ 0.0080 = 0.75, meaning price is three-quarters of the way up the band. A value above 1 is a close above the upper band; below 0 is a close beneath the lower band.

Bandwidth measures how wide the bands are relative to the middle: (upper band − lower band) ÷ middle band. Here that is 0.0080 ÷ 1.0850 ≈ 0.0074, or about 0.74%. Plotting bandwidth over time makes squeezes easy to spot, because you can see when it falls to a low for the period you are studying.

Combining With RSI or Price Action

Because the bands measure volatility, they pair well with a momentum tool. A common combination is the RSI indicator: a second low that holds inside the lower band while RSI makes a higher low is a stronger W-bottom than the band pattern alone. Equally, a band tag that is rejected with a clear reversal candle carries more weight than a tag without one — see price action trading for the candle structures worth waiting for. Avoid stacking several volatility tools together; they will simply tell you the same thing.

Common Mistakes

  • Treating every band touch as a reversal signal, especially against a strong trend.
  • Assuming a squeeze predicts direction, or entering before the break is confirmed by a close.
  • Ignoring the slope of the middle band, which tells you whether you are in a trend or a range.
  • Tightening the bands to get more signals — you get more noise as well.
  • Changing settings until past charts look perfect, then expecting the same fit in live trading.
  • Using the bands as a complete system with no stop or position-sizing plan.

On TradingView, the browser-based charting platform, the free Bollinger Bands scripts in our Pine Script Library include versions that plot %B and bandwidth beneath the chart, and squeeze scripts highlight the narrow-band phases. Read what each one calculates before relying on it.

Whatever setup you take, define the exit before you enter; the guide to stop-loss strategies covers the options. Bollinger Bands describe volatility; they do not remove risk. Forex and CFDs carry a high risk of loss, and you should only risk money you can afford to lose.

FAQ

What are the best Bollinger Bands settings for forex?

The default of a 20-period simple moving average with bands 2 standard deviations either side is the usual starting point and works on any timeframe. Narrower bands produce more touches and more noise; wider bands produce fewer. Rather than hunting for perfect settings, keep the default and focus on reading trend and volatility context.

Is touching the upper Bollinger Band a sell signal?

No. In a strong uptrend price can close at or near the upper band for many candles in a row, known as walking the band, and that is a sign of strength. A band touch only becomes interesting for a fade when the market is ranging, the middle band is flat and price shows a clear rejection.

What is a Bollinger Band squeeze?

A squeeze is when the bands contract to an unusually narrow width because volatility has dropped. Quiet periods tend to be followed by more active ones, so a squeeze suggests a larger move is becoming more likely. It does not indicate direction, so traders wait for a decisive close outside the squeeze range before acting.

What do %B and bandwidth mean on Bollinger Bands?

%B shows where price sits within the bands: 1 is the upper band, 0 is the lower band and 0.5 is the middle. Bandwidth is the distance between the bands divided by the middle band, so it measures how wide the bands are. Falling bandwidth highlights a squeeze; rising bandwidth shows volatility expanding.

Free Bollinger Bands Scripts for TradingView

Open-source Pine scripts from the ForexR library that build on this indicator. Copy one into TradingView's Pine Editor to try it on your own chart.

Free Volatility and Band Pine Scripts · How to add a script to TradingView

See Bollinger Band fade traded live

ForexR Signals publishes each trade before the entry, with its stop and three targets, and tracks it against live prices. Every win and loss stays on the record. Practice trades with no real money, not advice.

All signals and the full track record · Signals terms

Related on ForexR

Next lesson Ichimoku Cloud Explained: A Simple Guide to All Five Lines Continue

More Intermediate Guides

Support and Resistance in Forex: How to Draw Key Levels How to Draw Trend Lines and Channels in Forex (Step by Step) Supply and Demand Zones in Forex: How to Find and Trade Them Forex Candlestick Patterns: Pin Bars, Engulfing, Doji & More Forex Chart Patterns: Reversal & Continuation Explained Forex Breakout Trading: How to Trade Breakouts & Spot Fakeouts Moving Averages in Forex: SMA vs EMA, Crossovers & Trends MACD Indicator Explained: Settings, Signals & Divergence RSI Indicator in Forex: Settings, Signals & Divergence Stochastic Oscillator Explained: Settings, Signals and Strategy Divergence Trading: How to Spot Regular and Hidden Divergence Ichimoku Cloud Explained: A Simple Guide to All Five Lines Forex Pivot Points: Formula, Levels & How to Trade Fibonacci Retracement in Forex: Levels, Drawing & Examples ATR Indicator in Forex: How to Measure Volatility Most Volatile Currency Pairs (and the Calmest): How to Trade Them Best Forex Indicators for Beginners: The 7 Worth Learning Stop-Loss Strategies in Forex: Placement, Sizing & Trailing Take-Profit Strategies: When and Where to Exit a Winning Trade Risk-Reward Ratio Explained: What It Is and How to Use It Position Sizing in Forex: How to Calculate the Right Lot Size Forex Risk Management: Position Sizing & the 1-2% Rule How to Create a Forex Trading Plan (Simple Template Included) Forex Trading Styles: Scalping, Day, Swing & Position Forex Scalping for Beginners: How It Works, Costs and Rules Day Trading Forex: A Realistic Beginner’s Guide and Routine Swing Trading Forex: How to Catch Moves Over Days, Not Minutes Types of Forex Brokers: ECN vs STP vs Market Maker Explained How to Choose a Forex Rebate Provider: 9 Checks to Make First Total Trading Cost Explained: EUR/USD vs Gold After Rebates EA Settings Explained: Lot Size, Magic Number, Stop-Loss & More How to Backtest an EA in the MT4 and MT5 Strategy Tester How to Choose a Safe Forex EA: A 12-Point Checklist Pine Script Indicators vs Strategies vs Libraries Explained Pine Script Basics: Write Your First TradingView Indicator Pine Script Inputs: How to Make Script Settings Adjustable How to Read a Pine Script Before You Trust It: A Checklist How to Edit a Pine Script: Colours, Lengths and Filters Pine Script Alerts: alertcondition(), alert() and Webhooks Pine Script Sessions and Time: Shade London, New York, Asia Pine Script request.security(): Multi-Timeframe Done Safely Repainting in TradingView: How to Spot a Script That Repaints Build a Moving Average Crossover Strategy in Pine Script AI Trading Tools Explained: What Helps and What Sells AI Trading Signals: What They Are and When to Trust One How to Read a Signal Track Record: Win Rate, R and Sample Size AI Market Analysis: How Machines Read the Forex Market AI Sentiment Analysis in Trading: News Data Explained Fundamental Analysis in Forex: What Moves Currencies Safe-Haven Currencies: Risk-On and Risk-Off Explained Gold and the US Dollar: Why They Usually Move Apart Gold and Interest Rates: Why Real Yields Drive the Price Is Gold an Inflation Hedge? What 50 Years of Data Say Gold as a Safe Haven: When It Works and When It Fails Gold Trading Strategies: 5 Setups to Test on XAU/USD Gold Scalping: Costs, Timeframes and Rules for XAU/USD Gold Technical Analysis: Levels, ATR and Round Numbers How to Trade Gold During News: NFP, CPI and Fed Days Gold Correlations: Dollar, Yields, Silver, AUD and Bitcoin Gold-Silver Ratio Explained: How to Read and Trade It Gold vs Bitcoin: Which Is the Better Store of Value? How to Choose a Broker for Gold Trading: 9 Things to Check

Choose a Regulated Broker

Put what you’ve learned to work with a regulated broker. Compare costs, platforms and licences side by side.

Compare top brokers