BollingerWidth
forge.taclassSince Forge API 1
Signaturepython
forge.ta.BollingerWidth(**inputs: Any) -> NoneThe distance between the Bollinger Bands relative to the middle line.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 20 | 1 to 5000 |
| deviations | float | 2 | 0 to 10 |
Indicator: Bollinger Bands width
width = (upper - lower) / middle
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