AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.stock.indicators.BBands Improve this Doc

Bollinger Bands (BBands) indicator class.

Methods Overview

Series
lowerSeries()Indicator Lower Series instance.
middleSeries()Indicator Middle Series instance.
rangeSeries()Indicator series instance.
upperSeries()Indicator Upper Series instance.
Specific Indicators Settings
deviation()Indicator deviation settings.
period()Indicator period settings.

Methods Description

deviation

Getter for the deviation.

Returns:

number - The indicator deviation.
Setter for the deviation.

Params:

NameTypeDefaultDescription
deviationnumber
2
Deviation to set.

Returns:

anychart.core.stock.indicators.BBands - Self instance for method chaining.

lowerSeries

Getter for the indicator Lower Series instance.
Setter for the indicator Lower Series type.

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator Lower Series.

Returns:

anychart.core.stock.indicators.BBands - Self instance for method chaining.

middleSeries

Getter for the indicator Middle Series instance.
Setter for the indicator Middle Series type.

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator Middle Series.

Returns:

anychart.core.stock.indicators.BBands - Self instance for method chaining.

period

Getter for the period.

Returns:

number - The indicator period.
Setter for the period.

Params:

NameTypeDefaultDescription
periodnumber
20
Period to set.

Returns:

anychart.core.stock.indicators.BBands - Self instance for method chaining.

rangeSeries

Getter for the indicator Range Series instance.
Setter for the indicator Range Series type.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType | string
'range-area'
Type of the indicator Range Series.

Returns:

anychart.core.stock.indicators.BBands - Self instance for method chaining.

upperSeries

Getter for the indicator Upper Series instance.
Setter for the indicator Upper Series type.

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator Upper Series.

Returns:

anychart.core.stock.indicators.BBands - Self instance for method chaining.