Bollinger Bands

bbvolatilityForge API 1

A moving average with bands set by the standard deviation.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint201 to 5000
deviationsfloat20 to 10

Outputs

NameTypeRequiredDescription
uppervalueOptionalcolor theme.series_b, style line, width 1
middlevalueOptionalcolor theme.series_a, dash dash, style line, width 1
lowervalueOptionalcolor theme.series_b, style line, width 1
Warm-up
period - 1 bars (19 at the defaults)
Repaints
No
Parity
TA-Lib, within 1e-9

Formula

middle = the simple average of the source over period

upper = middle + deviations * the population standard deviation of the same window, lower = middle - deviations * the same