When I call for the current Hour and Minute using the below code, it returns the correct information on live data but when using it in strategy tester it always returns 0.
Any ideas?
MqlDateTime dt_struct;
datetime dtSer = TimeCurrent(dt_struct);
Print("");
Print("Server Hour Is " + dt_struct.hour);
Print("Server Min Is " + dt_struct.min);
This is the output when using live (correct):
This is the output when using in strategy tester (incorrect):
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.
Hi everyone,
Hoping someone can help me with this.
When I call for the current Hour and Minute using the below code, it returns the correct information on live data but when using it in strategy tester it always returns 0.
Any ideas?
This is the output when using live (correct):
This is the output when using in strategy tester (incorrect):
Any Assistance will be greatly appreciated.
Thanks,
Brent