AnyChart
API Reference
Still have questions?
Contact support
Top

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

Methods Overview

Series
adxSeries()Indicator ADX series instance.
ndiSeries()Indicator -DI series instance.
pdiSeries()Indicator +DI series instance.
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
periodnumberADX period to set.

Returns:

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

adxSeries

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

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator ADX series.

Returns:

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

ndiSeries

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

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator -DI series.

Returns:

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

pdiSeries

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

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType 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
periodnumber
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
enabledboolean
true
Wilders smoothing mode.

Returns:

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