Subscription to OnBookEvent sometimes falls off - is there such a thing? - page 7

 
fxsaber:

Thank you

 
prostotrader:

when I ran both indicators in the same symbol window, indeed

subscription "fell off" when removing one indicator.

I assume that if you leave the Glass (ALT+B) open before this, the subscription will not fall off.

 
fxsaber:

I assume that if you leave the Glass open (ALT+B) before doing this, the subscription will not fall off.

Checking now.

Added

FALLED :(

 
Stanislav Korotky:

What about the other OnTick or OnCalculate events? Any objections to their broadcastability?

Re-read the documentation: https://www.mql5.com/ru/docs/basis/function/events

Here's the result: " Unlike other events, the BookEvent event is broadcast."

Документация по MQL5: Основы языка / Функции / Функции обработки событий
Документация по MQL5: Основы языка / Функции / Функции обработки событий
  • www.mql5.com
В языке MQL5 предусмотрена обработка некоторых предопределенных событий. Функции для обработки этих событий должны быть определены в программе MQL5: имя функции, тип возвращаемого значения, состав параметров (если они есть) и их типы должны строго соответствовать описанию функции-обработчика события. Именно по типу возвращаемого значения и по...
 
void OnDeinit(const int reason)
  {
    if(is_book == true)
    { 
      MarketBookRelease(Symbol());
      Print(__FUNCTION__, ": Подписка на стакан удалена. Символ ", Symbol());
    }  
  }  
 
Stanislav Korotky:

What's the right thing to do? One program knocks out the other. Imagine that the Expert Advisor set a timer for itself, and Vasya Pupkin disabled this timer in his neighbouring script. FALSE.

By the way, for example, the same mouse events can be disabled for another EA.

 
prostotrader:

Write to the BOD (maybe they can fix the new build in time)

Where do you want the changes to go? In MetaTrader or in documentation... e.g.

It is written more specifically for broadband events OnChartEvent: Sending event messages to all mql5 programs on a chart (i.e. the chart is the subscription unit)

Which, in fact, is what is happening

 
fxsaber:

By the way, for example, the same mouse events can be disabled for another EA.

You're always doing all sorts of nasty things... :)

 
Алексей Тарабанов:

You're always doing nasty things... :)

And you can also automatically gut paid Market products - in free demo mode rip out all the resources (icons, cursors, etc.). With alpha-channels and stuff.

 
fxsaber:

You can also...

I don't believe it! - It's written that everything on the Market is secure

Reason: