Top
You are looking at an outdated 7.14.0 version of this document. Switch to the 7.14.3 version to see the up to date information.

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

Bollinger Bands (BBands) indicator class.

Methods Overview

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

Methods Description

deviation

Getter for the deviation.

Returns:

number - The indicator deviation.

Try it:

Setter for the deviation.

Params:

Name Type Default Description
value number
2
Deviation.

Returns:

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

Try it:

lowerSeries

Getter for the indicator Lower Series.

Try it:

Setter for the indicator Lower Series.

Params:

Name Type Default Description
type anychart.enums.StockSeriesType | string
"line"
Type of the indicator Lower Series.

Returns:

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

Try it:

middleSeries

Getter for the indicator Middle Series.

Try it:

Setter for the indicator Middle Series.

Params:

Name Type Default Description
type anychart.enums.StockSeriesType
"line"
Type of the indicator Middle Series.

Returns:

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

Try it:

period

Getter for the period.

Returns:

number - The indicator period.

Try it:

Setter for the period.

Params:

Name Type Default Description
value number
20
Period to set.

Returns:

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

Try it:

upperSeries

Getter for the indicator Upper Series.

Try it:

Setter for the indicator Upper Series.

Params:

Name Type Default Description
type anychart.enums.StockSeriesType | string
"line"
Type of the indicator Upper Series.

Returns:

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

Try it: