I read about a difference between exchange based on broker and pc local time. I am testing a strategy using forex and nyc time utc-5:00 (I am using the NT7 session template for forex). I am located in a utc-3:00 area and the user is in a utc-8:00 area. What has to be done to be sure times are synced properly? Different regions often don't change between daylight and standard at the same time. Is NT7 aware of dst changes? Is Time[0] session time or local pc time?
While testing parts of the strategy I noticed that code is executing during the do not execute time. There appears to be approx. a 2.5 hour delay from end time actual end of execution.
This the code I am using as time filter:
if (StartTime < EndTime && (ToTime(Time[0]) >= StartTime && ToTime(Time[0]) <= EndTime)) timeRangeOK = true; else if (StartTime > EndTime) { if ((ToTime(Time[0]) >= StartTime && ToTime(Time[0]) <= 235959) || ToTime(Time[0]) < EndTime) timeRangeOK = true; } else timeRangeOK = false;
Comment