﻿ Kairi(String,Series,Series) Method
 Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic (Declaration) Language Filter: Visual Basic (Usage) Language Filter: C#
 dotnetCHARTING Namespace > StatisticalEngine Class > Kairi Method : Kairi(String,Series,Series) Method

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
A statistical series.
movingAverageSeries
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 seriesName As String, _
ByVal s As Series, _
ByVal movingAverageSeries As Series _
) As Series```
Visual Basic (Usage)Copy Code
``````Dim seriesName As String
Dim s As Series
Dim movingAverageSeries As Series
Dim value As Series

value = StatisticalEngine.Kairi(seriesName, s, movingAverageSeries)``````
C#
```public static Series Kairi(
string seriesName,
Series s,
Series movingAverageSeries
)```

#### Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
A statistical series.
movingAverageSeries

# 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.