In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
// // @author LazyBear // // 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. // study("Kairi Relative Index [LazyBear]", shorttitle="KAIRI_LB") length=input(14) ki(src)=> ((src - sma(src, length))/sma(src, length)) * 100 hline(0) plot(ki(close), color=red, linewidth=2)