Estoy tratando de mover mi stop loss para romper en mi EA con el siguiente código:

Código insertado/Mover Stop Loss para romper incluso si (OrderType () == OP_BUYSTOP) {if (bid gt; = OrderOpenPrice () (SLToBreakEvenPercent * TakeProfit2) OrderStopLoss () lt; OrderOpenPrice ()) {OrderModify (OrderTicket () , OrderOpenPrice (), OrderOpenPrice (), OrderTakeProfit (), 0, CLR_NONE); }} if (OrderType () == OP_SELLSTOP) {if (ask lt; = OrderOpenPrice () - (SLToBreakEvenPercent * TakeProfit2) (OrderStopLoss () gt; OrderOpenPrice () || OrderStopLoss () == 0)) {OrderModify (), OrderOpenPrice (), OrderOpenPrice (), OrderTakeProfit (), 0, CLR_NONE); }}
El stop loss se moverá, pero la ganancia original no se está estableciendo. Modifica solo el límite de pérdidas en el pedido y no la ganancia. Cualquier idea sería apreciada grandemente