Professional Documents
Culture Documents
0 at
https://mozilla.org/MPL/2.0/
// � Sofien-Kaabar
//@version=5
indicator("RSI Objective Lines")
// support
support = ta.lowest(rsi_low, lookback) + (max_range * threshold)
// resistance
resistance = ta.highest(rsi_high, lookback) - (max_range * threshold)
inp = input(close)
plot(ta.rsi(inp, 14))
plot(support, color = ta.rsi(inp, 14) > support? color.green : na)
plot(resistance, color = ta.rsi(inp, 14) < resistance? color.red : na)