AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 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.
Setter for the deviation.

Params:

NameTypeDefaultDescription
valuenumber
2
Deviation.

Returns:

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

lowerSeries

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

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType | string
"line"
Type of the indicator Lower Series.

Returns:

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

middleSeries

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

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType
"line"
Type 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
valuenumber
20
Period to set.

Returns:

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

upperSeries

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

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType | string
"line"
Type of the indicator Upper Series.

Returns:

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