Hello, I would appreciate any advice on the following: I want to stipulate trading times in my system as follows: SUNDAY – DO NOT TRADE MONDAY – TRADE AFTER 10.59AM TUESDAY – FRIDAY – TRADE ALL DAY I have entered the following code: ValidTime = (CurrentDayOfWeek <> 0 OR 1) MondayValidTime = (CurrentDayOfWeek = 1 ) AND ((TIME > 105900)) SundayValidTime = (CurrentDayOfWeek = 0 ) AND ((Time > 235900)) once TradeTime = 1 IF ValidTime OR MondayValidTime OR SundayValidTime THEN TradeTime = 1 ELSE TradeTime = 0 ENDIF I then have a condition set to TradeTime = 1 in my rules. This does not appear to be working….. Many thanks