Features of the mql5 language, subtleties and tricks - page 103

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
Just wanted to say that maybe using user32.dll instead of kernel32.dll may be faster for linking two terminals using WinAPI, because all implementations I've seen use kernel32.dll.
No way, I don't see why one library should import (or work) faster than another.
Perhaps, in current versions of MQL it is not relevant anymore, but as far as I remember from the old MQL4, these costs were quite significant and sometimes comparable to the speed of execution of functions.
Yes.
Ahh..., well, consider it my whim.
Just like speed, because who is faster comes first, as well as less load on CPU, and thus more resources and time to make a decision.
Quick Implementation of Multisymbol OnTick
When working with an empty Expert Advisor, using a spy on 50 symbols, the log starts to be bombarded with messages:
If I add a filter to the indicator for the frequency of sending castum events of 500 ms, the errors become less frequent, but they do not disappear.
Is it only me?
EA code:
Profiler shows 95% of iCustom time, OnChartEvent takes almost nothing. The processor (i5-3570) is 75% loaded.
When an empty Expert Advisor is working, using a spy on 50 tools, messages start pouring into the log:
Is it just me?
I caught a few of these errors in the beginning. I did not get them further.
The profiler shows 95% of iCustom time, OnChartEvent takes almost nothing. CPU (i5-3570) load 75%.
In Release-version CPU is ~3%.
Caught several of these errors in the beginning. No further errors.
In Release-version CPU ~3%.
I built both indicator and Expert Advisor with "Optimize=1", errors keep appearing.
I added a second pause to the indicator:
Errors remain.
Indicator
Expert Advisor
Increasing the pause does not help much. It starts crashing at 3 seconds.
For unknown reasons, at one point, EventChartCustom stops working. It stalls for about 3 seconds and generates error 4001.
Indicator
Expert Advisor
Increasing the pause does not help much. It started crashing at 3 seconds.
For some unknown reason, at one point, EventChartCustom stops working. Stalls for about 3 seconds and gives an error 4001.
Yes, that seems to be the problem.
Does anybody else have it?
Is it still playing?
It's not.
An hour of work - flight normal.
It does not play.
An hour of work - the flight is normal.
How many instruments in the market review?