会话开始后,如何使用bar_index绘制第一个栏?
我想在市场开放后从1号开始标记每个栏。因此,在这里市场开放了上午9-15,例如选定的时间表为3分钟。因此,我想将第一个栏标记为1,然后将第二个栏标记为2 ..
我看着 a>和 this 。但是对我来说,我想从下一个开口开始再次重新启动标准编号,因此它无济于事。谁能提供一些想法,该如何继续?
I would like to label every bar starting from number 1 after market opens. So here market opens 9-15 AM IST, and for example selected timeframe is 3 mins. So I would like to label the first bar as 1, then second bar as 2.. so on until the market hour ends which is 3-30 PM IST.
I looked at this and this. But for me I want to restart the bar numbering again from next opening, so it is not helping me. Can anyone offer some ideas how can I proceed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
input.session()
+time()
函数声明会话,请注意,您还可以使用IANA时区格式指定正确的时区。mycount varialbe将在会话结束时重置,否则计数以下每个栏:
You can declare the session using the
input.session()
+time()
functions, note that you can also specify a correct timezone using the IANA time zone format.myCount varialbe will reset at the end of the session, otherwise count every bar in: