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