dotnetCHARTING Send comments on this topic.
KFastStochastic(String,Series,Int32) Method
See Also 
dotnetCHARTING Namespace > FinancialEngine Class > KFastStochastic Method : KFastStochastic(String,Series,Int32) Method


seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
An financial series where the first element is the closing price in the last trading period, the second term is the closing price in the previous trading period and so on.
noOfPeriods
An integer which represents the number of previous time periods used over which the closing price is compared.
Evaluation of the Fast

Indicator variables

The Stochastic K depends on the following variable:

Now the formulae for the Stochastic %K over a is:


100 x (Last Close - Lowest low)/(Highest high - Lowest low)

where the "lowest low" (respec. "highest high") is the highest (respec. lowest) close of the asset over the period under consideration. Since the "Last close", will lie between the highest high and lowest low this indicator will lie between 0 and 100.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function KFastStochastic( _
   ByVal seriesName As String, _
   ByVal s As Series, _
   ByVal noOfPeriods As Integer _
) As Series
Visual Basic (Usage)Copy Code
Dim seriesName As String
Dim s As Series
Dim noOfPeriods As Integer
Dim value As Series
 
value = FinancialEngine.KFastStochastic(seriesName, s, noOfPeriods)
C# 
public static Series KFastStochastic( 
   string seriesName,
   Series s,
   int noOfPeriods
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
An financial series where the first element is the closing price in the last trading period, the second term is the closing price in the previous trading period and so on.
noOfPeriods
An integer which represents the number of previous time periods used over which the closing price is compared.

Return Value

A series where the first term is the KFastStochastic calculated for the most recent period, the second term is the KFastStochastic calculated for the previous period and so on.

See Also

© 2018 All Rights Reserved.