The EA I wrote three months ago can not pass the strategy testing now, but it used working well two or three months ago!! - page 4

 
Alain Verleyen:

I can't see why it doesn't work.

Can you try again, now ? It's still not working ?

i have unsupported filling mode problem,

but so strange is the ea can work fine on alpari mt5, but not in vantage mt5 platform.

 
forextime8:

i have unsupported filling mode problem,

?

but so strange is the ea can work fine on alpari mt5, but not in vantage mt5 platform.

Show your code if you need help.
 
Alain Verleyen:
?Show your code if you need help.
thanks.
 
Comments that do not relate to this topic, have been moved to "Error 10015 ?".
 
I know how to solve your problem 
 
Your code is ok there is only one reason 😂
 
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.