想請教我下段語法,在自動交易的腳本中,尾盤時不會自動平鐺,可否請教是哪裡有誤?謝
//尾盤平倉
if Position > 0
and (
(currenttime > 045000 and currenttime < 045900)
or
(currenttime > 132000 and currenttime < 132500)
)
then
begin
SetPosition(0, MARKET);
print(date,time,"尾盤平倉",FilledAvgPrice);
end;
2 評論