請問有高手有遇過或知道為什麼 setStopLoss 在回測時最後一筆單無法生效嗎?
如圖在 38 時有停損 10 點. 但最後一筆卻留單沒有停損? 是我哪裡寫錯了嗎?
if condition99 then begin
Buy ( "Roc AutoTrade GE" ) next bar at market ;
setStopPosition;
setStopLoss(10 * bigpointvalue);
setDollarTrailing(10 * bigpointvalue);
end