munnassh:
Hi,
I'm very new to coding in mql, and if I use any aimple code it is iterating multiple times, even if I used any loop conditions to stop after 2 iterations, it is iterating again and again .
So, what can I do to stop it ?
Thanks a ton.
Because you reset the value of counter on every tick because int conter=1; is in the on tick function.
It will order on every tick so you must remove it.
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
Hi,
I'm very new to coding in mql, and if I use any aimple code it is iterating multiple times, even if I used any loop conditions to stop after 2 iterations, it is iterating again and again .
So, what can I do to stop it ?
Thanks a ton.