Bollinger Bands
Bollinger Bands are used to identify potential buying and selling opportunities based on price volatility.
Method
Inputs
Parameter | Argument type | Description | Default Value |
---|---|---|---|
source | pd.Series | Input data series | - |
timeperiod | int | Number of periods for the indicator | 5 |
nbdevup | float | Number of deviations for upper band | 2 |
nbdevdn | float | Number of deviations for lower band | 2 |
matype | int | Type of Moving Average | 0 |
Outputs
The outputs are returned as a tuple of objects. Make sure to unpack them as shown in the example usage.
Output | Type |
---|---|
upperband | np.ndarray |
middleband | np.ndarray |
lowerband | np.ndarray |