So if my Local time is UTC +2. And I run my backtest with a UTC-5 setting to test on the ES. The times in my code are off by 7 hours compared to the backtest time. Right?
So if I only want to submit trades at a specific time, I have to do so in my code to offset the 7 hours. ie, If I want to trade @ 08:30 exchange time, in my code this time is actually 15:30 locally.
This seems to become problematic when it comes to daylight saving hours. The exchange time zone changes clocks on Sun, Mar 10, 2024 & Sun, Nov 3, 2024. Whereas my local timezone changes on Sun, Mar 31, 2024 & Sun, Oct 27, 2024. So this would mess up the 7 hour offset when these event occur.
Am I understanding this correctly? The solution would be to set my local clock to the same timezone as the exchange or use code to convert my UTC+2 time to UTC-5 or whatever time I want to run my backtest on?

Comment