I always use this kind of wait/sleep:
void OnTick() { datetime waitsec = 100; static datetime nextAction=0; if (TimeCurrent()<nextAction) return; ... nextAction = TimeCurrent()+waitsec; ... }
ceaser234: I cannot under stand what actually the problem is .
| Until you return to the tester, to get the next tick, nothing changes. |
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
Hey !
I know that sleep command does not work in strategy tester.So i searched and try some ideas described by users,but none work for me.I want to make EA sleep if condition is true but when i try its alternatives at someconditions it does not sleep and some time it does not processed further. I cannot under stand what actually the problem is .Hope so that someone can help me to know the problem.
Here is one of alternatives i try