在Pine脚本中,我想在不同时间框架的策略中使用RSI背离指标。
你能显示缺失的代码吗?
感谢您可以使用请求。安全功能:
// Your function ((here rsi)
rsi = ta.rsi(close, 7)
// This sends the `rsi` calculation for execution in the context of the chart symbol at a "240" (4 hours) timeframe.
rsi240 = request.security(syminfo.tickerid, "240", rsi)