AnyChart
API Reference
Still have questions?
Contact support
Top

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

Stochastic indicator class. Learn more about the Stochastic indicator.

Methods Overview

Series
dSeries()Indicator %D Series instance.
kSeries()Indicator %K Series instance.
Specific Indicators Settings
dMAType()%D smoothing type.
dPeriod()Indicator %D Period settings.
kMAPeriod()Indicator %K smoothing period.
kMAType()%K smoothing type.
kPeriod()Indicator %K Period settings.

Methods Description

dMAType

Getter for the %D smoothing type.

Returns:

anychart.enums.MovingAverageType string - %D smoothing type.

Try it:

Setter for the %D smoothing type.

Params:

Name Type Default Description
value anychart.enums.MovingAverageType | string
"sma"
%D smoothing type

Returns:

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

Try it:

dPeriod

Getter for the %D Period.

Returns:

number - The %D Period

Try it:

Setter for the %D Period.

Params:

Name Type Default Description
value number
3
%D Period to set.

Returns:

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

Try it:

dSeries

Getter for the indicator %D Series instance.

Try it:

Setter for the indicator %D Series type.

Params:

Name Type Description
type anychart.enums.StockSeriesType | string Type of the indicator %D Series.

Returns:

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

Try it:

kMAPeriod

Getter for the %K smoothing period.

Returns:

number - %K smoothing period.

Try it:

Setter for the %K smoothing period.

Params:

Name Type Default Description
value number
1
%K smoothing period.

Returns:

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

Try it:

kMAType

Getter for the %K smoothing type.

Returns:

anychart.enums.MovingAverageType string - %K smoothing type.

Try it:

Setter for the %K smoothing type.

Params:

Name Type Default Description
value anychart.enums.MovingAverageType | string
"sma"
%K smoothing type.

Returns:

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

Try it:

kPeriod

Getter for the %K Period.

Returns:

number - The %K Period.

Try it:

Setter for the %K Period.

Params:

Name Type Default Description
value number
14
%K Period to set.

Returns:

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

Try it:

kSeries

Getter for the indicator %K Series instance.

Try it:

Setter for the indicator %K Series type.

Params:

Name Type Description
type anychart.enums.StockSeriesType | string Type of the indicator %K Series.

Returns:

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

Try it: