AAIYUGBeta
LeaderboardRaceWall of FameLitepaperBlogNews
AAIYUG

A skill-based trading competition platform.

✉ hello@aiyug.com

Dubai, United Arab Emirates

PRE-LAUNCH · REGISTRATION IN PROGRESS
Platform
LeaderboardLive raceWall of FameHow it worksLitepaperBlogMarkets newsJoin free
Legal
Terms & ConditionsPrivacy PolicyCompetition RulesRisk Disclaimer

Simulated trading only. No real money is traded. AIYUG is not financial advice and is not a regulated financial service. Read the full risk disclaimer →

© 2026 AIYUG. All rights reserved.

LeadersRaceFameBlogNews
Blog
Strategy· 17 August 2026 · 6 min read

Bollinger Bands Trading Strategy: Practical Guide

A practical walkthrough of a Bollinger Bands trading strategy, formulas, squeeze signals, and a worked example to trade volatility effectively.

A
AIYUG Desk
Content & education team

What Bollinger Bands are and why traders use them

Bollinger Bands are a volatility trading indicator that overlays three lines on price: a middle moving average (usually a 20-period simple moving average), an upper band and a lower band set a fixed number of standard deviations away from the middle line. The bands expand when price volatility rises and contract when volatility falls. That expansion/contraction behavior is the core of the Bollinger Band squeeze strategy.

Bollinger Bands are useful because they combine trend (the middle band) with a direct measure of dispersion (standard deviation). They are not directional predictors by themselves; instead they help you quantify volatility, identify potential breakouts, and set dynamic targets and stops.

The formulas (exact)

  • Middle Band (MB) = SMA(close, n)
  • Standard Deviation (SD) = sqrt((1/n) * sum((close - MB)^2))
  • Upper Band (UB) = MB + (k * SD)
  • Lower Band (LB) = MB - (k * SD)

Common parameter choices: n = 20 periods, k = 2. Many platforms compute SD as an n-period sample standard deviation; use the same convention for calculations when backtesting.

Two derived measures often used:

  • Bollinger Bandwidth = (UB - LB) / MB = (2 k SD) / MB — measures relative width of the bands.
  • %B = (price - LB) / (UB - LB) — converts price position between the bands to a 0–1 scale.

The Bollinger Band Squeeze concept

A "Bollinger Band squeeze" happens when bandwidth is at a relative low for the chosen lookback (price volatility contracts). A squeeze does not tell direction — it tells you volatility is suppressed and that a higher-probability move (in either direction) may come next. Traders then look for a volatility expansion (price breaking above UB or below LB) to signal entry.

Key points:

  • Squeeze indicates low volatility, not buy or sell.
  • A breakout above UB after a squeeze is a volatility expansion to the upside; below LB is expansion to the downside.
  • False breakouts happen — confirm with volume, momentum, or follow-through candles.

A step-by-step Bollinger Bands trading strategy (practical rules)

  1. Setup: Apply 20-period SMA and ±2 SD bands. Add a bandwidth indicator (or compute SD). Optionally add a momentum filter (e.g., RSI 14) and volume.
  2. Identify Squeeze: Mark periods where Bollinger Bandwidth is below its 20-period percentile (e.g., lower 15th percentile) or under a fixed threshold (empirically derived per market).
  3. Wait for Breakout Candle: Enter a long when price closes above the UB with increased volume and momentum confirming; enter short when price closes below the LB with confirmation.
  4. Entry refinement: Use a small buffer (e.g., entry = breakout price + 0.1% for longs) to reduce whipsaws.
  5. Stop-loss: Place initial stop just inside the band (e.g., for longs, stop = MB or LB minus a small distance) or use Average True Range (ATR) multiple.
  6. Targeting / Management: Use trailing stops based on a moving average, a multiple of ATR, or exit when price returns to the MB/%B ~0.5 level. Consider scaling out half the position at a 1:1.5 risk:reward and trailing the remainder.
  7. Confirm and validate: Backtest across different timeframes and instruments; adjust parameters per instrument volatility.

