While running my code in debug mode and testing with real data using breakpoints, I encountered a peculiar problem. I was testing a custom function in the OnTimer() that enables users to delay the start of an EA by placing a pending order. Once the pending order is filled, the rest of the EA is allowed to run. However, after this function completes, the OnInit() function runs again, but only when using breakpoints.
- Problem with debugging
- Q: Bug in mql5 - OnTick() before OnInit()
- Errors, bugs, questions

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register