Bollinger Bands
Category: volatility, trend
Calculates volatility-based channels consisting of a Simple Moving Average and two lines plotted at a standard deviation distance from the SMA.
Formula
\text{Mid} = \text{SMA}(n), \text{Upper} = \text{SMA} + (k \times \sigma), \text{Lower} = \text{SMA} - (k \times \sigma) \text{ where } \sigma = \sqrt{\frac{\sum(P-\text{SMA})^2}{n}}
Inputs
- InpBandsPeriod (default: 20)
- InpBandsShift (default: 0)
- InpBandsDeviations (default: 2.0)
See signal primitives and every published strategy that uses Bollinger Bands on WOBR StrategyVerse.