TimeGMT() is Wrong in Strategy Tester - FXCM demo server

 

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.

 

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:

Reason: