本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。
//@version=3
study(title="RSI EMA CrossOver Ramesh", shorttitle="RSI EMA CrossOver Ramesh")
rsi1 = input(7, minval=1, title="RSI Short")
rsi2 = input(14, minval=1, title="RSI Long")
ema1 = input(10, minval=1, title="EMA Short")
ema2 = input(10, minval=1, title="EMA Long")
shortRSI = rsi(close,rsi1)
longRSI = rsi(close,rsi2)
shortRSIEMA = ema(rsi(close,rsi1),ema1)
longRSIEMA = ema(rsi(close,rsi2),ema2)
plot(shortRSIEMA, title="Short RSI EMA", color=green,linewidth=2)
plot(longRSIEMA, title="Long RSI EMA", color=red, linewidth=2)