I suspect the problem is your love of laconicization. try if.
Tried
datetime GetTimeLocal()
{
staticconststring Name = __FILE__;
datetime Res = 0;
if (GlobalVariableTemp(Name))
Res = GlobalVariableTime(Name);
return(Res);
}
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.
Application
HH Is there an easier way to find out the local time of the computer in the Tester?
Application
HH Is there an easier way to find out the local time in the Tester?
Through a global variable (GlobalVariableTemp, GlobalVariableTime).
Through a global variable (GlobalVariableTemp, GlobalVariableTime).
It will not work.
It won't work.
It's been working for a long time, and it's working fine.
It's been working properly for a long time.
Then what am I doing wrong?
Then what am I doing wrong?
I suspect the problem is your love of concatenation. try if.
I suspect the problem is your love of laconicization. try if.
Tried
Doesn't work.
Tried
Doesn't work.
Tried
It doesn't work.
It works for me, as expected...
PS. My mistake - it works in MT4, but doesn't work in MT5.