AAIYUGBeta
HomeRaceLeaderboardResultsWall of FameMessagesProfileLitepaperBlogNews
AAIYUG

A skill-based trading competition platform.

✉ hello@aiyug.com

Dubai, United Arab Emirates

PRE-LAUNCH · REGISTRATION IN PROGRESS
Platform
Live raceLeaderboardResultsWall 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.

HomeRaceLeadersResultsMessagesProfile
Blog
Strategy· 20 July 2026 · 6 min read

How to Trade Using Bollinger Bands Effectively

A practical guide to the Bollinger Bands trading strategy: calculations, squeeze setups, entries/exits, risk rules, and a worked numerical example.

A
AIYUG Desk
Content & education team

What Bollinger Bands Are and why they matter

Bollinger Bands are a volatility trading indicator that plots three lines around price: a middle Simple Moving Average (SMA) and an upper and lower band set a fixed number of standard deviations away. They show both trend and volatility: bands expand as volatility rises and contract during quiet periods. The "bollinger band squeeze" is a popular setup where narrow bands often precede breakouts.

John Bollinger created them in the 1980s; the method remains useful because it combines price location relative to an average with an explicit volatility measure (standard deviation).

The formulas (how the bands are calculated)

  • Middle Band (MB) = n-period Simple Moving Average (SMA)
  • Standard Deviation (SD) = sqrt( (1/n) * sum((price_i - MB)^2) ) for the same n
  • Upper Band (UB) = MB + k * SD
  • Lower Band (LB) = MB - k * SD

Common default values: n = 20 periods, k = 2. These are widely used because ~95% of observations of a normal distribution fall within 2 SDs, but price distributions are not perfectly normal — interpret bands as a probabilistic envelope, not a hard boundary.

Additional derived metrics traders use:

  • %B = (Price - LB) / (UB - LB). %B = 1 means price at UB; %B = 0 means price at LB.
  • Bandwidth = (UB - LB) / MB. Smaller values indicate tighter (squeeze) bands.

Why a squeeze matters

A bollinger band squeeze signals low volatility. Markets rarely remain quiet indefinitely; squeezes often precede larger moves. The squeeze does not predict direction — it only signals that a volatility expansion is likely to come. You need a rule for direction and risk control.

A simple, repeatable Bollinger Bands trading strategy (step-by-step)

  1. Settings: use MB = 20 SMA, k = 2 for UB/LB. Add Bandwidth and %B indicators to your chart.
  2. Identify squeezes: look for Bandwidth below a chosen threshold (e.g., 0.05 or a recent lower percentile). Alternatively, visually spot two or more consecutive candles with very narrow bands.
  3. Confirm direction with price action or an additional filter: common choices — breakout candle closes outside UB or LB; momentum indicator (RSI crossing 50); or MA crossover.
  4. Entry: place an entry when the breakout candle closes outside the bands (bullish close above UB for long; bearish close below LB for short). Optionally wait for a follow-through candle to reduce false-breakouts.
  5. Stop-loss: set a protective stop just inside the band or a fixed ATR multiple. Example: stop at the middle band (MB) or 1 × ATR below entry for longs. This adapts to volatility.
  6. Targeting/exiting: use a risk-reward plan (e.g., 1:2) or trail the stop behind the MB or a shorter moving average. Some traders exit when %B returns to 0.5 (price back at MB) or when the opposite band is touched.
  7. Position sizing: size positions so that the distance between entry and stop-loss limits loss to a small fixed percentage of capital (e.g., 1% per trade).

These rules avoid guessing direction during the squeeze and use volatility-based sizing.

Worked numerical example (hypothetical)

Assume a 20-period SMA and k = 2. You observe the following simplified end-of-day close prices for the last 20 days (hypothetical):

  • Average (MB) over 20 days = 100.00 (calculated as the arithmetic mean of the 20 closes)
  • Standard Deviation (SD) over same 20 days = 1.50

