--- title: bbands description: This page provides detailed information about the Bollinger Bands (bbands), a volatility indicator in technical analysis, including usage, parameters, visual representation, data interpretation, and their importance in buy or sell signals generation. keywords: - Bollinger Bands - bbands - technical analysis - volatility indicators - overbought conditions - oversold conditions - price targets - price reversal - support level - resistance level --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; Bollinger Bands consist of three lines. The middle band is a simple moving average (generally 20 periods) of the typical price (TP). The upper and lower bands are F standard deviations (generally 2) above and below the middle band. The bands widen and narrow when the volatility of the price is higher or lower, respectively. Bollinger Bands do not, in themselves, generate buy or sell signals; they are an indicator of overbought or oversold conditions. When the price is near the upper or lower band it indicates that a reversal may be imminent. The middle band becomes a support or resistance level. The upper and lower bands can also be interpreted as price targets. When the price bounces off of the lower band and crosses the middle band, then the upper band becomes the price target. ### Usage ```python bbands [-l N_LENGTH] [-s N_STD] [-m {ema,sma,wma,hma,zlma}] ``` --- ## Parameters | Name | Description | Default | Optional | Choices | | ---- | ----------- | ------- | -------- | ------- | | n_length | length | 15 | True | range(1, 100) | | n_std | std | 2 | True | 0.0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 2.25, 2.5, 2.75, 3.0, 3.25, 3.5, 3.75, 4.0, 4.25, 4.5, 4.75, 5.0, 5.25, 5.5, 5.75, 6.0, 6.25, 6.5, 6.75, 7.0, 7.25, 7.5, 7.75, 8.0, 8.25, 8.5, 8.75, 9.0, 9.25, 9.5, 9.75 | | s_mamode | mamode | sma | True | ema, sma, wma, hma, zlma | ![bbands](https://user-images.githubusercontent.com/46355364/154309951-116f3c31-342d-4ceb-b489-8b0ba78eb3a0.png) ---