mark
while((!connect) || (iteration > 60))
Looks like an infinite loop. Should be &&.
Actually, you don't really need (!connect), because the loop will end once it's true.
And:
Sleep(10000); Print("Connection not restored", iteration*10, " seconds passed")
After 10 seconds, the log will say "0 seconds passed". (0*10=0)

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
New article How to Develop a Reliable and Safe Trade Robot in MQL 4 has been published:
Author: Shashev Sergei