Problem converting integer to string and concatenation - page 2

 
lippmaje:
This will work for the current day. If the EA runs overnight however you need to recompute g_StartTime as it contains the current date.

So if i run this on the strategy tester will i need to somehow compute g_StartTime for each run of the code or will the Strategy Tester in effect deal with that?

Thanks

Paxman

 
The strategy tester will call your OnInit once upon start of the test and then OnTick only, for as long as the test period goes on. You need to recompute g_StartTime on every new day. You could just move the code of OnInit into OnTick of course, at the cost of some performance.