Discussion of article "MQL5 vs QLUA - Why trading operations in MQL5 are up to 28 times faster?"
Please do another MT5 speed test on a real account
Forum on trading, automated trading systems and testing trading strategies
fxsaber, 2016.09.13 11:11 AM
if through OrderSendAsync send two limiters (BuyLimit1_price < BuyLimit2_price) inside the spread, will the exchange generate two consecutive ticks with bid-price improvement at the same time (with 1ms accuracy)?
Comments from political haters on this article
- smart-lab.ru
//--- skip the first ticks for initial queue clearing and warming up tickcounter++; if(tickcounter<ExtSkipFirstTicks) return;
Clarification is required about the effect of queuing and warm-up on performance.
MQL5 language itself : when we are talking about milliseconds and even more so about microseconds, the speed of the automation language itself starts to take a significant part in latency.
If a trader uses interpreted languages such as QLUA/EasyLanguage, he simply loses milliseconds on strapping and is not even aware of it. Not to mention that his programme from the core of the platform can receive notifications about market activity with significant delays of hundreds of microseconds or even milliseconds.
That's why we spend so much effort on optimising MQL5 and step by step lick out bottlenecks, winning tens and hundreds of microseconds.
Recently, we have shown the speed of data display in three terminals Quik, MetaTrader 5 and SmartX on MOEX.
You should watch the market opening from 00:50 approximately: the winner is immediately visible
Forum on trading, automated trading systems and testing trading strategies
Renat Fatkhullin, 2016.09.01 20:29
We have a pure transaction based data delivery mechanism unlike our competitors with snapshot based. That is why all single transactions (ticks are also transactions) are delivered instantly and without delays.
For example, Quik's charts live their snapshot-based life in isolation from the ticks flow. That's why charts there are visually slow compared to MetaTrader. The stack in Quick is updated up to 5 times slower compared to MT5 - we have measured it for sure. Most likely, updates are also snapshots, so as not to overload the terminal and infrastructure.
And we honestly stream all data transactionally without delays and snapshots.
Мы записали на видео все три теста одним роликом, чтобы было видно:
- trading operations were conducted on the same real account;
- and on the same instrument Si-9.16;
- on the same computer;
- trades were executed at the same time;
- under the same market conditions;
- the rates of stack updates were measured on the same instrument and at the same time;
- the network latency to Openreach's servers was 2 ms.
This, unfortunately, is not true. It should have been measured at the same time and shown on the video.
You can run MT5 on a calm market and QUICK on news. And the indicators will be completely different.
Clarification is needed about the effect of queuing and warm-up on performance.
If you watch this video, you will see that before the start of a trading session there are several single updates of the stack. Therefore, the script skips the first N ticks to make sure that there is a real raft of orders in the stack. And only after that it starts counting ticks.
That's unfortunately not true. It should have been measured at the same time and shown on video.
All tests were taken sequentially in one piece at a time to keep the measurements clean.
Then the conclusions regarding glasses can logically be questioned.
If you watch this video, you will see that before the start of a trading session there are several single updates of the stack. Therefore, the script skips the first N ticks to make sure that there is a real raft of orders in the stack. And only after that it starts counting ticks.
The video shows the beginning of the session. And the video from the article shows the very "juice". And
input ulong ExtSkipFirstTicks=10; // number of skipped ticks on start
the number is not enough for the beginning of the session. Please explain what "queue" and "warm-up" are.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article MQL5 vs QLUA - Why trading operations in MQL5 are up to 28 times faster? has been published:
Have you ever wondered how quickly your order is delivered to the exchange, how fast it is executed, and how much time your terminal needs in order to receive the operation result?
Meanwhile, there is a way to improve order execution quality by receiving a quicker response and by achieving a faster transaction speed.
September 12, 2016 we simultaneously run three speed tests on a real account with the "Otkrytie" broker in MetaTrader 5 build 1415 and Quik 7.2.23. Each test was aimed to measure specific speed characteristics, which is important for algorithmic trading:The results of these tests are featured in a summary table, additional detailed results of each test are available in further sections below.
As you can see, MetaTrader 5 shows much better results in all tests. You can reproduce the same tests using the attached source code. The testing process is demonstrated in the video below.
Author: MetaQuotes Software Corp.