如何在图表上绘制先前蜡烛高点和低点的水平线?
我在绘制水平线路的绘制延伸的水平线上遇到了麻烦,使用先前的蜡烛高和低。希望使用多个时间范围(4小时,D,W,M)蜡烛作为参考。我该如何在Pine脚本中进行编辑?
I'm having trouble plotting horizontal lines that extend using previous candles high and low. Would love to be bale to use multiple time frames (4hr, D, W, M) candles as reference. How do I go about editing this in pine script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要从不同时间范围获取数据,您应该使用
request.security()
函数。然后您可以使用
line
或plot()
来显示此信息。下面的代码绘制了前一天的高点和低点。
To get data from different timeframes, you should use the
request.security()
function.Then you can either use
line
orplot()
to display this information.Below code plots previous day's high and low.