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

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

Getter for the current period.

Returns:

number - The current period.
Setter for the period.

Params:

NameTypeDefaultDescription
valuenumber
20
Period.

Returns:

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

series

Getter for the current indicator RoC series.
Setter for the indicator RoC series.

Params:

NameTypeDefaultDescription
typestring | 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.