BB_LOWER
— Bollinger Band Lower Trading Series
The BB_LOWER
trading series represents the Lower Bollinger Band, calculated using a specified moving average and a standard deviation multiplier. It defines the lower boundary of the expected price range.
It is built upon the Bollinger Bands indicator implementation from the indicators module.
Parameters
BB_LOWER(
ticker: str,
source: SourceType = SourceType.CLOSE,
length: int = 20,
ma_type: SmoothingType = SmoothingType.SMA,
std_dev: float = 2,
offset: int = 0
)
ticker
(str
): Asset ticker symbol (e.g.,"AAPL"
).source
(SourceType
): The price type to use. Default isSourceType.CLOSE
. Supported sources are linked here.length
(int
): Number of periods for the moving average. Default is 20.ma_type
(SmoothingType
): Moving average type. Default isSmoothingType.SMA
. Supported smoothing types are linked here.std_dev
(float
): Number of standard deviations for the band. Default is 2.offset
(int
): Shifts the band forwards/backwards. Default is 0.
Description
- The lower Bollinger Band typically represents potential support levels.
- A close below the lower band may indicate an oversold condition or strong downside momentum.
Example Usage
BB_LOWER(
ticker="AAPL",
source=SourceType.CLOSE,
length=20,
ma_type=SmoothingType.SMA,
std_dev=2,
offset=0
)