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.Context | Type definition for the context. |
Functions Description
calculate
Bollinger Bands Width calculation.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.bbandsWidth.Context | Bollinger Bands Width context. |
value | number | Value. |
Returns:
number - The calculated Bollinger Bands Width indicator value.calculationFunction
Calculates Bollinger Bands Width.
Params:
Name | Type | Description |
---|---|---|
row | anychart.data.TableComputer.RowProxy | Row proxy. |
context | anychart.math.bbandsWidth.Context | Context. |
Try it:
createComputer
Creates the Bollinger Bands Width computer for the given table mapping.
Params:
Name | Type | Description |
---|---|---|
mapping | anychart.data.TableMapping | Data mapping. |
period | number | Indicator period. |
deviation | number | Indicator deviation. |
Returns:
anychart.data.TableComputer - Table computer.Try it:
initContext
Creates context for the Bollinger Bands Width indicator calculation.
Params:
Name | Type | Default | Description |
---|---|---|---|
period | number | 20 | Indicator period. |
deviation | number | 2 | Indicator deviation. |
Returns:
anychart.math.bbandsWidth.Context - Context.Try it:
startFunction
Start calculation function for the Bollinger Bands Width indicator calculation.
Params:
Name | Type | Description |
---|---|---|
context | anychart.math.bbandsWidth.Context | Context. |
Try it: