Errors, bugs, questions - page 2589

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
Question on ArrayResize. I make a Reserve for several gigabytes at once. Then I gradually increase Size which is less than initial Reserve.
Why does TaskManager show increase of memory consumption during Size increase?
We don't do anything about it on purpose - it's a feature of the OS (and does the user really need gigabytes?
If you want to have "hot" memory at a critical point in a program, you have to "run" through the pages of the allocated chunk before that point, so that the virtual memory pages of the process get physical ones.
But, from MQL, there is no access to the reserved chunk of the array.
We don't do anything for this on purpose - it's a feature of the OS (and does the user really need gigabytes?
If you want to have hot memory at a critical point in a program, you have to "run" through the pages of the allocated chunk before that point, so that the process's virtual memory pages get physical ones.
But, from MQL, there is no access to the reserved chunk of the array.
Thanks. I wonder how the performance should be affected if doing a full ArrayResize on gigabytes at once.
Tested, ran a full overshoot while optimising my EA for 5000 passes, counted just from the tester's log
1. 14:04:28.365 - 14:15:47.481 = 11 m 19 sec
2. 13:49:56.885 - 14:00:30.819 = 10 m 34 sec.
3. 14:28:35.89 - 14:41:11.659 = 12 m 36 sec
in principle, as expected option 2 is faster, for 5000 runs the gain is about 30 seconds, also pretty good
Please help to call this menu through WinAPI.
I can get the line with the selected EA name. There is only one line in ComboBox, unlike in MT4.
But I can't call the menu. BM_CLICK does not work.
How do you use Messages in x64?
Solved the problem using WM_LBUTTONDOWN.
int Array0[] = {};
Basically as expected option 2 is faster, for 5000 passes the gain is about 30 seconds, not bad either.
It would be nice to have a thread where similar results would be compiled. For the Optimizer is relevant.
It would be good to have a branch where similar results would be collected. It's relevant to the Optimizer.
I support it, it's not the first time I've tested and posted results in the middle of nowhere
but I'm not ready to open a branch.... bad education, a sense of responsibility will overwhelm me, but to keep the topic up to date... I'm not sure that I will be able to (((
ZS: following the example above.... yesterday didn't decide to write this thread again in example #2 SymbolInfoTick() toSymbolInfoInteger(_Symbol, SYMBOL_TIME)
ZZZY: here's an example where I use, it's more convenient for me in the optimizer to look for time with a sample rate of 5 minutes - fewer passes, so the time in the optimizer generally made 2 bytes in ushort, if 0 - then this option is not used, I have more - to check how to work with bytes, but not now - in my example once in OnInit() I split bytes - not critical
usage:
i.e. the result of the Disable() method - très not working time, falce - working
It would be good to have a branch where similar results would be collected. It is relevant for the Optimiser.
Can I have some details: why SocketTlsReadAvailable () returns error (5273 ERR_NETSOCKET_IO_ERROR) when Socket is connected (SocketIsConnected () returned true)?
Forum on Trading, Automated Trading Systems and Strategy Tests
Bugs, bugs, questions
Alain Verleyen, 2019.08.29 01:17
About mql SocketXXX functions () this message is mainly intended for Metaquotes developers: @Renat Fatkhullin, @Slava, @Ilyas
I am using the code below to control message reception over a secure connection.
Most of the time it works correctly. However, occasionally I would get an error message although the socket is connected, and after some time (1 to 5/6 errors) it keeps working.
... data / messages received correctly
2019.08.29 00: 45: 43.019 XXXX (EURUSD, H1) ERROR: 5273, socket (1), read: len = 437
2019.08.29 00: 45: 43.237 XXXX (EURUSD, H1) ERROR: 5273, socket (1), read: len = 1242
... data / messages received correctly
Error 5273 is very common and does not help much. Is it possible to get more information about such errors?