Kairi(Series,Series) Method
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
'Declaration Public Overloads Shared Function Kairi( _ ByVal s As Series, _ ByVal movingAverageSeries As Series _ ) As Series
'Usage Dim s As Series Dim movingAverageSeries As Series Dim value As Series value = StatisticalEngine.Kairi(s, movingAverageSeries)
public static Series Kairi( Series s, Series movingAverageSeries )
Parameters
- s
- A statistical series.
- movingAverageSeries
- A series where the first term corresponds to the most recent value of the moving average (generally the simple moving average) of the underlying asset, the second term to the previous value and so on.
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.
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