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
ZS It would be good to get rid of the hang-ups that have been going on for months. Run this script on a machine with infinite RAM. For example, I can't upload ticks from June 1st just one character at a time. It just hangs CopyTicks with zero resource consumption.
b2699 - fixed, Thanks.
Forum on trading, automated trading systems and testing trading strategies
Acceptance of SL/TP orders
fxsaber, 2020.12.11 09:17
// Измеряет размер лага между приходом тика на MT5-сервер и MT5-Терминал. // Запускать на той же машине, на которой установлен MT5-сервер.
100 ticks were processed. Arrival lag between the server and the terminal varies from one to eight milliseconds. The average is a little over four milliseconds. This is just equal to the lag of TP order triggering, which is where this branch started.
The lag itself is inside the MT5 server. The Server->Terminal channel has nothing to do with it.
Big request to developers to eliminate this lag. Now with zero pings we have a constant delay of ticks incoming not only to the terminal, but to the Server as well. In particular, orders acceptance.
Unexpectedly I came across a tick missing in the history, even though it came in Market Watch: SymbolInfoTick.
Printout of the same tick through MQL shows an interesting flag.
This flag was formed on the tick in the history just before the missing Market Watch tick. Perhaps this will tell us where the problem is.
ZS Unfortunately, this happens systematically. The tick history does not contain all ticks that come to the Terminal.
Unexpectedly I came across a tick missing in the history, even though it came in Market Watch: SymbolInfoTick.
Printout of the same tick through MQL shows an interesting flag.
This flag was formed on the tick in the history just before the missing Market Watch tick. Perhaps this will tell us where the problem is.
ZS Unfortunately, this happens systematically. The tick history does not contain all ticks that come to the Terminal.
It does. Let's say EA trades a whole day on a real account, make a profit.
the next day I run the tester on the previous day and get a loss.
I do not understand the reason, either the broker gives the wrong ticks or something else...
Forum on trading, automated trading systems and trading strategy testing
MT5 and Speed in Action
fxsaber, 2021.01.04 20:51
Unexpectedly I ran into a lack of tick in the history, despite the fact that it was coming to the Market Watch: SymbolInfoTick.
I have started a parallel terminal, where tkc was not generated by the Terminal, but uploaded from the Server.
In the screenshot this terminal on the left - tick is present. But on the other Terminal (on the right) - it is not!
It turns out that the Terminal itself does not put all incoming ticks into the tick history. If you want to have the history without omissions, you should add the tkc-file and pull it from the Server.
Unpleasant bug.
Such an EA could not catch ticks missed in history. The combat one did. Apparently, these ticks don't initiate the OnTick.
The missed ticks themselves may be actual for tens of milliseconds.
There was a post above with the source code. It's now empty. The reason?
I ran a parallel terminal in which the tkc was not generated by the terminal, but uploaded from the Server.
On the screenshot of this Terminal on the left - the tick is present. But on the other terminal (on the right) it is not!
I ran this script on both Terminals.
Depending on what interval you request, tkc may change (sync with Server). So some ticks that were missing before the request may start to be present.
Despite this, it was still possible to detect a few on different characters. I had to apply a flags filter, because they are very different for ticks on different Terminals.
Here is how the differences look like.
EURJPY.
USDCHF .
In general, when trading in real time, some ticks may not be present in the history of ticks, as they are in the Terminal and can be on the Server.
This bug has to be fixed.