dotnetCHARTING Send comments on this topic.
Kairi(Series,SeriesCollection) Method
See Also 
dotnetCHARTING Namespace > StatisticalEngine Class > Kairi Method : Kairi(Series,SeriesCollection) Method


s
A statistical series.
movingAverages
A collection of series.
Calculates the Kairi Indicator measure as a percentage of the element value, the divergence between the a moving average (generally the simple moving average) of the value and the value itself for each period for which there is sufficient historical values.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function Kairi( _
   ByVal s As Series, _
   ByVal movingAverages As SeriesCollection _
) As SeriesCollection
Visual Basic (Usage) Copy Code
Dim s As Series
Dim movingAverages As SeriesCollection
Dim value As SeriesCollection
 
value = StatisticalEngine.Kairi(s, movingAverages)
C#  
public static SeriesCollection Kairi( 
   Series s,
   SeriesCollection movingAverages
)

Parameters

s
A statistical series.
movingAverages
A collection of series.

Remarks

Remark: The Kairi Indicator is often used with conjunction with other moving averages within trading systems.

Evaluation

The formulae for the Kairi Indicator is as follows:

Kairi Indicator = (MA - price) / price

where MA is the moving average being considered and price is the present price of the underlying asset.

See Also