Download MetaTrader 5
To add comments, please log in or register
Your conversation partner speaks foreign language? Automatic translation will help you!
c0d3
785
c0d3 2016.06.08 17:12 

Can anyone explain why TimeGMT() method call in Strategy Tester is 3 hours behind?

The only reason why I noticed this bug was because of Visual Mode in Strategy Tester.

I noticed that the time of entry was wrong in Visual Mode, and when l started looking further into it I noticed that there was a 3 hour bug.

Fernando Carreiro
1521
Fernando Carreiro 2016.06.08 17:14  

Read the documentation: https://docs.mql4.com/dateandtime/timegmt

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


Next time, do a search in the forum before posting. You would have found other related threads, such as the following:

/
To add comments, please log in or register