AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.ha Improve this Doc

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

Functions Overview

calculate()Heikin-Ashi calculation.
calculationFunction()Calculates Heikin-Ashi.
createComputer()Creates Heikin-Ashi computer for the given table mapping.
initContext()Creates context for Heikin-Ashi indicator calculation.
startFunction()Start calculation function for Heikin-Ashi indicator calculation.

Typedefs Overview

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

Functions Description

calculate

Heikin-Ashi calculation.

Params:

NameTypeDescription
contextanychart.math.ha.ContextHA context.
opennumberOpen value.
highnumberHigh value.
lownumberLow value.
closenumberClose value.

Returns:

Array.<number> - An array of the calculated Heikin-Ashi indicator values.

calculationFunction

Calculates Heikin-Ashi.

Params:

NameTypeDescription
rowanychart.data.TableComputer.RowProxyRow proxy.
contextanychart.math.ha.ContextContext.

createComputer

Creates Heikin-Ashi computer for the given table mapping.

Params:

NameTypeDescription
mappinganychart.data.TableMappingData mapping.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for Heikin-Ashi indicator calculation.

Returns:

anychart.math.ha.Context - Context.

startFunction

Start calculation function for Heikin-Ashi indicator calculation.

Params:

NameTypeDescription
contextanychart.math.ha.ContextContext.