Is there an efficient way to exit loop? I can't relay on ticks, i have to check database every second or 2, tick sometimes have long pause. When i do infinite loop, MT4 is difficult to shut down. Can anyone help?
- Strategy test freezes
- EA ends not to be triggered by MT4 tick anymore
- Run script through Expert Advisor
No loop at all. Use OnTick to process ticks, use OnTimer to process time based things like your database check. Start using the new Event Handling Functions
whroeder1:
No loop at all. Use OnTick to process ticks, use OnTimer to process time based things like your database check. Start using the new Event Handling Functions
No loop at all. Use OnTick to process ticks, use OnTimer to process time based things like your database check. Start using the new Event Handling Functions
OnTimer() works perfect! Thanks!
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