Thanks Alex! That helped!
I was having this same error I solved by calling my function CheckForModify() before CheckForClose ();
if (SelectPosition ()) { CheckForModify (); CheckForClose (); } else { CheckForOpen (); }
In my case this error 4756 is caused because SelectPosition() identifies that there is an open position soon after CheckForClose() close the order and finally CheckForModify() tries to change a position that has already been closed.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Dear Experts,
could you pls help me on this one? What might be the reason for this error?
I checked "OrderCheck(mrequest,mcheckresult)" and I receive error 10013 - any idea?
Best