如果布尔值为真,如何绘制某些内容? PINE脚本V5
这是我简化的代码:
PlotOrNot = input.bool(true, title="Plot it", inline = "01")
plot(SomethingCalculated, "Calculated Thing", color=color.blue, offset = offset)
当我发现这里,有一种方法可以告诉绘图
命令执行绘图,以防布尔值为真,但我无法设法使其无法转变为错误消息。
Here's my simplified code:
PlotOrNot = input.bool(true, title="Plot it", inline = "01")
plot(SomethingCalculated, "Calculated Thing", color=color.blue, offset = offset)
As I found here, there's a way to tell the plot
command to do the plot in case the Boolean value is true but I could not manage to make it not turn into error messages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
系列
plot()
的参数中使用它。Use it in the
series
argument of theplot()
.