//@version=5
//Panchaya
indicator(title="RSI Crossing", shorttitle="RSI Crossing", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
lengthRSIS = input.int(25, "RSI Short", minval=1)
lengthRSIL = input.int(100, "SMA Long", minval=1)
src = input(close, title="RSI Source")
rsi1 = ta.rsi(src, lengthRSIS)
rsi2 = ta.rsi(src, lengthRSIL)
p1=plot(rsi1, "RSIS", color=#2962FF)
p2=plot(rsi2, "RSIL", color=#FF6D00)
h0 = hline(80, "Upper Band", color=#787B86)
h1 = hline(20, "Lower Band", color=#787B86)
fill(h0, h1, color=color.rgb(255, 255, 204, 95), title="Background")
免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。