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
Still: How do I determine programmatically that counter-closing is forbidden? The question is addressed to the developers.
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.