| 
 PureBytes Links 
Trading Reference Links 
 | 
Hello Gary,
>> Changing Sess1 8:00pm - 4:00pm Sun to Fri
>> To       Sess1 8:00pm - 12:00pm Sun to Thurs
>>          Sess2 12:01pm - 4:00pm Mon to Fri
GF> That sounds like a pretty odd definition.  (Especially if you
GF> really have Sess2 starting at 12:01pm -- 1 minute after NOON -- 
GF> instead of 12:01am, one minute after midnight!)  
Sorry about that typo there, it was getting late.
Actually I went back to Sess1 8:00pm - 4:00pm Sun to Fri
I found the date conflict went away when I removed unnecessary
references to date and time in the code
GF> "Time crosses over Sess2EndTime" is true on the bar AFTER the end
GF> of Session2, UNLESS the next bar is in the next day.  So let's 
GF> say for example Session2 ends at 11:50pm, and the next bar is at 
GF> 12:20am the next day.  Time goes from 2350 to 0020, so it never 
GF> "crosses over" the Sess2EndTime value.
Great help Thanks
best regards
foolsgold
 
 |