BollingerPercentB

forge.taclassSince Forge API 1
Signaturepython
forge.ta.BollingerPercentB(**inputs: Any) -> None

Where the price sits between the Bollinger Bands.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint201 to 5000
deviationsfloat20 to 10

Indicator: Bollinger Bands %B

%B = (source - lower) / (upper - lower)

No value when the bands meet.

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