Pine编辑器NZ功能给出符号解决错误
您好,我对TradingView和此代码有问题,如果我没有错,则在这种情况下,NZ应该用零替换NAN,因此我应该能够在DXY EURUSD ZN1(例如DXY EURUSD ZN1)中绘制零!
//@version = 5指示器(“我的脚本”)grahamnumber = nz(request.financial(syminfo.tickerid,“ graham_numbers”,“ fy”,“ fy”,crurners = crurnern.usd),0)图(grahamnumber)
结果是可以编译脚本,但它在这样的图表上给您带来了错误:
符号解析错误:= {“货币-ID” _“ usd”。 “符号”:“ fund:cbot_dl; zn1!; graham
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有用于期货的财务数据,因此在期货符号上使用
request.financial()
的任何尝试都会导致类似的错误。错误本身表明脚本请求找不到的符号。There's no financial data available for futures, so any attempt to use
request.financial()
on futures symbols will result in a similar error. The error itself indicates that the script requests a symbol that could not be found.这是解决方案:ignore_invalid_symbol = true基本上,如果它不再出现,则该错误不再出现,并且如果符号没有Graham号,则绘图显示了值0,如果它具有Graham号码,则该曲线显示了正确的值。
this is the solution : ignore_invalid_symbol=true basically if it's true the error doesn't appear anymore and the plot shows correctly the value 0 if the symbol has not the graham number instead if it has it shows you the correct value.