
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
Ok I understand that in strategy tester the next tick is not used until start() returns. But I just can't get why it works in Live mode and not in tester. OK i will use start, I didn't want to use start() because I can't control its call back. But in tester Ok I will use start()
As I already said . . .
It won't help . . . to make time pass in the Strategy Tester you MUST use start() . . . the next tick is not used until start() returns, if start is never called it never returns so the next tick is never used . . . time does not advance.
Init MUST return within 2.5 seconds or it WILL BE FORCEFULLY killed.
As I already said . . .
If there are no ticks being used time is not progressing . . .My previous test and post strongly suggests that init() is not constrained by the 2.5 second timing rule.
But ticks are used in strategy tester also. no? Ok, let be so. Can you tell me if my code in start () is running and start began to run again when last start wasn't completed, what in that case? aborting last started code? or processing and currently start is waiting?
The Strategy Tester runs differently to Live/Demo. In the Strategy Tester the speed at which the EA runs is governed by the complexity of the start() function, there aren't actually any ticks, start() is called again when it has just finished so there can be no missed "ticks", so start() ending governs when the next tick's data is used . . . with Live/Demo if start() is running and a new tick arrives that tick is missed, start() will continue till it ends and then will be called again when the next tick arrives.
Thank you very much. All clear
Hello
To bring this topic to life again,
Does anyone knows why in while loop strategy tester stuck? I have same issue,
Regards