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:
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.