請問一下,圖中的達欣工程有順利觸發停損條件,但台肥的停損觸發沒有成功,會是什麼原因?
主頻率:日K
洗價方式:逐筆洗價
策略部位:延續前次執行+自動執行有部位商品
variable: _oncePerBar(0);
input:profit_percent(2,"獲利%");
input:loss_percent(3,"損失%");
//=========進場區=========
if position=0 and filled=0 and _oncePerBar =0 and (FilledAtBroker + 1) <= filledUpLimit
and condition2 and condition10 and (condition12 or condition13) then begin setposition(1,market);
_oncePerBar=1;
end;
end;
//=========出場區=========
if position=1 and filled=1 then begin
if close>=filledAvgPrice*(1+
end else if close<=filledAvgPrice*(1-loss_
end;
6 評論