Discussion of article "MQL5 vs QLUA - Why trading operations in MQL5 are up to 28 times faster?" - page 4
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
If we rephrase the problem as "how often MQL5 code is called from the terminal kernel", then everything should be measured wrong:
In this case, having built a polygon, you can really measure all the overheads on MQL5 calls and get an interesting characteristic. As is our custom, then optimise everything several times.
This is an interesting task and we will deal with it.
I got it!Yes, we do.
Sorry, I overlooked it.
If we rephrase the problem as "how often MQL5 code is called from the terminal kernel", then everything should be measured wrong:
In this case, having built a polygon, you can really measure all the overheads on MQL5 calls and get an interesting characteristic. As is our custom, then optimise everything several times.
This is an interesting task and we will do it.
Thank you for not leaving such geeky things without attention!
Probably, we need a separate build for measuring the speed of arrival of quote packets. Just what I wanted to measure.
Please do another MT5 speed test on a real account
Forum on trading, automated trading systems and testing trading strategies
Testing 'CopyTicks'
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)?
Let me explain what this will do.
When BuyLimit1 is sent inside the spread, a tick will come to us from the exchange with the time of its birth (it will generate a new Bid). After BuyLimit2 - another tick with its birth time. The difference of these two times is the speed characteristic of MT5 trading orders delivery to the exchange.
In order to make minimal monetary losses from such an experiment, you can send not two BuyLimits asynchronously, but BuyLimit and SellLimit inside the spread and choose some poorly liquid trading instrument.
Before comparing, we need to "finish" the whole complex of trading operations
(receiving data, justification of transactions, receiving confirmation of transactions).
Added Build 1395, real
Forum on trading, automated trading systems and testing of trading strategies
FORTS. Questions on execution
Renat Fatkhullin, 2016.08.23 16:35
You just need to wait 5-10 ms and try again.
The thing is that you get transaction confirmation immediately, but full transaction details arrive asynchronously after that. It can take from 0 to N ms, usually within 1-2 ms (depends on ping of course).
Before comparing, we need to "finish" the whole complex of trading operations
(receiving data, justification of transactions, receiving confirmation of transactions).
Added Build 1395, real
Just did a similar operation manually: 11.7 ms
You do not want to see the real report, but use your own glitchy method of measuring transaction time.
And you do not want to admit your mistakes, preferring to believe monstrous figures from your erroneous script.
I have just made a similar operation manually: 11.7 ms.
What are you talking about, Renate?
This is an excerpt from Temninal's log, not my own log!
Because of this circumstance, it is necessary to slightly adjust the comparison with QLUA not in favour of MT5.
There is no need to adjust anything. My phrase was for the general case "in your internet and your ping can be anything and in reality depending on your network you will get a transaction in 0-N ms". And it's more likely to be 0 ms than more.
Here is the verification code with control of all transactions in asynchronous mode:
Here is its output on a real account just now:
You should read it from bottom to top.
It shows all stages of transactions with the cumulative total of time spent from the start. By transaction types you can see what was added to the terminal and when.
The total time is 11.45 ms.