Errors, bugs, questions - page 2839

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
On charts (particularly EURUSD) with monthly and weekly timeframes, the crosshair moves very slowly following the cursor - just move the cursor smoothly diagonally to play. It is OK in other timeframes. There was no such delay before
Execution error:
Result: 1-2-2-0-0-0
Expected result: 1-2-0-0
as in C++. Also, the syntax was expected to be consistent: a cast is a cast, not a constructor call
Everything seems to be correct, I think. The move constructor is probably called there, which in MQL is replaced by copy.
(A)a1 or A(a1) is not a cast, it is a declaration of a type like in the docs. Although now there is something wrong with brackets. A single format is needed for the language.
(A)a1 or A(a1)type conversion A a1 is not a conversion, but a type declaration like in the docs. Although now there is something wrong with brackets. A common format is needed for the language.
The difference here is that in pluses (A)a1 means bringing in a copy of an object. And in MQL it is the reference conversion. Because of this, one can encounter compatibility issues.
Not si not python) something in between. Oops, didn't know, figured the object type conversion. Economy).
Everything seems to be correct. It's just that the move constructor is probably called there, which in MQL is replaced by copying.
I doubt it's right, because let's say:
The result in MQL: 3
and in C++: 1.
In any case, have them check
I doubt that this is correct, because let's say:
The result in MQL: 3
and in C++: 1.
In any case, have them check
I doubt that this is correct, because let's say:
The result in MQL: 3
and in C++: 1.
In any case, let them check it.
I wouldn't be so definite when interpreting MQL code in C++.
Code for C++ (online: https://onlinegdb.com/Hy1FIj9Qv):
I wouldn't be so unambiguous when interpreting MQL code in C++.
The code is for C++ (online: https://onlinegdb.com/Hy1FIj9Qv):
And how do you propose to write the 3rd version of g_cast in MQL ?
And how do you propose to write the 3rd version of g_cast in MQL?
You can explicitly call the function from the base class: