Hi, 

I am trying to reference premarket high and lows. Logically I want to do the below, but can't get the code to work, and I don't easily see another way to do this (I haven't come across a consolidation bar example that can be time-based). 

Any pointers?

        self.AddEquity("SPY", Resolution.Minute, extendedMarketHours = True)

        def OnData(self, data):    

        premarket_high = data["SPY"].[(["time"] < "09:30:00") & (["time"] > "04:00:00")]["high"].max()

        premarket_low = data["SPY"].[(["time"] < "09:30:00") & (["time"] > "04:00:00")]["low"].min()