关于OnBarClose()回溯的问题
看交流区以往的帖子OnBarClose是支持回溯的,在5分钟周期上运行如下代码: OnInit() { timePoint = [0.145958]; SetTriggerBarClose(timePoint); } OnBar(ArrayRef<Integer> indexs) { // 开仓代码 ..... } OnBarClose(ArrayRef<Integer> indexs) { If(MarketPosition == 1) { // 平仓代码 } If(MarketPosition == -1) { // 平仓代码 } } 5分钟周期回测时发现每根K线都有执行OnBarClose,而不是14:59:58这个5分钟Bar执行OnBarClose,具体要如何修改,谢谢