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

class anychart.core.stock.indicators.DMI Improve this Doc

DMI indicator class.

Methods Overview

Series
adxSeries()Indicator ADX series settings.
ndiSeries()Indicator -DI series settings.
pdiSeries()Indicator +DI series settings.
Specific Indicators Settings
adxPeriod()Indicator ADX period settings.
period()Indicator period settings.
useWildersSmoothing()Wilders smoothing mode.

Methods Description

adxPeriod

Getter for the ADX period.

Returns:

number - Indicator ADX period.
Setter for the ADX period.

Params:

NameTypeDescription
valuenumberADX period to set.

Returns:

anychart.core.stock.indicators.DMI - Self instance for method chaining.

adxSeries

Getter for the indicator ADX series.
Setter for the indicator ADX series.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType | string
"line"
Type of the indicator ADX series.

Returns:

anychart.core.stock.indicators.DMI - Self instance for method chaining.

ndiSeries

Getter for the indicator -DI series.
Setter for the indicator -DI series.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType | string
"line"
Type of the indicator -DI series.

Returns:

anychart.core.stock.indicators.DMI - Self instance for method chaining.

pdiSeries

Getter for the indicator +DI series.
Setter for the indicator +DI series.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType | string
"line"
Type of the indicator +DI series.

Returns:

anychart.core.stock.indicators.DMI - Self instance for method chaining.

period

Getter for the period.

Returns:

number - Indicator period.
Setter for the period.

Params:

NameTypeDefaultDescription
valuenumber
14
Period to set.

Returns:

anychart.core.stock.indicators.DMI - Self instance for method chaining.

useWildersSmoothing

Getter for the Wilders smoothing.

Returns:

boolean - Wilders smoothing mode.
See listing
var mode = dmiIndicator.useWildersSmoothing();
Getter and setter for the Wilders smoothing.

Params:

NameTypeDefaultDescription
valueboolean
true
Wilders smoothing mode.

Returns:

anychart.core.stock.indicators.DMI - Self instance for method chaining.