I'm wondering how I can keep the scanner in this algorithm going all day, but turn off the order placing for the first ten minutes of the day? I was thinking I could add something like "or self.TimeRules.AfterMarketOpen<10" to line 66, but I keep getting errors that I'm not sure how to fix.  Any advice or documentation would be greatly appreciated.