Discussion of article "Implementing a Scalping Market Depth Using the CGraphic Library" - page 5

 
Vasiliy Sokolov:

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.

 
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.
Документация по MQL5: Константы, перечисления и структуры / Торговые константы / Виды заявок в стакане цен
Документация по MQL5: Константы, перечисления и структуры / Торговые константы / Виды заявок в стакане цен
  • www.mql5.com
Для биржевых инструментов доступно окно "Стакан цен", в котором можно посмотреть текущие заявки на покупку и продажу. Для каждой заявки указано желаемое направление торговой операции, требуемый объем и запрашиваемая цена. Для получения информации...
 
It does not work, for there are errors....
 
On brent forts it is pointless to use such a bet, as there are several futures on brent.
 

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?

 
apezzatto #:
This is the error I'm facing. Can you help me?

File: MBookBtn.mqh
~line 57

CMBookBtn::Event(int id,long lparam,double dparam,string sparam)


The void is missing. Just add it bevor the line, like so:

void CMBookBtn::Event(int id,long lparam,double dparam,string sparam)

Compile without errors. ;)

Cheers!