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

Stochastic indicator class. Learn more about the Stochastic indicator.

Methods Overview

Series
dSeries()Indicator %D Series settings.
kSeries()Indicator %K Series settings.
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 - %D smoothing type.
Setter for the %D smoothing type.

Params:

NameTypeDefaultDescription
valueanychart.enums.MovingAverageType
"sma"
%D smoothing type

Returns:

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

dPeriod

Getter for the %D Period.

Returns:

number - The %D Period
Setter for the %D Period.

Params:

NameTypeDefaultDescription
valuenumber
3
%D Period to set.

Returns:

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

dSeries

Getter for the indicator %D Series.
Setter for the indicator %D Series.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType
"line"
Type of the indicator %D Series.

Returns:

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

kMAPeriod

Getter for the %K smoothing period.

Returns:

number - %K smoothing period.
Setter for the %K smoothing period.

Params:

NameTypeDefaultDescription
valuenumber
1
%K smoothing period.

Returns:

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

kMAType

Getter for the %K smoothing type.

Returns:

anychart.enums.MovingAverageType - %K smoothing type.
Setter for the %K smoothing type.

Params:

NameTypeDefaultDescription
valueanychart.enums.MovingAverageType
"sma"
%K smoothing type.

Returns:

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

kPeriod

Getter for the %K Period.

Returns:

number - The %K Period.
Setter for the %K Period.

Params:

NameTypeDefaultDescription
valuenumber
14
%K Period to set.

Returns:

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

kSeries

Getter for the indicator %K Series.
Setter for the indicator %K Series.

Params:

NameTypeDefaultDescription
typeanychart.enums.StockSeriesType
"line"
Type of the indicator %K Series.

Returns:

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