Click or drag to resize

Stochastic Constructor (Int32, IAverager, IAverager)

Creates new instance of Stochastic indicator with custom method of averaging.

Namespace:  FinAnalysis.TA
Assembly:  FinAnalysis (in FinAnalysis.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public Stochastic(
	int rawPeriod,
	IAverager kAverager,
	IAverager dAverager
)

Parameters

rawPeriod
Type: SystemInt32
Number of values used to calculate Raw Stochastic.
kAverager
Type: FinAnalysis.BaseIAverager
Averaging method used to calculate %K.
dAverager
Type: FinAnalysis.BaseIAverager
Averaging method used to calculate %D.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when kAverager or dAverager is null.
See Also