|Visual Basic (Declaration)|
Public Overloads Shared Function Kairi( _ ByVal s As Series, _ ByVal elementValue As ElementValue, _ ByVal movingAverages As SeriesCollection _ ) As SeriesCollection
|Visual Basic (Usage)||Copy Code|
public static SeriesCollection Kairi( Series s, ElementValue elementValue, SeriesCollection movingAverages )
- An series where the first term corresponds to the present price of the underlying asset for the most recent period, the second term corresponds to the present price of the underlying asset for the previous period and so on.
- Specifies the particular element value (for example High, Low, Close or Open of the financial time series) which will be considered within this indicator evaluation. In particular, if you wish to use the element value high then you should pass the parameter High. In a similarly fashion if you wish to use the low, close or open, then you should pass the parameter Low, Close, Open, respectively.
- An 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.
Return ValueAn series where the first term returns the Kairi indicator expressed as decimal format (i.e. 0.01 = 1 percent) for the most recent period, the second term returns the Kairi indicator for the previous period and so on.
Remark: The Kairi Indicator is often used with conjunction with other moving averages within trading systems.
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.
The Kairi Indicator can be used in order to take advantage of an over extended trending market. For example, in an upwardly trending market when the price gets say more than 10% above the simple moving average, the asset could be sold and repurchased when the next hits the simple moving average again.
The Kairi Indicator could also be used in order to detect market tops and bottom. The idea being that market tops and bottoms often occur when the price is at an extreme value in relation to its moving average. That is, the Kairi Indicator should take an extreme value at market tops and bottoms.