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:

Name Type Description
context anychart.math.ha.Context HA context.
open number Open value.
high number High value.
low number Low value.
close number Close value.

Returns:

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

Try it:

calculationFunction

Calculates Heikin-Ashi.

Params:

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

Try it:

createComputer

Creates Heikin-Ashi computer for the given table mapping.

Params:

Name Type Description
mapping anychart.data.TableMapping Data mapping.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates context for Heikin-Ashi indicator calculation.

Returns:

anychart.math.ha.Context - Context.

Try it:

startFunction

Start calculation function for Heikin-Ashi indicator calculation.

Params:

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

Try it: