請問各位賢達、小幫手:
需求 : 在1分K環境下,當下這根K棒的委託如果沒有成功(新倉或平倉的請求都一樣),下一根K幫開始時,則自動取消,並重新依策略下指令,寫法是否如下?
//
condition1 =balabalabala;
if filled = 0 then begin //當實際部位為0時,開始委託
if condition1
Then SetPosition(1);
end;
//當上一根委託沒有成立時,則刪除委託
if condition1[1] and position <> filled and position = 1 then setposition(filled);
謝謝各位熱心賢達~
2 評論