SymbolInfoSessionTrade always returns false in Strategy Tester

 

It works ok when EA is attached to live chart. But, in Strategy Tester always returns false. How to check if market is open during backtest?

Used simple code below to test:

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   currTime = iTime(_Symbol, PERIOD_M1, 0);
   if(currTime == lastBarMin)
      return;
      
   lastBarMin = currTime;
   
   Print("will check symbolinfosession");
   datetime dtstart,dtend;
   if(SymbolInfoSessionTrade("EURUSD", WEDNESDAY, 0, dtstart, dtend))
      Print("/"+TimeToString(dtstart,TIME_MINUTES)+"/"+TimeToString(dtend,TIME_MINUTES)+"/");
   else
      Print("symbolinfosession returned false");
  
   
  }
//+------------------------------------------------------------------+