Skip to content

%B (Bollinger Bands %B)

Where the close sits inside the Bollinger Bands: 0 at the lower band, 1 at the upper band, 0.5 in the middle. Below 0 or above 1 means outside the bands.

Settings

Setting Default What it does
Length 20 Length of the Bollinger Bands.
Std dev 2.0 Width of the bands. Wider reaches 0 and 1 less often.
Oversold 0 The "low" level (0 = lower band).
Overbought 1 The "high" level (1 = upper band).

Ready-made conditions

For Condition Fires when
Buy %B below 0 every candle %B is below 0
Buy %B crosses above 0 the one candle %B moves from below 0 to above it
Sell %B above 1 every candle %B is above 1
Sell %B crosses below 1 the one candle %B moves from above 1 to below it

Warnings

  • Blocks Save: Length 1–1000 (whole number); Std dev 0.1–10.

Good to know

  • When the last closes are all equal the bands have no width and %B is unavailable (conditions on it are false).
  • Needs the length in candles (20 at length 20).