BollingerBands
BollingerBands are Bollinger Bands: a moving average and two bands a few standard deviations away from it. The width of the bands shows how strongly the price fluctuates: in a calm market the bands narrow, in sharp moves they widen.
The indicator is drawn over the price chart.
How it is calculated
- The middle line is the simple moving average (SMA) of the price set in Source over Period bars.
- The standard deviation σ is calculated over the same bars from this average.
- The bands: average ± StdDev × σ.
The bands appear once Period bars are available.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Period | The number of bars the average and deviation are calculated over. At least 1. | 20 |
| StdDev | How many standard deviations from the average the bands lie. At least 0.1. | 2 |
| Source | The bar price: Close — the close, Median — (High + Low) / 2, Typical — (High + Low + Close) / 3. | Close |
Plots
| Parameter | Description | Default |
|---|---|---|
| Bands | The upper and lower bands. | Blue, solid, width 1 |
| Middle line | The middle line. | Orange, solid, width 1 |
| Fill | The area between the bands. | Semi-transparent blue |
Style
The lines have the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields. The fill has the Fill (show the fill) and Color fields.
How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.
Last updated on