Pine脚本在一天结束时关闭所有位置
我的问题是,我无法在一天结束时关闭我的开放位置,因为我正在使用Ranko图表模式。如您所知,在Ranko蜡烛时间没有修复,因此我如何在特定时间使用Pine脚本中的IST时间退出。
在没有renko图表的情况下,我正在使用此代码退出毒药
if (hour==15 and minute==29)
strategy.close_all("Day Close")
my problem is that I cannot close my open position at the end of a day because I am using the ranko chart pattern. as you know in ranko candle time is not fixed so how can I use IST time in pine script to exit every day at a particular time.
in without Renko chart, i was using this code to exit poison
if (hour==15 and minute==29)
strategy.close_all("Day Close")
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在标准烛台图表上运行您的策略,并从那里请求Renko信息。然后,您可以像平常一样关闭位置。
Renko示例:
Run your strategy on standard candlestick chart and request renko information from there. Then you can close positions as you normally would do.
Renko example: