Features of the mql5 language, subtleties and tricks - page 181
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
I usually have 1-2 charts on a terminal like this, it's hard to get confused. But the point is clear.
I trade more symbols, more EAs are running. Monitoring non-tradable symbols yet. Custom symbols are created, Tester is running, etc.
A workhorse, in general.Trading more symbols, more EAs running. Monitoring non-tradable symbols yet. Custom symbols are being created, Tester is running, etc.
A workhorse, in general.I have a workhorse only under investor password for all accounts. And it doesn't matter if there are any EAs there or not.
I only have a workhorse under my invest password for all accounts. And I don't care if there are any advisers in it or not.
Advisors are not just for trading. Moreover, you have to be able to trade on a workhorse.
I have ten Terminals. In turmoil at one, I switched to another account. Time passes, I look at the Terminal and see that I need another account - I switch to the old one. And completely without expecting that the EA is hanging, I see that the EA has started.
will this simple code work with account switching?
and will the re-login run this code when the connection is interrupted?
will a simple code like this work with an account change?
No.
will the re-login when the connection is interrupted trigger this code?
Automatic re-login won't. Manual will.
The solution is on the surface. What doesn't change on the graph when you switch it? That's right - the graphical objects. When the robot starts, you create a graphical object, which you delete in DeInit, in the normal situation, respectively, in OnInit check for the object, if it exists, then something went wrong and return INIT_FAILED.
Approximately like this:
The solution is on the surface. What doesn't change on the graph when you switch it? That's right - the graphical objects. When the robot starts, you create a graphical object, which you delete in DeInit, in the normal situation, respectively, in OnInit check for the object, if it exists, then something went wrong and return INIT_FAILED.
Approximately like this:
saving is not a problem, here in general we need to distribute EA initialization correctly, the case of switching accounts is the least of my worries, but how the chart itself is launched and when the chart is not ready is a mystery covered in darkness ))))
checked reading the commentary... it's not smooth - it's not even visible on the "black screen" when switching between accounts on a non-existent symbol ;)
The solution is on the surface. What doesn't change on the graph when you switch it? That's right - the graphical objects. When the robot starts, you create a graphical object, which you delete in DeInit, in the normal situation, respectively, in OnInit check for the object, if it exists, then something went wrong and return INIT_FAILED.
This is something like this:
You may as well use global variables of the terminal. They are not deleted either.
You might as well use the terminal's global variables. They won't be deleted either.
Tastes and tastes... I don't like them...
For taste and colour... I don't like them...
For example I delete all objects on VDS. Just that unnecessary not to load the schedule. And there's no need for them there. I use globals. So it all depends on the situation.