Features of the mql5 language, subtleties and tricks - page 189

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
You need to run Timer4 method (highlighted in blue) of CTestTimer class
Didn't get into it.
Forum on trading, automated trading systems and trading strategies testing
Peculiarities of mql5, tips and tricks
fxsaber, 2020.05.14 02:57
I got it again. I assume that this may occur in rare situations when re-logging.
The solution is, if false, to retry after a short pause.
This is a bad solution. Here is a much better solution.
If you do a manual re-login, this EA will still work. Without the highlighted string, it will self-delete.
Didn't get into it.
Thanks for your time. But I wrote above that the method should be non-static. It's clear that this is possible with static methods. A static method is not OOP at all.
Obviously I wanted too much, or rather impossible.
I was confused by the fact that it was possible to do so in C++, but on examining it, I understood that such a pointer has a totally different structure,
https://habr.com/ru/post/333334/
And it's understandable.
A non-static class method has a single implementation, which sits somewhere in memory and affects all objects of the class.
But every object has its own unique current state of internal variables, so such a pointer to a non-static method must also have a filled in parameter structure of the object it's applied to at the moment.
Apologies to all for wasting time.
We need to look for other ways to generally control objects of different classes.
Proof of no solution is also a solution.
Thanks for your time. But I wrote above that the method should be non-static. It's clear that this is possible with static.
You were given two examples above. one with full implementation
You don't seem to have understood my problem.
It has no solution.
You don't seem to have understood my problem.
It has no solution.
Why bang your head against the wall when there's a door next to it? The multitimer problem with a handler call to an external class has been solved.
This fellow here has a solution to your problem as you see it, non-public though.
Why bang your head against the wall when there's a door next to it? The multitimer task with a handler call to an external class has been solved.
It wasn't about the timer.
I was just daydreaming and stupid.
I was just daydreaming and dumbfounded.
I'm all for a full-fledged typedef or the same binds in mql, but that's about it.
Is it possible to distinguish a manually created graphical object from an object created by an indicator or EA?
In the function
Is it possible to distinguish a manually created graphical object from an object created by an indicator or EA?
In the function
You can do it with the left mouse button control.
For example like this: