if currenttime > 131500 and currentTime < 134500 then begin
if position=-1 and (Close - FilledAvgPrice)<=0 then SetPosition(0, MARKET);
if position=-1 and (Close - FilledAvgPrice)>0 then SetPosition(1, MARKET);
end;
在使用上面CODE時發現回測時如果遇到if position=-1 and (Close - FilledAvgPrice)>0 then SetPosition(1, MARKET);他都會變成隔一天的131500到134500之間執行 請問是我的方法或是邏輯哪裡有錯誤嗎
2 評論