AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.keltnerChannels Improve this Doc

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

Functions Overview

calculate()Keltner Channels calculation.
calculationFunction()Calculates Keltner Channels.
createComputer()Creates Keltner Channel computer for the given table mapping.
initContext()Creates context for Keltner Channels indicator calculation.
startFunction()Start calculation function for Keltner Channels indicator calculation.

Typedefs Overview

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

Functions Description

calculate

Keltner Channels calculation.

Params:

Name Type Description
context anychart.math.keltnerChannels.Context Context.
close number Close value.
high number High value.
low number Low value.

Returns:

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

calculationFunction

Calculates Keltner Channels.

Params:

Name Type Description
row anychart.data.TableComputer.RowProxy Row proxy.
context anychart.math.keltnerChannels.Context Context.

Try it:

createComputer

Creates Keltner Channel computer for the given table mapping.

Params:

Name Type Default Description
mapping anychart.data.TableMapping
Data mapping.
maPeriod number
20
Moving Average period.
atrPeriod number
10
Average True Range period.
maType anychart.enums.MovingAverageType
'ema'
Indicator smoothing type.
multiplier number
2
Multiplier.

Returns:

anychart.data.TableMapping - Table computer.

Try it:

initContext

Creates context for Keltner Channels indicator calculation.

Params:

Name Type Default Description
maPeriod number
20
MA period.
atrPeriod number
10
ATR period.
maType anychart.enums.MovingAverageType
'ema'
Indicator Moving Average type.
multiplier number
2
Multiplier value.

Try it:

startFunction

Start calculation function for Keltner Channels indicator calculation.

Params:

Name Type Description
context anychart.math.keltnerChannels.Context Context.

Try it: