![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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