SRJ RSI Outperformer 
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Sapt_Jash

//@version=5
indicator(title="SRJ RSI Outperformer ", shorttitle="SRJ RSI Outperformer")
srcperiod1 = input.int(14, minval=1, title="Length Of Fast RSI")
srcperiod2 = input.int(28, minval=1, title="Length Of Slow RSI")
srcperiod3 = input.int(14, minval=1, title="Length Of Moving Average")
rsi1 = ta.rsi(close, srcperiod1)
rsi2 = ta.rsi(close, srcperiod2)
divergence1 = (rsi2/rsi1)
divergence2 = (rsi1/divergence1)
ma1 = ta.sma(rsi1, srcperiod3)
ma2 = ta.sma(divergence2, srcperiod3)
plot(ma1, title='Fast RSI Moving Average', color=color.new(color.yellow, 0), linewidth=1, style=plot.style_line, offset=0, trackprice=true)
plot(ma2, title='RSI Outperformer Moving Average', color=color.new(#00ffaa, 0), linewidth=1, style=plot.style_line, offset=0, trackprice=true)
hline(80, title='Upper Level', color=color.new(#00ffaa, 0), linestyle=hline.style_solid, linewidth=1)
hline(20, title='Lower Level', color=color.new(#00ffaa, 0), linestyle=hline.style_solid, linewidth=1)

  