AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

namespace anychart.math.dmi Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

DMI calculation.

Params:

NameTypeDescription
contextanychart.math.dmi.ContextDMI context.
closenumberClose value.
highnumberHigh value.
lownumberLow value.

Returns:

Array.<number> - The calculated ADL indicator array of values.

calculationFunction

createComputer

Creates a DMI computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
periodnumber
14
Indicator period.
adxPeriodnumber
14
Indicator adx period.
useWildersSmoothingboolean
true
Wilders smoothing mode.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for DMI indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
14
Indicator period.
adxPeriodnumber
14
Indicator ADX period.
useWildersSmoothingboolean
true
Wilders smoothing mode. Defaults to true.

Returns:

anychart.math.dmi.Context - Context.

startFunction

Start calculation function for DMI indicator calculation.

Params:

NameTypeDescription
contextanychart.math.dmi.ContextContext.