AnyChart
API Reference
Still have questions?
Contact support
Top

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

Creates Commodity Channel (CCI) indicator class. Learn more about the CCI indicator.

Methods Overview

Series
series()Indicator series instance.
Specific Indicators Settings
period()Indicator period settings.

Methods Description

period

Getter for the indicator period.

Returns:

number - Indicator period.

Try it:

Setter for the indicator period.

Params:

Name Type Default Description
value number
20
Period to set.

Returns:

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

Try it:

series

Getter for the indicator series instance.

Try it:

Setter for the indicator series type.

Params:

Name Type Description
type anychart.enums.StockSeriesType | string Type of the indicator series.

Returns:

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

Try it: