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
Strange. You need code for MQL5, which should already be on the website. All you have to do is look it up. That's exactly what I'm talking about.
But that's up to you.
It's a very tedious search, maybe someone will just tell you.
By the way, I have remade this code for mql5. Maybe someone could use it.
please comment:
ENUM_TRADE_RETURN_CODES
Code ID Description
10004 TRADE_RETCODE_REQUOTE Request rejected
10006 TRADE_RETCODE_REJECT Request rejected
...
no code 10005. Is this not an error?
Respectfully ...
Question. There is a function called GetTickCount () - itreturns the number of milliseconds elapsed since the system started. The note says that "the count is limited by the resolution of the system timer. Since the time is stored as an unsigned integer, it overflows every 49.7 days when the computer is running continuously".
And what happens after the counter overflows? Does it reset and start a new countdown, or does the system freeze?
Yedelkin:
What happens when the counter overflows? Does it reset and start a new count, or does the system freeze?
It overflows and starts from scratch.
Question. The description of switch(expression){...} says that "the switch operator's expression must be of integer type". I've seen the description of this operator with expressions of other types on the Internet. Will the use of switch operator be extended by adding expressions of string type?
Question. The description of switch(expression){...} says that "the switch operator's expression must be of integer type". I've seen the description of this operator with expressions of other types on the Internet. Will we extend use of the switch operator by adding expressions of the string type?
No, unfortunately, it won't. For string types only if ... else if ... else .
Using integer types in switch will speed up the switch operator several times as much as if
No, unfortunately it won't. For string types only if ... else if ... else
Using integer types in switch will speed up the code several times as much as if
Question. The StringConcatenate() function description says that "StringConcatenate() works faster and more economical in memory than string linking by means of addition operations due to the fact that temporary variables of string type are not used". I used the examples from the Reference Manual, changing them slightly:
The output is:It turns out that StringConcatenate works slower than string binding using addition operations. What is the problem?
Question. The StringConcatenate() function description says that "StringConcatenate() works faster and more economical in memory than string linking by means of addition operations due to the fact that temporary variables of string type are not used". I used examples from the Reference, changing them a bit:
I got the output:It turns out that StringConcatenate works slower than string binding using addition operations. What's the snag?
It's a bit of a misnomer to check (if I understand it correctly). The trick of the function is something else...
Approximately this code
And this result
PS
Most likely, the line d= "" should have been placed in the for loop, but I don't think this bug has much effect on the result.