class anychart.core.stock.indicators.DMI Improve this Doc
DMI indicator class. Learn more about the DMI indicator.
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
Setter for the ADX period.
Params:
Name | Type | Description |
---|---|---|
period | 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 instance.
Returns:
anychart.core.stock.series.Base | anychart.core.stock.scrollerSeries.Base - Indicator -ADX series.Try it:
Setter for the indicator ADX series type.
Params:
Name | Type | Description |
---|---|---|
type | anychart.enums.StockSeriesType | string | 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 instance.
Returns:
anychart.core.stock.series.Base | anychart.core.stock.scrollerSeries.Base - Indicator -DI series.Try it:
Setter for the indicator -DI series type.
Params:
Name | Type | Description |
---|---|---|
type | anychart.enums.StockSeriesType | string | 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 instance.
Returns:
anychart.core.stock.series.Base | anychart.core.stock.scrollerSeries.Base - Indicator +DI series.Try it:
Setter for the indicator +DI series type.
Params:
Name | Type | Description |
---|---|---|
type | anychart.enums.StockSeriesType | string | Type of the indicator +DI series. |
Returns:
anychart.core.stock.indicators.DMI - Self instance for method chaining.Try it:
period
Setter for the period.
Params:
Name | Type | Default | Description |
---|---|---|---|
period | 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 |
---|---|---|---|
enabled | boolean | true | Wilders smoothing mode. |
Returns:
anychart.core.stock.indicators.DMI - Self instance for method chaining.Try it: