There is no time, because you cannot know the time of quote arrival in MQL5. The maximum you can do is to remember the time at the moment of OnBookEvent event arrival, so remember it. It is also pointless to remember the time of finding the tops of the stack, you need the time of arrival of the price stack, not the time of finding its maximal index.
It was not necessary exactly the time of the index, my algorithm is like this, now if you look in the stack, the selected density jumps here and there, but according to the idea it is not density at all, no one will move every second at 2000 lots at prices, put them, take them off, move 10 ticks up 10 down, from such density you can not trade, so you need a timer, selected density, time how long it stands at this price, 10 seconds or more, take it to analyse and enter.
In principle, separate methods written by taking the selected index, ran in the tester algorithm on the glass, yes, all confirmed, the algorithm began to screen out a lot of unnecessary densities.
And here is another question, is it possible to work with 2 price stacks in mt5 simultaneously? And is it possible to initialise 2 stacks and get data from them using the functionality of methods from this topic.
Для биржевых инструментов доступно окно "Стакан цен", в котором можно посмотреть текущие заявки на покупку и продажу. Для каждой заявки указано желаемое направление торговой операции, требуемый объем и запрашиваемая цена. Для получения информации...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
There is no time, because you cannot know the time of quote arrival in MQL5. The maximum you can do is to remember the time at the moment of OnBookEvent event arrival, so remember it. It is also pointless to remember the time of finding the tops of the stack, you need the time of arrival of the price stack, not the time of finding its maximal index.
It was not necessary exactly the time of the index, my algorithm is like this, now if you look in the stack, the selected density jumps here and there, but according to the idea it is not density at all, no one will move every second at 2000 lots at prices, put them, take them off, move 10 ticks up 10 down, from such density you can not trade, so you need a timer, selected density, time how long it stands at this price, 10 seconds or more, take it to analyse and enter.
In principle, separate methods written by taking the selected index, ran in the tester algorithm on the glass, yes, all confirmed, the algorithm began to screen out a lot of unnecessary densities.
Thank you for responding.
Same problem as in the former article of this author. The code does not work. One even cannot compile it:
'Event' - unexpected token, probably type is missing? MBookBtn.mqh 57 12
'Event' - function already defined and has different type MBookBtn.mqh 57 12
If you ask the author for help you will get an answer: "No".
Ridiculous, why do you even write articles?
This is the error I'm facing. Can you help me?
File: MBookBtn.mqh
~line 57
The void is missing. Just add it bevor the line, like so:
Compile without errors. ;)
Cheers!