Top

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

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.

Try it:

Getter and setter for the period.

Params:

Name Type Default Description
value number
20
Period.

Returns:

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

Try it:

series

Getter for the indicator SMA series.

Try it:

Setter for the indicator SMA 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.SMA - Self instance for method chaining.

Try it: