# Bollinger Bands & Volatility

> Reading expansion and contraction in price.

Module: Technical Analysis — Finotaur Academy (free lesson)
Source: https://www.finotaur.com/academy/technical-analysis/bollinger-bands

## You'll be able to

Calculate Bollinger Bands, %B and Bandwidth, and use them to read volatility contraction and expansion instead of treating every band touch as a reversal signal.

## In plain words

Bollinger Bands put an envelope around price: a 20-period simple moving average in the middle, with bands two standard deviations above and below it. Because standard deviation measures how spread out recent prices are, the bands widen when the market becomes volatile and narrow when it goes quiet. That makes them first of all a **volatility** tool — they show you when a market is compressed and when it is stretched, not which way it will go next.

```takeaways
- **Middle band** = 20-period SMA; **upper/lower bands** = middle ± **2 standard deviations** of the same 20 closes.
- Bands **widen** with volatility and **narrow** in quiet markets; a narrow band (a **squeeze**) often precedes expansion — in either direction.
- A touch of the upper band is **not** a sell signal by itself: in strong trends price can "walk the band".
- **%B** shows where price sits within the bands; **Bandwidth** measures how wide they are relative to the middle.
```

## Quick demo

**From standard deviation to bands (hypothetical numbers).** To see how standard deviation works, take just five closes: **10, 11, 12, 11, 11**.

- Mean = 55 ÷ 5 = **11**.
- Deviations from the mean: −1, 0, +1, 0, 0. Squared: 1, 0, 1, 0, 0. Sum = **2**.
- Variance (population) = 2 ÷ 5 = **0.4**. Standard deviation = √0.4 ≈ **0.632**.

Real Bollinger Bands use 20 closes, but the arithmetic is the same. Suppose a stock's last 20 closes have a mean of **50.00** and a standard deviation of **1.25**:

- Middle band = **50.00**
- Upper band = 50.00 + 2 × 1.25 = **52.50**
- Lower band = 50.00 − 2 × 1.25 = **47.50**
- **Bandwidth** = (52.50 − 47.50) ÷ 50.00 = **0.10**, or 10%.

The stock closes at **52.00**. **%B** = (52.00 − 47.50) ÷ (52.50 − 47.50) = 4.50 ÷ 5.00 = **0.90** — it is 90% of the way from the lower band to the upper band.

A month later, the standard deviation has fallen to **0.40** around a 50.00 average: bands at **49.20 and 50.80**, Bandwidth **3.2%**. Volatility has compressed by more than two-thirds. That says a bigger move becomes more likely at some point; it says nothing about the direction.

```chart
{
  "type": "bar",
  "title": "Bandwidth as volatility compresses (illustrative)",
  "unit": "%",
  "unitPosition": "suffix",
  "data": [["Week 1", 10.0], ["Week 2", 8.4], ["Week 3", 6.0], ["Week 4", 4.4], ["Week 5", 3.2], ["Week 6", 7.6]],
  "highlight": ["Week 5", "Week 6"],
  "notes": {
    "Week 5": "The squeeze: bands at 49.20 and 50.80.",
    "Week 6": "Expansion: volatility returns. Direction comes from price, not the bands."
  },
  "caption": "Illustrative, not real data. Bandwidth = (upper − lower) ÷ middle; Weeks 1 and 5 match the demo's arithmetic."
}
```

## Full explanation

### How the bands are built

John Bollinger developed the bands in the 1980s. The standard settings:

1. **Middle band**: a 20-period simple moving average of the close.
2. **Standard deviation**: computed over the same 20 closes, using the population formula (divide by N, not N − 1).
3. **Upper band** = middle + 2 × standard deviation. **Lower band** = middle − 2 × standard deviation.

Some platforms use the sample formula (divide by N − 1), which makes the bands very slightly wider. Settings like 20 periods and 2 deviations are conventions; Bollinger has suggested adjusting the multiplier modestly if you change the period, but the defaults are what most traders watch.

```stats
20 | Period | Simple moving average of the close
2 | Standard deviations | Distance of each band from the middle
%B | Position | (price − lower) ÷ (upper − lower)
Bandwidth | Width | (upper − lower) ÷ middle
```

### "Two standard deviations" does not mean 95%

In a normal distribution, about 95% of values fall within two standard deviations of the mean. It is tempting to assume price stays inside the bands 95% of the time. Don't: market prices are not normally distributed, trends make closes cluster on one side, and the band itself moves with price. How often price closes outside the bands depends heavily on the market and period. Treat the bands as a relative measure of stretch, not a probability.

