在交易视图中使用 pine-script 创建的每个图表指标(如图所示)
我使用 pine-script 在交易视图中创建了一个自定义指标。指标的输入取决于打开的图表。另外,我不希望该指标在所有图表中可见。
基本上我想要的是指示像绘图工具一样的行为。如果我使用左侧绘图菜单绘制一些线条和绘图,则它们仅适用于当前图表,而不适用于其他图表。
感谢您的帮助
I created a custom indicator in trading view using pine-script. The inputs to the indicator depend on the chart that is open. Also I do not want the indicator visible in all charts.
Basically what I want is to indicator behave like the drawing tools. If I draw some line and plots using the left side drawing menu, those are only applied to the current chart and not others.
Thanks for help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 pinescript (V5),执行和用户打开的图表/选项卡之间没有链接。
因此,您不能像绘图工具一样操作。
解决方法是从用户选择的图表中检索货币对名称。
您可以使用 syminfo.tickerid 来了解您的用户选择的配对并激活/停用您的指示器。
这样,您的指示器将仅对您决定的配对起作用。
With pinescript (V5) there is no link beetween the execution and the chart/tab open by the user.
So you can't act like the drawing tools.
A workaround is to retrieve the pair name from the chart choosen by the user.
You can use syminfo.tickerid to know the pair choosen by your user and activate/deactivate your indicator.
This way, your indicator will only work on pairs you decide.