bbmid
Bollinger middle band (SMA)
Reference/Bands & channels/Function
bbmid(source, length, mult)
The SMA at the center of the Bollinger set. Same arguments as bbupper.
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 | Kept for the matching upper/lower width; mid is the SMA. |
Return value
series
Short form: if the first argument is a number, Dovee uses close as the source.
Example
plot bbmid(20) as "BB mid"