More than a comprehensive description is in the article A pause between Trades.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/8233
The library contains the function that monitors the appearance of the trading events in the MT4 client terrminal.Error 146 - remedy
The library contains the functions that are intended to split the access to the trade flow.