Please help......Strategy tester time

Back to topics list To post a new topic, please log in or register
avatar
4
yeah016 2016.06.10 02:41
 

Could anyone could help to confirm, what is the time using in strategy tester? I checked on the reference it MT4 documentation it state

"When testing, the time is simulated according to the historical data. TimeLocal() local time is always equal to TimeCurrent() server time. In turn, the server time is always equal to the time corresponding to the GMT - TimeGMT(). This way, all of these functions display the same time during testing."

but I went to check on TimeGMT() it stated

"During testing in the Strategy Tester, TimeGMT() is always equal to TimeCurrent() simulated server time."


In Strategy tester is actually using GMT time or Server time to simulating?

I know that

TimeLocal = TimeCurrent = GMT Time

But which time they are using is it GMT time for all?


avatar
Moderator
3206
angevoyageur 2016.06.10 09:04 #
 
yeah016:
...

TimeLocal = TimeCurrent = GMT Time

But which time they are using is it GMT time for all?


It's data time (TimeCurrent) for all.
avatar
1233
FMIC 2016.06.10 09:18 #
 
yeah016:

In Strategy tester is actually using GMT time or Server time to simulating?


It is using the simulated SERVER time, namely that "TimeCurrent()" is the primary Date/Time and all the other time sources for the data (such as "iTime()", "Time[]" and "time[]", etc.) is in sync with "TimeCurrent()".

However, since the simulated "TimeLocal()" is set to be equal to the simulated server time "TimeCurrent()", that is in effect the same as if the server were operating at GMT time. So don't get confused about that. Just consider the "TimeCurrent()" and the other data time sources as being the only valid date/time and that it is SERVER time.

avatar
4
yeah016 2016.06.10 10:43 #
 
angevoyageur:
It's data time (TimeCurrent) for all.
Thanks a lot~
avatar
4
yeah016 2016.06.10 10:44 #
 
FMIC:

It is using the simulated SERVER time, namely that "TimeCurrent()" is the primary Date/Time and all the other time sources for the data (such as "iTime()", "Time[]" and "time[]", etc.) is in sync with "TimeCurrent()".

However, since the simulated "TimeLocal()" is set to be equal to the simulated server time "TimeCurrent()", that is in effect the same as if the server were operating at GMT time. So don't get confused about that. Just consider the "TimeCurrent()" and the other data time sources as being to only valid date/time and that it is SERVER time.

Thanks !!, got it, is TimeCurrent data time for all.
Back to topics list  

To add comments, please log in or register