NO DOM acess on VPS, MarketBookGet returns an invalid array

 

Its simple as that. I have my EA that works perfectly on my machine, i get all the data i need from the book. But when i sincronize it with my VPS its removed.

2020.08.28 20:12:31.309 Experts expert HFT_beta (WINV20,M1) loaded successfully
2020.08.28 20:12:32.244 Network '25739': authorized on ModalMais-DMA4 - Beta through Access Point 1
2020.08.28 20:12:32.290 Network '25739': terminal synchronized with Modal DTVM Ltda.: 0 positions, 0 orders, 46836 symbols, 0 spreads
2020.08.28 20:12:32.290 Network '25739': trading has been enabled - netting mode
2020.08.28 20:12:32.311 Terminal '25739': 1 chart, 1 EA, 0 custom indicators, signal disabled
2020.08.28 20:12:32.487 Experts expert HFT_beta (WINV20,M1) removed

It seems to be out of range. If i comment  the two lines relative to the book, it is acepted and starts.

Anyone know if thats the case of no acess to DOM on VPS  or there is something missing?

 bool getBook=MarketBookGet(NULL,book);
 int book_size = ArraySize(book);
 hist_data[t][0]=GetTickCount();   //ok
 hist_data[t][1]=book[book_size/2+1].volume;
 hist_data[t][2]=SymbolInfoDouble(_Symbol,SYMBOL_BID);             //ok
 hist_data[t][3]=SymbolInfoDouble(_Symbol,SYMBOL_ASK);             //ok
 hist_data[t][4]=book[book_size/2].volume;
 
Is it related to MQL5 VPS for MT4/MT5?
I do not know about DOM but I know that dll is prohibited on EA (and the EAs are removed from VPS bec ause of that).
Virtual hosting for MetaTrader 5
Virtual hosting for MetaTrader 5
  • www.mql5.com
Virtual hosting for MetaTrader 4/5 is the best VPS solution for Forex. It is cheap, it requires no configuration and it features minimum delays to the server. For only 15 USD per month, you obtain a virtual platform that works around the clock, saves your profit and pays off. Create a remote copy of the application directly from the...
 
Sergey Golubev:
Is it related to MQL5 VPS for MT4/MT5?
I do not know about DOM but I know that dll is prohibited on EA (and the EAs are removed from VPS bec ause of that).
Yes, I'm on MT5. I'm not using any dll, just the regular functions from the documentation. And the problem really is with this array, I have no idea why