MT5.MarketIsOpen.Rd
Warning! This function is not entirely reliable. It uses the last hour of trading of all marketwatch's symbols to check if the market is open. To actually know when the market is really open, the trader must know the market and rely on his/her knowledge.
If trader's computer lost connection and all symbols turns outdated this function will return FALSE
by its construction. It's strongly recommended to use support function, as check if internet is working and check for weekends/holidays, to not stuck with False Negatives.
Detecting this type of status is quite challenging in MQL. This function takes 1
second to return the result.
MT5.MarketIsOpen()
Returns TRUE
if market is open, FALSE
otherwise.