Просили код индикатора, вот он:
indicator("AlertCond")
act = input.symbol(defval = 'ETHUSDT', title = 'input Active 2')
source = input(defval = ohlc4, title = 'source')
p = input.int(title="period", defval = 30)
s = request.security(act, timeframe.period, source)
r1 = ta.rsi(source, p)
r2 = ta.rsi(s, p)
d = math.abs(r1 - r2)
plot(r1, color = color.red, linewidth = 2)
plot(r2, color = color.yellow, linewidth = 1)
alertcondition(r1 < 20 and r2 > 80, title = 'diver')
alertcondition(d>10, title = 'd>10')