請問我策略A符合條件,委賣-2,當成交後馬上掛委買單,
if position=0 and filled=0 and A then setposition(-2, CloseD(1)*1.06);
end;
if filled<0 then setposition(0, CloseD(1)*1.02);
end;
問題:
1.都成交這個程式沒問題
2.委賣沒成交或剩1張,想在10點以前刪除沒成交的委賣
3.因為委賣成交馬上掛委買單,可能不會成交委買單,須掛單到13:00,若還是沒成交就用市價買回
以上不知如何繼續增加程式撰寫,請協助,謝謝
4 評論