AnyChart
API Reference
Still have questions?
Contact support
Top

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

Volume + MA indicator class.

Methods Overview

Series
maSeries()Indicator moving average series instance.
volumeSeries()Indicator volume series instance.
Specific Indicators Settings
maPeriod()Indicator Moving Average Period settings.
maType()Indicator smoothing type.

Methods Description

maPeriod

Getter for the Moving Average period.

Returns:

number - The Moving Average period.
Setter for the Moving Average period.

Params:

NameTypeDefaultDescription
periodnumber
20
Moving Average period to set.

Returns:

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

maSeries

Getter for the indicator moving average series instance.

Returns:

anychart.core.stock.series.Base | anychart.core.stock.scrollerSeries.Base - The indicator moving average series
Setter for the indicator moving average series type.

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator moving average series.

Returns:

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

maType

Getter for the smoothing type.

Returns:

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

Params:

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

Returns:

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

volumeSeries

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

Params:

NameTypeDescription
typeanychart.enums.StockSeriesType | stringType of the indicator volume series.

Returns:

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