My EA starts with the code shown below. During testing with the debugger I had set 4 breakpoints (indicated with '>' in de code below.
As it turned out, at one of my test-sessions the first breakpoint that the program stopped at was in the OnTick() function. I would expect that an EA would always execute OnInit() before OnTick() or OnTimer(). Did I find a bug or is there a reason for the observed behaviour?
Hi,
I think I found a bug in MQL5.
My EA starts with the code shown below. During testing with the debugger I had set 4 breakpoints (indicated with '>' in de code below.
As it turned out, at one of my test-sessions the first breakpoint that the program stopped at was in the OnTick() function. I would expect that an EA would always execute OnInit() before OnTick() or OnTimer(). Did I find a bug or is there a reason for the observed behaviour?