你好, 白天留一口期貨空單, 晚上18:50寫XS進自動交易中心排程(14:50~05:15)去列印 "filledAtBroker", & "Position",最後4筆結果如下:
20241223 18:00:00 filledAtBroker 0.000000 position 0.000000
20241223 18:15:00 filledAtBroker 0.000000 position 0.000000
20241223 18:30:00 filledAtBroker 0.000000 position 0.000000
20241223 18:45:00 filledAtBroker 0.000000 position 0.000000
20241223 19:00:00 filledAtBroker 0.000000 position 0.000000
我的問題: 在自動交易中心顯示的目前部位與顯示部位都是-1,表示我留的是空單1口,無誤。 但為何XS印出來的filledAtBroker 與position 都是 0.000000?
//我的 XS ~~~~~
value1=0;
if value1=0 then
begin
print(file("c:\users\user\desktop\xs\print\[scriptname].log"),
numtostr(date[1],0), timeToString(time[1]),
"filledAtBroker", filledAtBroker, "position", position);
value1 += 1;
end;
7 評論