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.

namespace anychart.math.bbands Improve this Doc

Namespace anychart.math.bbands
Learn more about indicator mathematics.

Functions Overview

calculate()Bollinger Bands calculation.
calculationFunction()Calculates Bollinger Bands.
createComputer()Creates the Bollinger Bands computer for the given table mapping.
initContext()Creates a context for the Bollinger Bands indicator calculation.
startFunction()Start calculation function for the Bollinger Bands indicator calculation.

Typedefs Overview

anychart.math.bbands.ContextType definition for the context.

Functions Description

calculate

Bollinger Bands calculation.

Params:

NameTypeDescription
contextanychart.math.bbands.ContextBBands Width context.
valuenumberValue.

Returns:

Array.<number> - An array of the calculated Bollinger Bands indicator values.

calculationFunction

Calculates Bollinger Bands.

Params:

NameTypeDescription
rowanychart.data.TableComputer.RowProxyRow proxy.
contextanychart.math.bbands.ContextContext.

createComputer

Creates the Bollinger Bands computer for the given table mapping.

Params:

NameTypeDescription
mappinganychart.data.TableMappingData mapping.
periodnumberIndicator period.
deviationnumberIndicator deviation.

Returns:

anychart.data.TableComputer - Table computer

initContext

Creates a context for the Bollinger Bands indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.
deviationnumber
2
Indicator deviation.

Returns:

anychart.math.bbands.Context - Context.

startFunction

Start calculation function for the Bollinger Bands indicator calculation.

Params:

NameTypeDescription
contextanychart.math.bbands.ContextContext.