Download MetaTrader 5

Strategy-Tester: Get Use-Date from EA Code

To add comments, please log in or register
Install apps from the library right in MetaTrader. It is easy!
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
6588
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