This structured approach treats Bollinger Bands as a volatility trigger, not a standalone bet.

Worked example (hypothetical numbers)

Assume a 20-period SMA and k=2 on an hourly chart for a stock. The last 20 hourly closes produce:

  • MB (SMA20) = 100.00
  • Standard deviation of those closes = SD = 1.50

Compute upper and lower bands:

  • UB = MB + 2SD = 100 + 21.5 = 103.00
  • LB = MB - 2*SD = 100 - 3.0 = 97.00

Bandwidth = (UB - LB) / MB = (103 - 97) / 100 = 6 / 100 = 0.06 (6%). If the instrument normally has bandwidth around 10% and current bandwidth of 6% is near the 10th percentile, you mark a squeeze.

Price action: The next hourly close is 103.50 — a close above UB.

Entry rule example:

  • Enter long at breakout + buffer = 103.50 + 0.10% = 103.60.
  • Initial stop: place at MB (100.00) - 0.5% buffer = 99.50. Risk = 103.60 - 99.50 = 4.10 points.
  • Target: 1.5x reward = 4.10 * 1.5 = 6.15 -> target = entry + 6.15 = 109.75.

Trade management: Move stop to breakeven after half the target is reached. If price instead closes back within bands and momentum fades, exit.

This concrete math shows how to turn bands and a squeeze into entry, stop, and target levels. Adjust buffers, stop placement, and target multiples to match the instrument's noise characteristics.

Tips, pitfalls and optimization

  • Timeframe matters: Squeeze that matters on a daily chart is different from an intraday squeeze; choose the timeframe consistent with your holding period.
  • Parameter tuning: n=20 and k=2 are standard, but you should validate alternatives for the security you trade.
  • Confirmation reduces false breakouts: look for volume increase, momentum confirmation (RSI or MACD), or multiple-period closes beyond the band.
  • Avoid relying solely on crosses of the middle band for signals; treat it as dynamic risk management.
  • Risk management: cap position size by volatility (e.g., ATR) and stick to a consistent max loss per trade.

Practice without risk

If you want to practice this strategy with no real capital, consider joining AIYUG's free paper-trading race at https://aiyug.trading/race to test entries, exits, and sizing using real market data in a simulated environment.

Final note

Bollinger Bands are a flexible volatility tool. When combined with clear rules for squeezes, breakouts, confirmation and risk management, they become an actionable framework. Always backtest any parameter choices across multiple market regimes and never treat historical results as a guarantee of future performance.

FAQ

What timeframe works best for Bollinger Band squeezes?

No single timeframe is best—use the timeframe that matches your intended holding period. Daily squeezes suit swing trades; intraday squeezes suit scalping. Validate with historical testing on your chosen timeframe.

Does a breakout above the upper band guarantee a trend?

No. A close above the upper band signals volatility expansion, not a guaranteed sustained trend. Confirm with volume, momentum indicators, and follow-through candles; use stops to limit risk.

How do I avoid false breakouts with Bollinger Bands?

Combine band breakouts with confirmation: increased volume, a momentum filter (RSI/MACD), multi-period close beyond the band, or waiting for a retest of the band as support/resistance. Proper position sizing and disciplined stops also mitigate impact.

StrategyBollinger %BTrading Strategy

Put it into practice — free

Join this week’s AIYUG race: virtual capital, real market data, real recognition from investors. No deposit, no KYC.

Keep reading
Strategy · 25 Aug 2026 · 6 min

How to Backtest a Trading Strategy Step by Step

A practical, step-by-step guide to backtesting: data, rules, metrics, common mistakes, and a worked example you can run in a spreadsheet.

Strategy · 24 Aug 2026 · 6 min

Stop-Loss Strategies Explained for Practical Traders

Clear, practical stop-loss strategies explained: hard vs mental stops, trailing stop loss mechanics, formulas, and a worked example to manage risk.

Strategy · 19 Aug 2026 · 7 min

How to Calculate Risk-Reward Ratio for Trading

Learn the formula and step-by-step method to calculate risk-reward ratio, set stop loss and take profit levels, and see a worked example for position sizing.