Download MetaTrader 5

Strategy-Tester: Get Use-Date from EA Code

To add comments, please log in or register
simha
144
simha  

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
6780
Carl Schreiber  

like (not tested):

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