OnBarClose() 这个事件在历史回测中,最后一件BAR不会触发,有什么替代方法
这个代码执行不了,想在有实时数据时,每个BAR只执行一次,而不是每个tick执行 OnBarClose(ArrayRef<Integer> indexs) { If (BarStatus==2) { For i=1 to n { p2 = pk2[CurrentBar-x]; p1 = pk1[CurrentBar-x]; p3 = Max(p1,p2); p4 = Min(p1,p2); xx = i+(CurrentBar-pbar)-1; PlotNumeric("Dfz",p2,0,IIF(p2>p1,Red,Green),xx); x = pbar[CurrentBar-x+1]; } } }