How to know the trading/quoting interruptions and holidays in advance?

 

Hi!

Is it possible in Metatrader/MQL to find out when the trading/quoting interruption is going to happen? Yes we have stuff like SymbolInfoSessionTrade and SymbolInfoSessionQuote, but they predict only the regular/scheduled trading-quoting session, like, “every Monday we trade 00:00-16:55 and then 17:00-21:00”. But is it possible to find out the (planned) “one-off session”, e.g. “on the day before Christmas, we trade just 00:00-16:00”? How to do it?

Seems like around MQL4, IsTradeAllowed was able to do some kind of a variation of that, having a way to find for a symbol, is it tradable on some specific time. Not really “a schedule”, of course, but with some looping, we could discover the schedule for the current day, probably. But in MQL5, such a way to call IsTradeAllowed seems unsupported anymore. How to predict the holidays then?..

Documentation on MQL5: Market Info / SymbolInfoSessionQuote
Documentation on MQL5: Market Info / SymbolInfoSessionQuote
  • www.mql5.com
Allows receiving time of beginning and end of the specified quoting sessions for a specified symbol and day of week. Parameters name [in]  ...