symbol EURUSD synchronization error - page 2

 
Marcel Fitzner:

Hhmmmmmmmm, jap. That was indeed the problem. I just fed my VIX indicator with a manual input parameter and the Strategy Tester is running properly..  

You don't need a DLL to get the current local time in the Strategy Tester.

Just saw it was you who asked about local time in that other topic. Why don't you use the proposed code there ?

 

Thanks for your hint, I've completely forgot about that thread! Using a file operation to obtain the time is really helpful for obtaining the current time during back testing!

 
Alain Verleyen:

You don't need a DLL to get the current local time in the Strategy Tester.

Just saw it was you who asked about local time in that other topic. Why don't you use the proposed code there ?

For completeness, the GlobalVariable approach on the link, gives on MT5 the local time directly and not the GMT time as MT4.

And DOESN'T WORK with the Strategy Tester, because with MT5 GV are simulated and the return dates of the backtest, and TimeGMTOffset() returns 0.