Errors, bugs, questions - page 1210
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
Are the copy constructor and assignment operator even planned in any future???
The copy constructor is mentioned in the help at https://www.mql5.com/ru/docs/basis/types/classes
A default constructor has a specific purpose in initialising an array of objects of its class. A constructor whose parameters all have default values isnot a default constructor. Let's show this with an example:
assignment operator at all planned in any future???
There is an overloading at https://www.mql5.com/ru/docs/basis/function/operationoverload.
To make it easier to read and write code, overloading of some operations is allowed. The overload operator is written with theoperatorkeyword . Overloading of the following operations is allowed:
Sorry for being inaccurate and for being vague about what I wanted to do.
Конструктор копирования и оператор присваивания вообще планируются хоть в каком-то будущем???
Basic class A has 15 fields, from it two descendants B and C - each has +5 more fields.
And the rest is a 20 minute quest.
I wanted to ask aboutimplicit copy constructors and assignment operators.
If they are there and I still haven't figured out how to use them, please poke your nose in (I'd appreciate it).
I know about explicitcopy constructors and assignment operators, and I've used them,
But i've wasted a lot of time, as it seems to me(i had a lot of fields, much more than in example),
though I used the best way of implementation (by reusing base class code).
I apologise for being inaccurate and wording loosely what I wanted.
I wanted to ask aboutimplicit copy constructors and assignment operators.
So I've got it wrong and the answer above was correct.
Yes, we will, but it's not in our immediate plans yet.
Thanks for the reply, that's exactly what I've done now. Apparently because the graphical construction is DRAW_NONE and the indicator is in a separate window, the two construction properties overlap, which causes the data in the subwindow to disappear. But if we use INDICATOR_CALCULATIONS, the data of buffers 1 and 2 will not be shown in the data window, but they can be accessed from the EA. We will have to sacrifice the data window)
This is not about DRAW_NONE. Your buffer data is three orders of magnitude different, so the MACD is simply not visible against the price (scaled). It is on the screen though))
MT4 711 build
The script opens two new charts and runs 2 other scripts on them.
About once in 10 runs it crashes (I don't see the pattern):
What could it be from? What does 6 in "Invalid EX4 file (6)" mean?
Thank you.
MT4 711 build
The script opens two new charts and runs 2 other scripts on them.
About once in 10 runs it crashes (I don't see a pattern):
What could it be from? What does 6 in "Invalid EX4 file (6)" mean?
Thanks.
We are investigating a similar problem - running with a configuration file. Sometimes EA fails to start with similar symptoms.
We haven't found the cause yet. As soon as we find it, we will fix it right away.
We are investigating a similar problem - launching with a configuration file. Sometimes EA fails to start with similar symptoms.
We haven't found the cause yet. As soon as we find it, we'll fix it
A small delay between function calls to startSleep(50) scripts helped me;
Maybe the problem is different threads accessing the same program at the same time to load it
Insert mutex))