change in rsi
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © bala357

//@version=5
indicator("change in rsi","",false)

//inputs
period= input(20,"period")

//calculation
a = ta.rsi(close,period)
b = ta.change(a,1)
c = b*100/a

//plotting
plot(c)


//plotting of horizontal lines
hline(0, color=color.rgb(231, 255, 20),linestyle = hline.style_solid,linewidth=1)

hline(2, color=color.rgb(74, 187, 79),linestyle = hline.style_dotted,linewidth=1)
hline(4, color=color.rgb(74, 187, 79),linestyle = hline.style_dotted,linewidth=1)
hline(6, color=color.rgb(74, 187, 79),linestyle = hline.style_dotted,linewidth=1)

hline(-2, color=color.rgb(182, 58, 21),linestyle = hline.style_dotted,linewidth=1)
hline(-4, color=color.rgb(182, 58, 21),linestyle = hline.style_dotted,linewidth=1)
hline(-6, color=color.rgb(182, 58, 21),linestyle = hline.style_dotted,linewidth=1)