Features of the mql5 language, subtleties and tricks - page 309
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
Wrong!
I write in the Russian-language thread, which is automatically translated into the English-language thread that you read.
Unfortunately, deleting the erroneous post in the Russian-language thread had no effect on the English-language thread.
Maximum Optimization:
Faster access times are due to the generated jump table under the full optimization mode.
No Optimization:
A simple and reliable piece of code to generate a full 32-bit unsigned random number in [0, UINT_MAX]:
we can also use it as functions
Old bug coming back again.
No proof given, but printf() to the expert-journal is again truncating strings to be printed, abitrarily.
Obviously the limit of printing strings beyond size of 16K is again truncated, as it was quite some builds ago, and now came back. - Only possible fix is round about this:
Above code actually needs more complex wrapping with templated calls, such that you can pass through StringFormat() before sending your string to above function.
Examples for this Bug have been given before, please search the forum, if you are in doubt of my findings and reporting.
I needed to determine the length of the test interval.
I couldn't find it on the forum, so I wrote such a function.
It seems to show correctly.
Couldn't find it on the forum, so I wrote such a function.
We needed to determine the length of the testing interval.
I couldn't find it on the forum, so I wrote such a function.
It seems to show correctly.
What is the point of such contrivances?
The result is the same
Why all the fancy stuff?
The result is the same
Forum on trading, automated trading systems and testing trading strategies
New version of MetaTrader 5 build 5200: OpenBLAS extension and increased control in MQL5
Ilyas, 2025.08.04 14:08
To be clear, the operation 'TYPE NAME = INITIALIZER' will no longer be split into two operations DECL + ASSIGNMENT, but will remain a single 'DECL [has initializer]'
If you need to declare a variable and call the = operator for it, split the operation into two parts manually: DECL; ASSIGNMENT; (yes, you will have to part with the variable constant).
Similarly.
If there is a need to initialise a static object through a copy operator, it can be done by this technique.
Forum on trading, automated trading systems and testing trading strategies
Peculiarities of mql5 language, subtleties and techniques of work
fxsaber, 2025.08.26 08:32