Operations
Timezones, daylight saving, and trading automation
Make session filters, daily loss resets, and research timestamps consistent across brokers, data feeds, and local displays.
Store time with meaning
Raw broker and market timestamps need a documented timezone. Local display time is not automatically the correct time for a trading rule. Use timezone-aware conversions at the boundary and avoid adding a legacy offset to data that is already UTC.
A consistent timestamp convention makes research and live logs comparable.
Test boundaries explicitly
Session start, session end, daily reset, weekend closure, and news blackout boundaries are where one-hour errors become trades. Test before and after each boundary, including daylight-saving transitions and a broker server-time change.
- Document the source timezone for every timestamp.
- Use named zones for human-facing schedules where possible.
- Test the daily risk reset independently from the entry session.
- Log both raw and interpreted times during diagnosis.
Separate display from decision time
Helsinki or local time may be convenient for a person, while UTC or broker server time may be used by a feed or platform. Convert for display without changing the underlying decision convention.
When a trade appears at the wrong hour, compare the raw timestamp, converted timestamp, broker clock, and configured session before changing the strategy.
Discuss this article
Ask a setup question, share a backtest, or compare notes with other algorithmic traders. Use a display name; your email remains private.
Create an account or sign in above to join the conversation.
Loading discussion…