Hi, I want to automatically update the maximum indicator. I understand the maximum indicator use the Tradebar.High to update. However, it seems that the maximum indicator uses the Value/Close to update. Seems the “self.RegisterIndicator(self.future.Symbol, self.max, fifteenMinuteConsolidator, Field.High)” did not work too.

class TestAlgorithm(QCAlgorithm):
    def Initialize(self):

        
        self.max = Maximum(self.future.Symbol, 20)

        fifteenMinuteConsolidator = TradeBarConsolidator(timedelta(minutes=15))
        fifteenMinuteConsolidator.DataConsolidated += self.FifteenMinuteBarHandler
        self.SubscriptionManager.AddConsolidator(self.future.Symbol, fifteenMinuteConsolidator)
        self.RegisterIndicator(self.future.Symbol, self.max, fifteenMinuteConsolidator)

        self.WarmUpIndicator(self.future.Symbol, self.max)

 

 

 

Author