小幫手您好
我設定currenttime判斷式在指定時段強制平倉多空單,部分程式碼如下
if (currenttime > 045000 and currenttime < 050000 ) then begin
if Position = 1 and Filled = 1 then begin
SetPosition(0);
end;
if Position = -1 and Filled = -1 then begin
SetPosition(0);
end;
end;
執行回測交易後為什麼還是會看到下圖這筆交易呢?(有啟動逐筆洗價),謝謝。
4 評論