Backtest without DST?

To add comments, please log in or register
gangsta1
1592
gangsta1  

Hello,

I understand that mt5 uses broker server time when back testing but when using for example Alpari, this causes data to use daylight savings time whereas I need to test without any adjustments, ideally GMT for all of the data. Is this possible in mt5? My code:

   MqlDateTime mdt;
   TimeCurrent(mdt);

  if ((mdt.hour>=TradingTimeStart && mdt.hour<TradingTimeEnd))

I tried TimeGMT but as stated on mql5: During testing in the strategy tester, TimeGMT() is always equal to TimeTradeServer() simulated server time

To add comments, please log in or register