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.CHO Improve this Doc

CHO indicator class.

Methods Overview

Series
series()Indicator series settings.
Specific Indicators Settings
fastPeriod()Indicator fast period settings.
maType()Indicator smoothing type.
slowPeriod()Indicator slow period settings.

Methods Description

fastPeriod

Getter for the fast period.

Returns:

number - Indicator fast period.
Setter for the fast period.

Params:

NameTypeDefaultDescription
valuenumber
3
Period to set.

Returns:

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

maType

Getter for the indicator smoothing type.

Returns:

string | anychart.enums.MovingAverageType - Indicator smoothing type.
Setter for the indicator smoothing type.

Params:

NameTypeDefaultDescription
valueanychart.enums.MovingAverageType | string
"ema"
Indicator smoothing type

Returns:

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

series

Setter for the indicator series.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType
"line"
Type of the indicator series.

Returns:

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

slowPeriod

Getter for the slow period.

Returns:

number - Indicator slow period.
Setter for the slow period.

Params:

NameTypeDefaultDescription
valuenumber
10
Period to set.

Returns:

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