![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Regarding the presented source code
If you want speed, you should give up on this monster, because you are slowing yourself down.
This measuring tool is unsuitable because it introduces a huge error
In my script I put
Here's the log for 5 iterations.
Less than 2 milliseconds.
The developers, by their silence, have fully acknowledged two problems.
The developers have admitted by their silence that there are no problems.
Here is the log for 5 iterations
Less than 2 milliseconds.
Your script.
Machine.
The developers have admitted by their silence that there are no problems.
Handsome! Is it normal for ticks to come in with less time than in the Market Review before?
Handsome! Is it normal for ticks to come in with less time than in the Market Review before?
Normal.
I answered this question 5 days ago, in the same thread:
SymbolInfoTick sends data received from the broker's server. What the server sent is what you get.
If there are questions about the tick stream broadcasted by your broker, you should contact your broker.
The Expert queue is a lockable resource. When an event is written to the queue, the Expert Advisor waits (unless of course the Expert Advisor is currently processing an event)
Events for the Expert Advisor come from the event queue of the corresponding chart, which in turn comes from the processing cycle of the corresponding symbol. And this loop of processing not only distributes events to its own charts, but also does a lot of other things.
I have already told you that Windows is not a real-time operating system.
The task is very simply formulated: how to write an Expert Advisor that will not slow down while waiting for a queue? You cannot use an infinite loop because Sleep is a brake. So, asynchronous mode will not work at all. Now catching waits in the form of long milliseconds is not the point at all.
Your script.
And for 10,000 iterations?
And for 10,000 iterations?
I invite others to share the result of running this script on their machine.
That's fine.
I answered this question 5 days ago, in the same thread:
SymbolInfoTick sends the data received from the broker's server. What the server sent is what you get.
If there are questions about the tick stream broadcasted by your broker, then you should contact your broker.
That is why I am asking the question to the owners of MQ-Demo.
The problem is very simply formulated: how to write an EA that won't slow down when waiting for a queue? An infinite loop is impossible, because Sleep is a brake. And asynchronous mode will not work at all. Now catching waits in the form of long milliseconds is not the point at all.
Do not deceive yourself and those around you.
All your statements here describe quite a different task: how to write an Expert Advisor that won't feel sluggish on a 9 year old heavily loaded hardware.