![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
That's the picture for the day. Of course we did not check whether OnBook matched Tick, but just took the next one, hoping that if OnTick was ahead of OnBook, then the corresponding one would be either the same or slightly later.
Maximum of course without additional checks is no indicator, or overshoot or really OnBook somewhere slow.
But this is someone who can explain? Why so many OnTicks are deployed, and not a single OnBook fits between them?
Because you yourself wrote"The code is cranked, maybe it's crooked, I'll look at the results."
And you don't need a timer at all...
Because you yourself wrote: "The code is cranked up, maybe it's crooked, I'll look at the results. "
And you don't need a timer at all...
You didn't find that the cause is due to errors in the code. Or you didn't understand the question. I also just printed a mark in On functions, without timer, still there is a crowd of ticks between which there are no OnBooks.
1. It is not clear to me at all how you ran the EA(s)
2. There are 2 codes written by Andrei and myself which
Theycorroborate each other. So why bother with yours?
3. Both Andrey and I have run EAs on the Derivatives market, and you on the Stock market.
Maybe the terminal has some flaws on the Fund (Didn't even run MT5 on the Stock market).
Personally, on the Fund, I trade via Quick
1. It is not clear to me at all how you ran the EA(s)
2. There are 2 codes written by Andrei and myself which
They corroborate each other. So why bother with yours?
3. Both Andrey and I have run EAs on the Derivatives market, and you on the Stock market.
Maybe the terminal has some flaws on the Fund (I haven't even run MT5 on the Stock market).
Personally, on the Fund, I trade through Quick
1. Ah, I see. Tomorrow I will try it on a futures one. Why do you not use MT5 on the fund? Do you have any disadvantages?
1. The second and subsequent terminals at the broker are paid, and I don't have strategies where I trade only stocks(stock portfolios).
2. If you are going to output the accumulatedGetMicrosecondCount(), then
do it without timer in OnDeinit(), when the EA exits, everything will print out.
2. If you are going to output the accumulatedGetMicrosecondCount(), then
do it without timer in OnDeinit(), when EA exits, everything will print out.
Yes, you can do it that way too, I originally did it that way to make it clearer. But because of the timer OnTicks may be skipped, but OnBooks should not, they are guaranteed. Maybe I did not take something into account, maybe not all Ticks initiate a change of the glass, i.e. OnBook?
Also.
You need to check the counters:
A, when declaring arrays, do the following
ulong TimeArrayBook[ INT_MAX]; а инициализировать так ArrayInitialize(TimeArrayBook, 0);
Also.
We need to do a counter check:
A, on initialisation the number should be65535 not65536
Who can explain this? Why are so many OnTicks being deregistered and not a single OnBook between them?
Look at the time of the log. This all happened in one ms, and next to it (in the same ms) a bunch of OnBooks.
You can count all events by counters, but even visually you can see that there are more OnBooks.