I keep getting err code 1 when my EA modify orders,
See https://docs.mql4.com/trading/errors
| ERR_NO_RESULT | 1 | OrderModify attempts to replace the values already set with the same values. One or more values must be changed, then modification attempt can be repeated. |
Try looking to see if your stop is already moved: if (OrderProfit()>=SecureProfit && OrderMagicNumber() ==2 && (OrderStopLoss()<OrderOpenPrice())) { OrderModify(OrderTicket(), OrderOpenPrice(),(OrderOpenPrice()+ movestop*Point), OrderTakeProfit(),0, Red); }The error 1 is telling you that you have already moved your stop to where you are currently trying to move it to now. It's looping and trying to move the stop, but it's already done that.
thanks
Marshall