Roc()在Pine脚本版本5中不起作用

发布于 2025-01-22 18:07:21 字数 285 浏览 5 评论 0原文

我是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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

满天都是小星星 2025-01-29 18:07:21

在V5中,roc()函数已重命名为ta.Roc()以及许多其他内置功能

In v5, the roc() function has been renamed to ta.roc(), along with many other built-in functions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文