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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
thanks
Marshall