Module 1: Bollinger Band Construction and Theory

Standard Deviation Bands: The Math - Part 10

8 min readLesson 10 of 10

Foundations of Standard Deviation Bands in Trading

Standard deviation bands measure price volatility by calculating how far prices deviate from a moving average. Bollinger Bands, the most common application, plot two bands above and below a simple moving average (SMA), typically using a 20-period SMA and bands set at ±2 standard deviations. This construction captures approximately 95% of price action under the assumption of normal distribution.

For example, on the 5-minute ES futures chart, the 20-SMA might sit at 4200, with the upper band at 4220 and the lower band at 4180. The bands adjust dynamically as volatility expands or contracts. When volatility spikes, bands widen; when markets calm, bands contract.

Institutions use these bands to gauge overbought or oversold conditions relative to recent price behavior. Algorithms monitor standard deviation bands to trigger mean reversion strategies or confirm momentum breakouts. Prop trading desks often set automated alerts when price breaks above or below the bands on 1-minute or 5-minute charts, signaling potential entries or exits.

Calculating Standard Deviation Bands: Step-by-Step

  1. Calculate the Moving Average (MA):
    Use a 20-period SMA on closing prices. For example, on AAPL’s 15-minute chart, sum the last 20 closes and divide by 20.

  2. Compute Variance:
    Subtract the MA from each close in the 20-period window. Square these differences. Sum the squares.

  3. Calculate Standard Deviation (SD):
    Divide the sum of squared differences by 20 (population SD) or 19 (sample SD). Take the square root.

  4. Set Bands:
    Multiply SD by the chosen factor (commonly 2). Add this to the MA for the upper band and subtract for the lower band.

Example: On TSLA 5-minute bars, the 20-SMA equals $650. The calculated SD is $5. Multiply by 2 to get $10. Upper band sits at $660, lower at $640.

Prop firms program these calculations into their trading platforms to update in real time. Algorithms compare price to bands on every tick, adjusting position sizing or triggering orders accordingly.

Worked Trade Example: Mean Reversion on SPY 5-Minute Chart

Setup:

  • Ticker: SPY
  • Timeframe: 5-minute
  • SMA: 20 periods
  • Bands: ±2 SD
  • Entry: Price touches lower band and shows bullish reversal candle
  • Stop: 0.3% below entry
  • Target: SMA (mean)
  • Position size: Risk 0.5% of account per trade
  • Account size: $100,000
  • Risk per trade: $500

Trade Execution:
SPY trades at $430. The lower band sits at $427.50. Price hits $427.50 and forms a hammer candle on the 5-minute chart. Enter long at $428.

Set stop at $427.50 - 0.3% = $427.19 (31 cents below entry). Target the 20-SMA at $430.

Risk per share = $0.81. Position size = $500 / $0.81 ≈ 617 shares.

If price reaches $430, profit = $2 per share × 617 = $1,234. Risk-reward ratio = 2.4:1.

Outcome:
Price bounces to $430 within 15 minutes. Trade closes for a 2.4R gain.

When Standard Deviation Bands Work and When They Fail

Standard deviation bands excel in range-bound markets. On the NQ 1-minute chart during sideways sessions, price frequently tests bands and reverts to the mean. Traders capture consistent scalps by fading band touches.

Bands fail during strong trending moves. For example, during a TSLA 15-minute breakout, price can ride the upper band for extended periods. Attempting mean reversion trades here results in repeated stop-outs.

Institutional traders avoid mean reversion signals when volatility surges above 3 standard deviations or when volume confirms breakout strength. Algorithms incorporate filters like ADX or volume spikes to distinguish trending from ranging conditions, reducing false signals.

Institutional Use of Standard Deviation Bands

Prop desks apply standard deviation bands in multiple ways:

  • Volatility Regime Identification: Algorithms flag band width expansions as volatility regime shifts. For example, CL futures show band widths expanding from 10 ticks to 30 ticks, signaling increased risk and wider stops.

  • Entry and Exit Filters: Traders use bands to confirm momentum or mean reversion. A breakout above the upper band with volume triggers long entries. Conversely, price hitting the lower band with low volume signals potential mean reversion.

  • Position Sizing: Prop firms adjust size based on volatility measured by bands. Wider bands reduce position size to manage risk; tighter bands allow larger sizes.

  • Automated Stops: Stops placed just outside bands protect against volatility whipsaws.

Summary

Standard deviation bands quantify volatility and define dynamic support and resistance. Their calculation involves precise math: moving averages, variance, and square roots. Traders use them for mean reversion and breakout strategies, adapting position size and stops to volatility.

They perform best in stable, range-bound markets and fail in strong trends or high volatility breakouts. Institutional traders combine bands with volume and momentum filters, adjusting risk dynamically.

Key Takeaways

  • Standard deviation bands use SMA and volatility to create dynamic price boundaries.
  • Calculate bands by adding/subtracting 2× standard deviation from a 20-period SMA.
  • Mean reversion trades work when price touches bands in low-volatility ranges.
  • Bands widen during volatility spikes; avoid mean reversion trades in these conditions.
  • Prop firms integrate bands with volume and momentum to filter entries and adjust risk.
The Black Book of Day Trading Strategies
Free Book

The Black Book of Day Trading Strategies

1,000 complete strategies · 31 chapters · Full trade plans