Roc()在Pine脚本版本5中不起作用
我是Pine脚本的新手,尽管我试图编写一个脚本来列出“ Nifty”中的高beta股票。 有人可以帮助我找到一种在Pine Script V5中使用ROC的方法,我试图使用一个在线交易者中的脚本,但现在其过时的版本。我试图找出一些诸如研究作为指标()之类的功能 作为请求的安全性。安全等。
我在使用“ ROC(AST,1)''''AST是所请求的安全性之一时,我要低于错误。
“第11行:找不到函数或功能参考'roc'。”
尽管很少有网站会如此轻松地提供列表,但我只想学习这个松木脚本。
提前致谢!
I'm new to Pine script, though i'm trying to write a script to list the High beta stocks in "NIFTY".
Someone could help me to find a way to use ROC in Pine script V5, i was trying to use the script from one of the trader online, but now its outdated version. i tried to figure out few functions like study as indicator()
security as request.security and so on.
i'm getting below error while using '''roc(ast, 1)''' here ast is one of the requested security.
" line 11: Could not find function or function reference 'roc'."
Although there are few websites which will give lists so easily i just want to learn this pine script.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在V5中,
roc()
函数已重命名为ta.Roc()
,以及许多其他内置功能。In v5, the
roc()
function has been renamed tota.roc()
, along with many other built-in functions.