照範例腳本寫了一個語法if Position = 1 and Filled = 1 then begin
{ 依照成本價格設定停損/停利 }
if profit_point > 0 and Close >= FilledAvgPrice + profit_point then begin
{ 停利 }
SetPosition(0) and begin SetPosition(1) ;
end else if loss_point > 0 and Close <= FilledAvgPrice - loss_point then begin
{ 停損 }
SetPosition(0);
end; 如果交易是達到停利標準 出場後 馬上再次進場 語法該怎麼寫 比較好
目前的困擾是 如果停利點設 太大 洗盤局可能會被洗出場 設太小 趨勢盤 抓到少
如果可以 每次進場獲利 後出 場 完再次進場 再配合停損 策略 似乎可以達到最大效益
5 評論