Account for DaylightSavingTime(DST) in strategy tester?

 

I have an EA that is trading at specific hour of the data. When backtesting I noticed that the trades are placed at the wrong time in winter. Is there a way to account for this in the strategy tester?


I'm using


if(Hour() == SpecifiedTimeInConfig)


is there a way to determine in the backtester if we have DST for this month or not?

 

MT tester does not provide built-in means for DST. You should add a special code in your EA to adjust bar times according to international rules of DST changing.

You may have a look at this code to get a notion (disclaimer: I did not try it myself).

Reason: