将 2 个符号与 pine 脚本 Tradingview 进行比较的问题
Problem to compare 2 symboles with pinescript Tradingview
我尝试将我的实际代码与新 windows 中的另一个进行比较。
我尝试使用 syminfo.tickerid 但它不起作用。
我只想绘制 QQQ/XLE 示例,但要使用脚本。
//@version=5
indicator("My script",timeframe= "",overlay=false,format=format.price)
ticker = input.symbol("AAPL")
sec_close = request.security(ticker,"",close)
actual_close= request.security(syminfo.tickerid,"",close)
plot(sec_close,color=color.orange)
plot(actual_close)
我尝试将我的实际代码与新 windows 中的另一个进行比较。 我尝试使用 syminfo.tickerid 但它不起作用。
我只想绘制 QQQ/XLE 示例,但要使用脚本。
//@version=5
indicator("My script",timeframe= "",overlay=false,format=format.price)
ticker = input.symbol("AAPL")
sec_close = request.security(ticker,"",close)
actual_close= request.security(syminfo.tickerid,"",close)
plot(sec_close,color=color.orange)
plot(actual_close)