Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function Kairi( _ ByVal s As Series, _ ByVal movingAverages As SeriesCollection _ ) As SeriesCollection |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static SeriesCollection Kairi( Series s, SeriesCollection movingAverages ) |
Parameters
- s
- A statistical series.
- movingAverages
- A collection of series.
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.