如何在 Pinescript 中绘制特定时间的最高点和最低点的水平线?
我的问题实际上是两个部分。
如何绘制一条从交易时间之外的特定时间开始的水平线(向右延伸,但不向左延伸)。我实际上想绘制两条水平线,一条位于 10 分钟图表上午 8 点蜡烛的最高点,另一条位于最低点。我希望它也能被历史地绘制。
如何才能使绘制的线条仅向右延伸,直到新的柱形成更高的高点或更低的低点。 我在图表上手动绘制的高点水平线示例
我什至都不知道从哪里开始呢。我有一些用 Pinescript 写作的经验,但没有按照我想要的方式绘制线条。任何帮助将不胜感激。
My question is really two parts.
How do I plot a horizontal line (that extends to the right but not the left) starting at a specific time of the day, outside of trading hours. I want to plot two horizontal lines actually, one on the high and one on the low of the 8am candle of a 10 minute chart. I would like for it to be plotted historically as well.
How do I make it so that the lines that get plotted only extend to the right until a new bar makes a higher high or a lower low. example horizontal line on the high that I manually drew on the chart
I don't really even know where to start with this. I have some experience writing in Pinescript but not with drawing lines in the way I want. Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
var
中以下是
high
的示例:< a href="https://i.sstatic.net/ASSUa.png" rel="nofollow noreferrer">
var
Here is an example for the
high
: