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:

NameTypeDescription
contextanychart.math.keltnerChannels.ContextContext.
closenumberClose value.
highnumberHigh value.
lownumberLow value.

Returns:

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

calculationFunction

createComputer

Creates Keltner Channel computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
maPeriodnumber
20
Moving Average period.
atrPeriodnumber
10
Average True Range period.
maTypeanychart.enums.MovingAverageType
'ema'
Indicator smoothing type.
multipliernumber
2
Multiplier.

Returns:

anychart.data.TableMapping - Table computer.

initContext

Creates context for Keltner Channels indicator calculation.

Params:

NameTypeDefaultDescription
maPeriodnumber
20
MA period.
atrPeriodnumber
10
ATR period.
maTypeanychart.enums.MovingAverageType
'ema'
Indicator Moving Average type.
multipliernumber
2
Multiplier value.

startFunction

Start calculation function for Keltner Channels indicator calculation.

Params:

NameTypeDescription
contextanychart.math.keltnerChannels.ContextContext.