class anychart.core.stock.indicators.RoC Improve this Doc
Rate of Change (RoC) indicator class. Learn more about the RoC indicator.
Methods Overview
Series | |
series() | Indicator series setting. |
Specific Indicators Settings | |
period() | Indicator period setting. |
Methods Description
period
Setter for the period.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | number | 20 | Period. |
Returns:
anychart.core.stock.indicators.RoC - Self instance for method chaining.Try it:
series
Getter for the current indicator RoC series.
Returns:
anychart.core.stock.series.Base | anychart.core.stock.scrollerSeries.Base - The current indicator series.Try it:
Setter for the indicator RoC series.
Params:
Name | Type | Default | Description |
---|---|---|---|
type | string | anychart.enums.StockSeriesType | "line" | Type of the indicator series (type as "line", "column", "ohlc"). |
Returns:
anychart.core.stock.indicators.RoC - Self instance for method chaining.Try it: