在做指标的智能交易评测时,部分K线缺少交易,语句如下:
If open>ref(close,1) Then Buy this bar OpenD;
If close<=ref(close,1) Then Sell this Bar close;
If close<=ref(close,1) Then Sell Short this Bar close;
If open>ref(close,1) Then BuyToCover this bar OpenD;
图中黄圈处缺少交易,无法以当天的收盘价买入。