如何仅用松木脚本标记或绘制上一个nth bar
我尝试仅突出显示Pine脚本编辑器中的上一个第5个栏。
我发现Pine脚本总是从当前输出一系列条:
//@version=5
indicator("Previous Day Retrace", overlay = true)
l = label.new(bar_index, close)
label.delete(l[5])
我如何只在每次仅标记或仅绘制一个bar?寻找帮助
I try to highlight only the previous 5th bar within the Pine Script Editor.
I found the Pine Script always outputs a range of bars from the present like this:
//@version=5
indicator("Previous Day Retrace", overlay = true)
l = label.new(bar_index, close)
label.delete(l[5])
How can I just label or plot only one bar at each time? Looking for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在bar_index-4上绘制标签,然后将标签删除至上一个标签IE b 1
You can plot the label at bar_index-4 and then delete upto previous label i.e. b1