AnyChart
API Reference
Still have questions?
Contact support
Top

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.ContextType definition for the context.

Functions Description

calculate

Price Channels calculation.

Params:

NameTypeDescription
contextanychart.math.priceChannels.ContextPrice Channels context.
highnumberHigh value.
lownumberLow value.

Returns:

Array.<number> - An array of the calculated Price Channels indicator values.

calculationFunction

createComputer

Creates Price Channels computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
periodnumber
20
Indicator period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for Price Channels indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.

startFunction

Start calculation function for Price Channels indicator calculation.

Params:

NameTypeDescription
contextanychart.math.priceChannels.ContextContext