麻煩請小幫手協助一下....感恩
if Position <= -1 and Filled <= -1 then begin //目前台指期持有空單1口
if profit_point > 0 and close <= FilledAvgPrice - profit_point then begin //觸發停利價位
SetPosition(0, open - 10);//執行平倉,以開盤價 -10點掛單
end else if Position = 0 and TrueAll(Position <> Filled, 3) then begin
SetPosition(0, market);
我想要:經過3根K棒沒成交,則以範圍市價直接出場,可是我上面語法寫這樣卻沒有刪單,導致當沖單變成會留倉到隔日開盤出場
 
            
        
        
            
2 評論