Maybe, I can pack all the global variables and put the box in OnInit() and call it at the given time.
Just a newbie opinion, if there is a smarter alternative I would like to learn 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
I devised an EA which I'm planning to run on my computer from 8:00 to 20:00 every trade day. I will shut down my computer every night and reload the EA every next morning.
How can I simulate this case in strategy tester?
Is there a function that reloads the EA (from the first line, including all the global variables) every morning at a given time when testing the EA in strategy tester?
Thanks a lot.