Home/Dovee/Function reference

bbwidth

Bollinger bandwidth

Reference/Bands & channels/Function

bbwidth(source, length, mult)

Width of the bands divided by the middle — squeeze when it is low. Short form `bbwidth(20)` uses close.

Parameters

NameTypeDescription
sourceoptionalseries
default close
Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9).
lengthint
default 20
Lookback in bars. Default 20.
multoptionalfloat
default 2
Band width.

Return value

series

Short form: if the first argument is a number, Dovee uses close as the source.

Example

oscillator
plot bbwidth(20) as "BB width"

See also