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!
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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!
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.