Lagging OI (open interest) - page 3

 
Andrey Khatimlianskii:

Yes, it is enough to demonstrate the problem. Why bother pestering if there's nothing substantive to say?


Pity the girl? :)

 
prostotrader:

A timer is NOT needed.

OnBookEvent is not only triggered if a transaction has occurred.

and you MUST filter the symbol in this function

Since everything in the market review is "dumped" into this function

Why post "bare knees"?

Added

"Very professional" to take the job

And not knowing how to do it.

It's not :)

 
Dmi3:

It's not :)

That's not quite what I meant.

What I meant to say was.

#property copyright "Copyright 2020 prostotrader"
#property link      "https://www.mql5.com"
#property version   "1.00"
bool is_first_book;
bool is_second_book;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
  is_first_book = MarketBookAdd(Symbol());
  is_second_book = MarketBookAdd("GOLD-3.21");
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
  if(is_first_book == true) MarketBookRelease(Symbol());
  if(is_second_book == true) MarketBookRelease("GOLD-3.21"); 
  }

//+------------------------------------------------------------------+
//| BookEvent function                                               |
//+------------------------------------------------------------------+
void OnBookEvent(const string &symbol)
{
  Print("EA symbol = ", symbol);   
}

How do you tell the difference without a filter?

2021.01.08 20:44:32.062 BE_Test (RTS-3.21,M1)   EA symbol = RTS-3.21
2021.01.08 20:44:32.075 BE_Test (RTS-3.21,M1)   EA symbol = RTS-3.21
2021.01.08 20:44:32.176 BE_Test (RTS-3.21,M1)   EA symbol = GOLD-3.21
2021.01.08 20:44:32.195 BE_Test (RTS-3.21,M1)   EA symbol = GOLD-3.21
2021.01.08 20:44:32.237 BE_Test (RTS-3.21,M1)   EA symbol = RTS-3.21
2021.01.08 20:44:32.415 BE_Test (RTS-3.21,M1)   EA symbol = GOLD-3.21
2021.01.08 20:44:32.483 BE_Test (RTS-3.21,M1)   EA symbol = RTS-3.21
2021.01.08 20:44:32.490 BE_Test (RTS-3.21,M1)   EA symbol = GOLD-3.21
2021.01.08 20:44:32.651 BE_Test (RTS-3.21,M1)   EA symbol = RTS-3.21
2021.01.08 20:44:32.795 BE_Test (RTS-3.21,M1)   EA symbol = RTS-3.21
 

The topic is interesting and seems to be not without pitfalls.

What is the final outcome?

 
Renat Akhtyamov:

The topic is interesting and seems to be not without pitfalls.

What is the end result?

It's always better to check for a symbol

void OnBookEvent(const string &symbol)
{
  if(symbol == Symbol())
  {
    Print("EA symbol = ", symbol);
  }   
}
 
Does the data on OI (FORTS) on the demo match the real? (BCS)
 
Renat Akhtyamov:
Is the data on OI (FORTS) on demo the same as on real? (BCS)

On a demo, in principle, there can be no match.

 
prostotrader:

On the demo, in principle, there can be no match.

and neither can the tape?

how do you see the real volumes while you have no money?

 
Renat Akhtyamov:

and the ribbon too?

how do you see the real volumes while you have no money?

You need to have a real account.

It seems you can open one at BCS without money, but I'm not sure.

 
prostotrader:

You have to have a real account.

I think you can open one at BKS without any money, but I'm not sure.

It seems that they don't have mt5 for real forts at all, they offer quik.

What broker has one?