Features of the mql5 language, subtleties and tricks - page 90
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
Here is a variant using a high-resolution winapi timer, giving an accuracy of 5.6e-13 seconds.
What are you talking about? It turns out that the frequency is 1786 GHz. This is already a frequency of infrared radiation. :))
You just mixed up the frequency with the counter there.
It's really 3.8e-07 seconds. That is about a third of a microsecond. Not significantly different from the MQL
What are you talking about? It turns out that the frequency is 1786 GHz. And this is the frequency of infrared radiation. :))
You just mixed up the frequency with the counter there.
It's really 3.8e-07 seconds. That is about a third of a microsecond. Not much different from MQL.
Yes, that's right, I got it wrong.
Yes, that's right, mixed up)
Although this is a real solution.
So this is still a bug, which for MQ is not difficult to fix.Checked it - their counter does not react to local time change.
So if I need microseconds and use them for long period of time then please useKernel32.dll
Thank you!
We need to send collective requests to the service-desk. Because otherwise it's useless. They even stopped responding to compiler bugs. There are plenty of requests, but all to no avail.
In the same way, I ask them to create millisecond TimeLocal and TimeCurrent (especially the second one, because it's problematic to implement it by myself).
There is a benefit, you can use it to offload the GUI, for example here:
Canvas class object for the whole chart, drawing data in tables, cluster data, levels, etc., if OnTimer is turned up to the maximum and place the GUI there (and I always do so), without time delay one chart loads my VPS about 45-60%, if you do a delay of 250, then everything is normalized to a minimum, the graphics responds to the buttons clearly, the system is not loaded
Here is a variant using a high-resolution winapi timer, giving an accuracyof 3.8e-07 seconds.
This is how we count microseconds
Renat, can you fix binding to local time GetMicrosecondCount()?
Because the consequences can be very unpredictable for those who don't know this feature.
No, it's a relative timer for precise measurement of time intervals, not astronomical time.
Thank you, I will know.
I was misled by the reference.
This is how we calculate microseconds.
Why don't we calculate GetTickCount in the same way? Then the problem of 15 ms resolution, which is causing problems, will disappear.