Top

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.

Try it:

Setter for the ADX period.

Params:

Name Type Description
value number ADX period to set.

Returns:

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

Try it:

adxSeries

Getter for the indicator ADX series.

Try it:

Setter for the indicator ADX series.

Params:

Name Type Default Description
type anychart.enums.StockSeriesType | string
"line"
Type of the indicator ADX series.

Returns:

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

Try it:

ndiSeries

Getter for the indicator -DI series.

Try it:

Setter for the indicator -DI series.

Params:

Name Type Default Description
type anychart.enums.StockSeriesType | string
"line"
Type of the indicator -DI series.

Returns:

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

Try it:

pdiSeries

Getter for the indicator +DI series.

Try it:

Setter for the indicator +DI series.

Params:

Name Type Default Description
type anychart.enums.StockSeriesType | string
"line"
Type of the indicator +DI series.

Returns:

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

Try it:

period

Getter for the period.

Returns:

number - Indicator period.

Try it:

Setter for the period.

Params:

Name Type Default Description
value number
14
Period to set.

Returns:

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

Try it:

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:

Name Type Default Description
value boolean
true
Wilders smoothing mode.

Returns:

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

Try it: