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.Context | Type definition for the context. |
Functions Description
calculate
DMI calculation.
Params:
| Name | Type | Description |
|---|---|---|
| context | anychart.math.dmi.Context | DMI context. |
| close | number | Close value. |
| high | number | High value. |
| low | number | Low value. |
Returns:
Array.<number> - The calculated ADL indicator array of values.calculationFunction
Calculates DMI.
Params:
| Name | Type | Description |
|---|---|---|
| row | anychart.data.TableComputer.RowProxy | Row proxy. |
| context | anychart.math.dmi.Context | Context. |
Try it:
createComputer
Creates a DMI computer for the given table mapping.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| mapping | anychart.data.TableMapping | Data mapping. | |
| period | number | 14 | Indicator period. |
| adxPeriod | number | 14 | Indicator adx period. |
| useWildersSmoothing | boolean | true | Wilders smoothing mode. |
Returns:
anychart.data.TableComputer - Table computer.Try it:
initContext
Creates a context for DMI indicator calculation.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| period | number | 14 | Indicator period. |
| adxPeriod | number | 14 | Indicator ADX period. |
| useWildersSmoothing | boolean | true | Wilder's smoothing mode. Defaults to true. |
Returns:
anychart.math.dmi.Context - Context.Try it:
startFunction
Start calculation function for DMI indicator calculation.
Params:
| Name | Type | Description |
|---|---|---|
| context | anychart.math.dmi.Context | Context. |
Try it:
