.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > FinancialEngine Class > KFastStochastic Method : KFastStochastic(SeriesCollection,Int32) Method
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
An integer which represents the number of previous time periods used over which the closing price is compared.
KFastStochastic(SeriesCollection,Int32) Method
Evaluation of the Fast %K Stochastic when the number of previous time periods used over which the closing price is compared is given.

Indicator variables

The Stochastic %K depends on the following variable:

  • Periods - the number of previous time periods used over which the closing price is compared.

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
'Declaration
 
Public Overloads Shared Function KFastStochastic( _
   ByVal sc As SeriesCollection, _
   ByVal noOfPeriods As Integer _
) As SeriesCollection
'Usage
 
Dim sc As SeriesCollection
Dim noOfPeriods As Integer
Dim value As SeriesCollection
 
value = FinancialEngine.KFastStochastic(sc, noOfPeriods)
public static SeriesCollection KFastStochastic( 
   SeriesCollection sc,
   int noOfPeriods
)

Parameters

sc
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also