---
type: "Lesson"
title: "Bollinger Bands"
description: "Bollinger Bands are a band drawn around a moving average of price, with its width set by how much prices have varied recently."
tags: ["bollinger bands","bollinger","bands","standard deviation","squeeze","bandwidth","20 2","volatility bands"]
sources: [{"id":"s1","resource":"https://en.wikipedia.org/wiki/Bollinger_Bands"}]
generated: {"by":"process:eqdoc-okf-export","at":"2026-10-25"}
stale_after: "2027-04-25"
x-eqdoc-id: "ta-bollinger-bands"
x-eqdoc-reviewed-at: "2026-10-25"
x-eqdoc-questions: ["What are Bollinger Bands?","How are Bollinger Bands calculated?","What is a Bollinger squeeze?","How do I read Bollinger Bands?"]
x-eqdoc-licence-note: "Written by eqdoc in its own words; facts checked against the CC BY-SA page listed"
---

Bollinger Bands are a band drawn around a moving average of price, with its width set by how much prices have varied recently.

- **Who.** John Bollinger developed them in the 1980s. The standard setting is 20 periods and 2 standard deviations. The TA-Lib function is `BBANDS`.
- **How they are built.**
  `Middle band = SMA(20) of the close`
  `Upper band = SMA(20) + 2 x standard deviation of the same 20 closes`
  `Lower band = SMA(20) - 2 x standard deviation of the same 20 closes`
  Two related measures: `Bandwidth = (Upper - Lower) / Middle` and `%B = (Close - Lower) / (Upper - Lower)`.
- **How analysts read them.** Wide bands describe a period of large price swings; narrow bands describe a quiet period. A long stretch of very narrow bands is called a "squeeze"; analysts note that quiet periods have often been followed by larger moves, but the squeeze says nothing about direction. A close outside a band means the price moved more than usual relative to its recent 20-session history.
- **A common misreading.** Touching the upper band is not by itself a sign the price is too high, and touching the lower band is not a sign it is too low. In strong trends price can "walk the band", closing near or outside it day after day.
- **Not a probability.** Under a normal distribution about 95% of values would fall within 2 standard deviations, but share prices are not normally distributed, and closes fall outside the bands more often than that suggests.
- **Pitfalls.** The middle band is a lagging average, and the width reacts to volatility after the fact. Settings matter: a shorter period or narrower multiple gives more band touches.
- **India note.** On a daily chart, 20 periods is about a month of NSE or BSE sessions. Use split- and bonus-adjusted prices, or an adjustment shows up as a huge false band break.
