Features of the mql5 language, subtleties and tricks - page 315
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
In all constructors/destructors, write this line.
Then you will see the sequence of all calls in the log. And the picture will be formed.
or it will break :-)
when the "default constructor" is called without warning and declaration of war....
PS/ C++, Pascal, whatever, but should be BEFORE mql.
PS/ C++, Pascal, whatever, but should DO mql.
I know only MQL5 - normal flight.
The optimal array type for reading byte information is uint[].
It is interesting that AVX-code is slower than x64-code.
The optimal array type for reading byte information is uint[].
With compiler optimisation?
Yes.
Try using ulong.
I tried different variants: ulong, struct, union. The best of the lowers showed performance like uint.
Yes.
I tried different variants: ulong, struct, union. The best of the lowers showed performance like uint.
2025.10.29 08:53:45.911 393227-3143 (EURUSD,H1) X64 Regular UCHAR: 391609 : 2147483640
2025.10.29 08:53:46.198 393227-3143 (EURUSD,H1) X64 Regular UINT: 287708 : 2147483640
2025.10.29 08:53:46.487 393227-3143 (EURUSD,H1) X64 Regular UNION32: 288293 : 2147483640
2025.10.29 08:53:46.681 393227-3143 (EURUSD,H1) X64 Regular UNION64: 193904 : 2147483640
2025.10.29 08:53:46.928 393227-3143 (EURUSD,H1) X64 Regular ULONG: 246861 : 2147483640
2025.10.29 08:55:48.715 393227-3143 (EURUSD,H1) AVX UCHAR: 401309 : 2147483640
2025.10.29 08:55:49.005 393227-3143 (EURUSD,H1) AVX UINT: 290088 : 2147483640
2025.10.29 08:55:49.296 393227-3143 (EURUSD,H1) AVX UNION32: 290388 : 2147483640
2025.10.29 08:55:49.490 393227-3143 (EURUSD,H1) AVX UNION64: 194669 : 2147483640
2025.10.29 08:55:49.756 393227-3143 (EURUSD,H1) AVX ULONG: 265811 : 2147483640
I don't see any array vectorization code. That's why AVX did not decrease the execution time
I read somewhere about constructors and destructors. The order of creation and destruction, but I can't find it....