如何使用 PineScript 与 14:50 的最新图表进行交易?
Pine脚本中的默认值是该订单是在购买或出售后在下一个栏上执行的。我希望该命令在同一天14:50执行。我该怎么做?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
Pine脚本中的默认值是该订单是在购买或出售后在下一个栏上执行的。我希望该命令在同一天14:50执行。我该怎么做?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您可以将
process_orders_on_close
设置stragity()
函数的属性属性 true 如果您希望将订单放在bar上。然后,您可以使用
小时
和minute
indent-variables来找出时间并执行订单。另外,您可以定义交易会并在代码中使用它。
You can set
process_orders_on_close
property of thestrategy()
function totrue
if you want your orders to be placed on bar close.Then you can use the
hour
andminute
built-variables to figure out the time and execute your order.Alternatively, you can define a trading session and use it in your code.