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.bbandsWidth Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

Bollinger Bands Width calculation.

Params:

NameTypeDescription
contextanychart.math.bbandsWidth.ContextBollinger Bands Width context.
valuenumberValue.

Returns:

number - The calculated Bollinger Bands Width indicator value.

calculationFunction

Calculates Bollinger Bands Width.

Params:

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

createComputer

Creates the Bollinger Bands Width computer for the given table mapping.

Params:

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

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for the Bollinger Bands Width indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.
deviationnumber
2
Indicator deviation.

startFunction

Start calculation function for the Bollinger Bands Width indicator calculation.

Params:

NameTypeDescription
contextanychart.math.bbandsWidth.ContextContext.