BB edge cases

Category: volatility

A diagnostic script testing edge cases for the Bollinger Bands (ta.bb) function, including zero/negative lengths, zero/na multipliers, and flat or missing source data.

Formula

\text{Basis} = \text{SMA}(\text{source}, \text{length}) \\ \text{Dev} = \text{StDev}(\text{source}, \text{length}) \\ \text{Upper} = \text{Basis} + (\text{mult} \times \text{Dev}) \\ \text{Lower} = \text{Basis} - (\text{mult} \times \text{Dev})

See signal primitives, usage in published strategies and more on WOBR StrategyVerse.


Open in the WOBR AI app → · WOBR.AI home