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
| Name | Type | Description |
|---|---|---|
sourceoptional | series default close | Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9). |
length | int default 20 | Lookback in bars. Default 20. |
multoptional | float 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"