Download MetaTrader 5
To add comments, please log in or register
MQL5 library has more than 1500 apps already. Contribute your own one!
simha
144
simha 2016.06.13 14:33 

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 .

Carl Schreiber
5934
Carl Schreiber 2016.06.13 16:37  

like (not tested):

datetime beg=0,end=0;
...
if (beg==0) beg = TimeCurrent(); else end = TimeCurrent();
...
/
To add comments, please log in or register