ATR-Adjusted RSI
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Sofien-Kaabar

//@version=5
indicator("ATR-Adjusted RSI")

rsi = ta.rsi(close, 14)
atr = ta.atr(14)

rsi_atr = rsi / atr

rsi_atr_indicator = ta.rsi(rsi_atr, 14)

plot(rsi_atr_indicator, color = (rsi_atr_indicator > rsi_atr_indicator[1]) ? color.green : color.red)
hline(70)
hline(30)
