在做指標的智能交易評測時,部分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;
圖中黃圈處缺少交易,無法以當天的收盤價買入。