Home/Dovee/Function reference

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

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
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"

See also