Volatility Indicators

Bollinger Bands indicator

SMA with upper and lower bands at a specified number of standard deviations.

Definition

SMA with upper and lower bands at a specified number of standard deviations.

Parameters

Asset, Period (default: 20), Standard deviations (default: 2)

Output range: Same scale as price

Example condition

text
`Price < Bollinger Lower Band(AAPL, 20, 2)` (Price below lower band — potentially oversold)

Use in a strategy

Add this indicator to a strategy condition, choose its supported parameters and compare the output with the threshold required by your rule. Preserve the same interval and lookback when comparing backtests.

After saving the condition, inspect its asset, interval, lookback and comparison operator against the parameters above. If no trades occur, check whether the condition ever became true and whether the requested input data exists for that period. A missing input is not a zero-valued signal. An indicator produces an input to a rule. It does not establish future returns, and data availability can differ across assets and periods.