like (not tested):
datetime beg=0,end=0; ... if (beg==0) beg = TimeCurrent(); else end = TimeCurrent(); ...

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
Hello,
Is there a way to retrieve the date-period over which EA is back-tested, from EA's code, at runtime?
I'm referring to Strategy-Tester's Use-Date fields (From, To).
Thanks .