Saya cuba menggerakkan stop loss saya untuk memecah walaupun dalam EA saya dengan kod berikut:
Kod yang dimasukkan/Pindah Stop Loss to Break Walaupun (OrderType () == OP_BUYSTOP) {if (bid gt; = OrderOpenPrice () (SLToBreakEvenPercent * TakeProfit2) OrderStopLoss () lt; OrderOpenPrice () , OrderOpenPrice (), OrderOpenPrice (), OrderTakeProfit (), 0, CLR_NONE); }} if (OrderType () == OP_SELLSTOP) {if (ask lt; = OrderOpenPrice () - (SLToBreakEvenPercent * TakeProfit2) (OrderStopLoss () gt; (), OrderOpenPrice (), OrderOpenPrice (), OrderTakeProfit (), 0, CLR_NONE); }}
Stop stop akan bergerak tetapi keuntungan ambil asal tidak ditetapkan. Ia mengubah hanya stop loss pada pesanan dan bukan keuntungan ambil. Sebarang idea akan sangat dihargai.