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.
I wrote a function to check if the market / session is open.
I'm mainly interested to see if there's a better way of doing it or if you think there's any error in my code that won't give me the desired result.
For the backstory, please read my other thread: https://www.mql5.com/en/forum/292843