### Reading %B and Bandwidth

- **%B above 1** means price closed above the upper band; **below 0**, below the lower band; **0.5**, on the middle band.
- **Bandwidth** shrinking to unusually low levels relative to its own history is the **squeeze**. It marks a quiet period that tends to give way to a more volatile one.

### Three common ways to use the bands

1. **Volatility squeeze.** Watch for Bandwidth at a multi-month low, then trade the direction of the breakout from the squeeze with a stop on the other side of the range. The squeeze tells you *when*; price tells you *which way*.
2. **Walking the band.** In a strong uptrend, price can close at or above the upper band repeatedly. That is a sign of strength, not exhaustion. Pullbacks toward the middle band are often where trend traders look for entries.
3. **Mean reversion in ranges.** In a sideways market, moves to the outer bands that fail to follow through can reverse toward the middle band. This works only while the range holds — the same band touch in a trending market can be the start of a breakout.

```warning
"Price touched the upper band, so sell" is one of the most common and costly misreadings of Bollinger Bands. In a trending market, band touches are what strength looks like. Fading them without a range context and a defined stop can mean shorting the strongest move of the year.
```

### Combining with other tools

Because the bands only describe volatility and relative position, they work best alongside something that describes direction or participation: market structure (higher highs and lows), a longer moving average, volume, or a momentum indicator such as RSI. A close above the upper band on strong volume after a squeeze is a different situation from a close above the upper band on falling volume into resistance.

```tip
Add Bandwidth as a separate indicator under your chart and note its lowest readings over the past six months. When it approaches that zone again, put the market on your watchlist and plan both a long and a short trigger in advance.
```

### A squeeze plan, worked

Take the compressed market from the demo: bands at **49.20 and 50.80**, Bandwidth **3.2%**, and a tight range over the past two weeks between about **49.40 and 50.60**. Rather than guess the direction, a trader prepares two orders:

- **Long trigger**: a buy-stop at **50.70**, just above the range, with a stop at **49.30** below the other side. Risk = **1.40**.
- **Short trigger**: a sell-stop at **49.30**, with a stop at **50.70**. Same risk of **1.40**.

Whichever triggers first, the other order is cancelled. A first target of 2R would be **53.50** for the long (50.70 + 2.80) or **46.50** for the short (49.30 − 2.80). If price breaks out, fails and returns inside the range, the stop takes the loss and the trader waits for the next setup instead of flipping direction on impulse.

The structure matters more than the indicator: the squeeze identified the opportunity, but the range boundaries supplied the entries and the stops.

### Common mistakes

- **Treating band touches as reversal signals** in trending markets.
- **Assuming 95% containment** because of the "2 standard deviations" label.
- **Trading a squeeze in the direction you hope for** before price breaks.
- **Ignoring the middle band**, which is often the most useful level in a trend.
- **Changing the settings on every chart.**

```checklist
title: Bollinger Band routine
- Confirm settings: 20-period SMA, 2 standard deviations, on closes.
- Label the regime: trending (look for band walks) or ranging (look for fades).
- Check Bandwidth against its recent history — is a squeeze forming?
- In a squeeze, plan a trigger on both sides and a stop on the opposite side.
- In a trend, use pullbacks toward the middle band for entries.
- Place stops from price structure, not from the band value alone.
```

```quiz
[
  {
    "q": "Middle band 80.00, standard deviation 2.50. Where are the upper and lower bands?",
    "options": ["82.50 and 77.50", "85.00 and 75.00", "84.00 and 76.00", "90.00 and 70.00"],
    "answer": 1,
    "why": "Bands = 80.00 ± 2 × 2.50 = 85.00 and 75.00."
  },
  {
    "q": "Bands at 75.00 and 85.00, price at 77.00. What is %B?",
    "options": ["0.20", "0.77", "0.50", "2.00"],
    "answer": 0,
    "why": "%B = (77 − 75) ÷ (85 − 75) = 2 ÷ 10 = 0.20."
  },
  {
    "q": "Bandwidth falls to its lowest level in six months. What does that tell you?",
    "options": ["Price will rise", "Price will fall", "Volatility is compressed; a larger move is more likely, direction unknown", "The trend is over"],
    "answer": 2,
    "why": "A squeeze describes low volatility, which tends to be followed by expansion. The bands do not indicate direction."
  }
]
```
