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

To add comments, please log in or register
TradeMachine
48
TradeMachine  

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

Alexey Da
6489
Alexey Da  

Try to read here.

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

It might help you 

TradeMachine
48
TradeMachine  
alexvd:

Try to read here.

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

It might help you 

Thanks Alex! That helped! 

Fabio Fontes
53
Fabio Fontes  
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.
To add comments, please log in or register