Forum

Using OnInit() in a mqh (include) file

I would like to involve OnInit() in a .mqh file so that OnInit() will be executed both in the main .ex4 file and in the .mqh file. Is this possible? One must then override OnInit() in the .mqh file in some way

Array sorting

I am developing an Expert Advisor where I would like to implement FIFO support (closing orders according to order open time, sorted ASC). It it possible to use a similar logic described in this article: https://www.mql5.com/en/forum/138127 . It does not seems very straightforwarded though. My

EventSetTimer frequency

If you have a timer event with EventSetTimer() frequency set to 1 second and the task behind it takes for instance 3 seconds to run, I then presume that the timer will wait for the task to be finalized and not break after 1 second for next OnTimer to be executed. Please if anyone can confirm. Thanks