BTA Charts
ChartsTime Series

Bollinger Bands

Overlay a simple moving average (SMA) with upper and lower standard-deviation bands on a price line. Ideal for spotting overbought/oversold conditions, volatility squeezes, and trend reversals in financial data.

Examples

When to Use

  • Analyzing stock, commodity, or crypto price volatility
  • Identifying overbought / oversold conditions (price touching bands)
  • Detecting volatility squeezes when bands narrow
  • Comparing multiple tickers side-by-side with small multiples

Data Roles

Loading data roles...

Build These Examples

Which columns go in which field wells to reproduce each example above. The Legend well is the switch between a single price line and one Bollinger series per ticker.

Loading recipes…

Settings

Bollinger Bands

Period (N)

number

Number of periods for SMA calculation (2–200).

Default: 20

Std Deviations (K)

number

Standard deviation multiplier for band width (0.5–5).

Default: 2

Show Price Line

boolean

Display the raw price/value line.

Default: true

Show Middle Band (SMA)

boolean

Display the simple moving average.

Default: true

Show Upper/Lower Bands

boolean

Display upper and lower deviation bands.

Default: true

Show Band Fill

boolean

Fill the area between upper and lower bands.

Default: true

Colors

Price Line Color

color

Color of the raw price line.

Default: #2171b5

Middle Band Color

color

Color of the SMA line.

Default: #aaaaaa

Upper Band Color

color

Color of the upper band.

Default: #e41a1c

Lower Band Color

color

Color of the lower band.

Default: #4daf4a

Band Fill Opacity

number

Opacity of the shaded band area (0–1).

Default: 0.2

Common settings like Legend, Tooltip, and Axis configuration are covered in Shared Concepts.

Tips & Best Practices

  • A period of 20 with 2 standard deviations is the classic Bollinger setup — adjust for tighter or wider bands
  • Toggle the band fill to reduce visual noise when overlaying multiple series
  • Combine with the Legend role to compare Bollinger Bands across multiple tickers

On this page