Checking for Maket Closed

 
Is there some method to check if the market is closed or open for trade. Except for getting an return code of 10018 when trying to place an order
 

I will never understand why people are asking question without even checking what was already said about the question. (Nothing personal).

Anyway

Forum on trading, automated trading systems and testing trading strategies

How to find the Friday's market closing time?

Alain Verleyen, 2016.12.22 18:44

And even the code I used :

   datetime from,to;
   uint session=0;

   while(SymbolInfoSessionQuote(_Symbol,FRIDAY,session,from,to))
     {
      printf("Quoting session %i start %02i:%02i to %02i:%02i",session,from/3600,(from%3600)/60,to/3600,(to%3600)/60);
      session++;
     }

   session=0;
   while(SymbolInfoSessionTrade(_Symbol,FRIDAY,session,from,to))
     {
      printf("Trading session %i start %02i:%02i to %02i:%02i",session,from/3600,(from%3600)/60,to/3600,(to%3600)/60);
      session++;
     }
So please don't come here talking about quality, when you have just posted rudeness and self-promoting.

Reason: