Hello all,


In Python, how might I am trying to visualize how to do an indicator around getting the history of the past 5 bars and ensuring they're above a moving average.   Would I use a rolling window here or something like 
self.average = self.MAX(symbol, 5, Resolution.Hourly, Field.Close)

Im looking to implement a Moving Average channel strategy, and wanting to use something like this as the buy indicator