AnyChart
API Reference
Still have questions?
Contact support
Top

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
Wilder's 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.