New MetaTrader 4 Client Terminal build 402 - page 16

 
Scriptong:
Still: How do I determine programmatically that counter-closing is forbidden? The question is addressed to the developers.
If this is indeed the case, there is no way to determine this programmatically. Only by trial and analysis of the obtained result. It is possible before running the Expert Advisor on an account.
 
Rosh:
If it is really true, there is no software way to determine this. Only by trial and analysis of the result. You can do it before you start the Expert Advisor on the account.

Did I understand correctly that if I get error 3 when I call the OrderCloseBy function, this is an indication that a counter-close is prohibited? Is it possible for this error to occur after applying OrderCloseBy under any other circumstances?

What does it mean: "You can still do it before running the Expert Advisor on the account"? It is no longer a program method, because it requires the participation of the person who decides to run such an Expert Advisor on the account.

Reason: