The Sell order request could not be completed -error:4756

 

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

 

Try to read here.

https://www.mql5.com/en/forum/5431#comment_123771 

It might help you 

 
alexvd:

Try to read here.

https://www.mql5.com/en/forum/5431#comment_123771 

It might help you 

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.
Reason: