Vars: stop_loss(0);
iF 符合進場條件 then begin
setposition(部位,價格);
stop_loss=minlist(L,C[1]); // 進場日 K棒的低點 和 昨收取MIN ,即真實低點
end;
if postion=filled and position<>0 and C<stop_loss then setposition(0,market); // 日k下,之後盤中破真實低點 就出場
回測跑出來不太正確,不知道哪裡有問題
再請指點,感謝。
7 評論