Compute the bands:

  • UB = MB + 2 × SD = 100.00 + 2 × 1.50 = 103.00
  • LB = MB - 2 × SD = 100.00 - 2 × 1.50 = 97.00
  • Bandwidth = (UB - LB) / MB = (103 - 97) / 100 = 6 / 100 = 0.06 (6%)

Suppose today's close = 103.50, which is 0.5 above UB.

% B = (Price - LB) / (UB - LB) = (103.50 - 97.00) / (6.00) = 6.50 / 6.00 = 1.0833 (>1 means above UB).

Trade execution using the step rules:

  • Setup: Bandwidth 6% — not an extreme squeeze, but assume a prior period had a Bandwidth of 2% (tight squeeze) and now expansion to 6% — breakout confirmed.
  • Entry: buy at close = 103.50 (or at next open).
  • Stop-loss: place at MB = 100.00 (conservative) or LB + small buffer. That's 3.50 points below entry = 3.38% risk.
  • Position sizing: if you risk 1% of a $10,000 account, maximum dollar risk = $100. Position size = $100 / $3.50 ≈ 28.6 shares → round to 28 shares.
  • Target: for 1:2 R:R, target gain = 2 × 3.50 = 7.00 points → target price = 110.50.

If price reaches 110.50, the trade profits ~ $196 on 28 shares (2 × $98) after the initial $100 risk — this is illustrative and ignores commissions/slippage.

Common pitfalls and tips

  • False breakouts: many breakouts fail. Use follow-through confirmation, filters (volume spike, momentum), or reduced position size.
  • Not adapting to volatility: fixed stop sizes can be inappropriate; use ATR or bands themselves to scale stops with volatility.
  • Ignoring context: Bollinger Bands are highest-value in range-bound or moderate-trending markets. In strong one-way trends, price can ride a band for extended periods; exiting too early can cut winners.
  • Do not rely on bands alone; add price-action rules, volume, or momentum for confirmation.

Final notes and practice

Bollinger Bands trading strategy is robust because it explicitly uses volatility. The bollinger band squeeze provides a clear precondition for potential breakouts, but it does not tell you direction — that requires a disciplined confirmation rule and risk management.

Practice the rules in a risk-free environment before committing capital. You can try this technique in AIYUG's free paper-trading race at https://aiyug.us/race to build comfort with entries, stops, and position sizing without real-money risk.

No strategy guarantees profits. This article explains mechanics and an example for education — always test on historical data and paper-trade before live implementation.

FAQ

What default settings should I use for Bollinger Bands?

A common default is a 20-period Simple Moving Average with bands at ±2 standard deviations. These work as a starting point, but you should test different lengths and multipliers to fit your timeframe and the instrument.

Does a squeezes always lead to a big move?

No. A squeeze indicates low volatility and a higher probability of a volatility expansion, but it does not guarantee size or direction. Use confirmation filters and disciplined risk management to handle false breakouts.

How should I set stops and position size with Bollinger-based trades?

Use volatility-based stops (e.g., middle band, lower band, or ATR multiple) and size positions so that the dollar risk per trade is a small percentage of your account (commonly 0.5–2%). This aligns position size to the stop distance and controls portfolio risk.

StrategyPercentage BBollinger Bandwidth

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 · 19 Jul 2026 · 5 min

MACD Indicator Strategy Explained for Traders

A practical guide to the MACD indicator strategy explained: formulas, crossover signals, momentum rules, a worked example, and step-by-step trade plan.

Strategy · 18 Jul 2026 · 6 min

How to Use Support and Resistance Levels in Trading

Learn practical methods to identify support/resistance, apply a support resistance trading strategy, and trade breakouts with rules, formulas, and a worked example.

Strategy · 16 Jul 2026 · 7 min

RSI Indicator Explained With Examples

A practical guide to the Relative Strength Index: calculation, interpretation, and a worked 14-period example for retail traders learning overbought/oversold RSI signals.