The coding aspect is very complex to check if target is reach in the current session only, not the previous day, which would defeat the purpose of daily target.. anyway, an easy workaround for me was to set the NT8 Clock to UTC and set the trading session start at 12:00AM, which is 8PM previous date. It works great. Now all of this is context..
Here's the real problem:
- When using UTC in Strategy Analyzer, setting the strategy start time/endtime to UTC produces very different results than all prior backtests for the same time period.
- Using EST settings for the 8PM-9:30am produces the same results seen both in previous backtests and live tradings.
- It is as-if NT calculates the UTC and EST differently in real-time vs historical data.
- Changing NT/Computer clock back to EST and picking a non-midnight time segment produces consistent results between live/real-time trades.
- Changing NT/Computer clock to UTC, but setting trading session in backtest to EST produces also consistent results from line above and real-time.
For example:
- NT8/Computer in UTC, real-time trading starting 13:30 (09:30am) matches Strategy Analyzer results only if the backtest start time is set to 09:30EST not 13:30 UTC. The strategy doesn't have any hard coded timezone logic. Rather checks if CurrentTime > StrategySessionStart.
I am getting thrown off that offset from UTC and wondering in NT caches historical data differently and doesn't use UTC offset. How do I begin to even troubleshoot this issue?

Comment