我是用10分K且未開啟逐筆洗價,今天卻在16:57買入又賣出又買入

現在是買入了不會停損(設定32點停損,但跌好幾根超過百點還不停損)
9/22 02:50到03:37該停損了吧?

到了03:40才出場,而且竟然是因為出場條件到了而非達到停損條件

以下是停損程式碼
這個移動停損我是依照你們的腳本修改的
---------------------------------------------------------------
//多方移動停損
if Position = 1 then begin
{ 依照成本價格設定停損/停利 }
var: intrabarpersist stoploss_point(0);
{ 計算停損價格 }
if stoploss_point = 0 then begin
stoploss_point = FilledAvgPrice - loss_point;
end;
//如果價格上漲超過38點則啟動移動停損
if Close > FilledAvgPrice then begin
if Close - 38 >= FilledAvgPrice then begin
stoploss_point = Close - loss_point;
end;
end;
if Close <= stoploss_point then begin
{ 停損 }
SetPosition(0);
stoploss_point = 0;
end;
end;
1 評論