+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Kairi Relative Index

The Kairi Relative Index AFL might be centered around the Kairi indicator, which measures the difference between the current price and a specific moving average as a percentage. Utilizing an Amibroker data feed, this AFL calculates the Kairi Index, aiding traders in assessing the current price’s position relative to a moving average, indicating potential overbought or oversold conditions.

/// Price - SMA over X periods divided by SMA over X periods
// http://www.investopedia.com/articles/forex/09/kairi-relative-strength-index.asp
/*
The Kairi Relative Index is considered an oscillator as well as a leading indicator.
The Index calculates a deviation of the current price from its simple moving average
as a percentage of the moving average. By recognizing trending markets that are
overextended, traders hope to capitalize on the downside.
*/

GraphXSpace = 5;
SetChartOptions( 0, 0, 0 );

function Kairi( array, period )
{
    return ( ( array - MA( array, period ) ) / MA( array, period ) ) * 100;
}

P = ParamField("Price field",-1);
Periods = Param("Periods", 14, 2, 300, 1, 10 );

Plot( Kairi( P, Periods),	"KRI("+Periods +")", ParamColor( "Color", colorCycle ), ParamStyle("Style", styleLine, maskAll  ));
PlotGrid( 0, colorBlack );


Open chat
1
Hi, how can I help you?