Features of the mql5 language, subtleties and tricks - page 205
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
ExpertRemove has not been called.
I see. What's stopping you from handling the deinitialisation codes? They have just the account change in them.
I see. What's stopping you from handling the deinitialisation codes? They have just the account change in them.
Forum on trading, automated trading systems and strategy testing
Peculiarities of mql5, tips and tricks
fxsaber, 2021.06.30 15:45
You should try it. There's a long discussion on this topic at the link above.
ExpertRemove in OnDeinit is an almost meaningless construct.
How confusing :)
Have you tried looking at deinitialisation codes in OnInit()?
Have you tried looking at the deinitialisation codes in OnInit()?
Studied the question seriously. If you want to understand how it works architecturally, you can't do it without trying.
Give it a try. There's a long discussion on the subject at the link above.
I don't see the problem. The moment of account change is highlighted in yellow.
I don't see the problem. The moment of account change is highlighted in yellow.
Was it possible to unload the EA at the account change in this way?
So did you manage to unload the EA when changing account?
Did not solve the problem of unloading, solved the problem with unnecessary alerts (working on the wrong account):
Peculiarities of mql5 language, tips and tricks
fxsaber, 2021.06.30 14:01
This Expert Advisor alerts when I switch accounts. It would seem that it should not do so according to the rule
Didn't solve the unloading problem, solved the problem with unnecessary alerts (work on the wrong account):
Alert needed - to show what's going on. Demonstrates a feature.
Charts opened by the Tester.
<chart> tester=1