AnyChart
API Reference
Still have questions?
Contact support
Top

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

Extends: anychart.core.stock.indicators.Base

Awesome Oscillator (AO) indicator class Learn more about the AO indicator.

Methods Overview

Series
series()Indicator series instance.
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
periodnumber
5
Fast period to set.

Returns:

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

maType

Getter for the indicator smoothing type.

Returns:

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

Params:

NameTypeDefaultDescription
typeanychart.enums.MovingAverageType | string
'sma'
Indicator smoothing type.

Returns:

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

series

Getter for the indicator series instance.
Setter for the indicator series type.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType | string
'line'
Type of the indicator series.

Returns:

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

slowPeriod

Getter for the slow period.

Returns:

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

Params:

NameTypeDefaultDescription
periodnumber
34
Slow period to set.

Returns:

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