請問一下大神假設進場點如下:
if Position = 0 and short_condition then begin
setposition(10*Amount/c); 最後不確定買到幾張的情形下如果要停損是改成下列這樣子嗎
if Position >0 and Filled >0 then begin.....(不確定的是這一行要怎麼編寫)還是if Position = 1 and Filled = 1 then begin
if loss_percent > 0 and Close <= FilledAvgPrice*(1-0.01*loss_percent) then begin SetPosition(0);
2 評論