I have verified that OnBookEvent() function will "acummulate" the number of events it occurs while it is still busy doing the tasks of last call....If for whatever reason it took a long time (for exemple a timeout). In such a case instead of simply being called once after the long task is done, it will be called precisely as many time as the cumulated number of events, in my case causing unecessary computational tasks... This is counter-intuitive to me, I believed the event was simply a notification of change.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
All,
I have verified that OnBookEvent() function will "acummulate" the number of events it occurs while it is still busy doing the tasks of last call....If for whatever reason it took a long time (for exemple a timeout). In such a case instead of simply being called once after the long task is done, it will be called precisely as many time as the cumulated number of events, in my case causing unecessary computational tasks... This is counter-intuitive to me, I believed the event was simply a notification of change.
Is there a way to disable this behavior?
Thanks for your comments.
Regards