namespace anychart.math.priceChannels Improve this Doc
Namespace anychart.math.priceChannels
Learn more about indicator mathematics.
Functions Overview
| calculate() | Price Channels calculation. |
| calculationFunction() | Calculates Price Channels. |
| createComputer() | Creates Price Channels computer for the given table mapping. |
| initContext() | Creates context for Price Channels indicator calculation. |
| startFunction() | Start calculation function for Price Channels indicator calculation. |
Typedefs Overview
| anychart.math.priceChannels.Context | Type definition for the context. |
Functions Description
calculate
Price Channels calculation.
Params:
| Name | Type | Description |
|---|---|---|
| context | anychart.math.priceChannels.Context | Price Channels context. |
| high | number | High value. |
| low | number | Low value. |
Returns:
Array.<number> - An array of the calculated Price Channels indicator values.Try it:
calculationFunction
Calculates Price Channels.
Params:
| Name | Type | Description |
|---|---|---|
| row | anychart.data.TableComputer.RowProxy | Row proxy. |
| context | anychart.math.priceChannels.Context | Context. |
Try it:
createComputer
Creates Price Channels computer for the given table mapping.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 20 | Indicator period. |
Returns:
anychart.data.TableComputer - Table computer.Try it:
initContext
Creates context for Price Channels indicator calculation.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| period | number | 20 | Indicator period. |
Returns:
anychart.math.priceChannels.Context - Context.Try it:
startFunction
Start calculation function for Price Channels indicator calculation.
Params:
| Name | Type | Description |
|---|---|---|
| context | anychart.math.priceChannels.Context | Context |
Try it:
