GTI SHUBHNifty 50 IndexNSE:NIFTYshubhrai//@version=5 indicator("GTI Style Indicator", overlay=false) lengthRSI = input.int(14, "RSI Length") lengthStoch = input.int(14, "Stoch Length") k = ta.stoch(ta.rsi(close, lengthRSI), lengthStoch) d = ta.sma(k, 3) // Define color logic rsiValue = ta.rsi(close, lengthRSI) col = k > d ? (rsiValue < 30 ? color.green : color.white) : (rsiValue > 70 ? color.red : color.blue) plot(k, color=col, linewidth=2) plot(d, color=color.gray, linewidth=1) hline(85, 'Overbought', color=color.red) hline(15, 'Oversold', color=color.green)