How can I pass heikin-ashi prices to indicators like EMA and SMA when using consolidators?

 

#Consolidate minute data into X minute blocks Consolidated = TradeBarConsolidator(timedelta(minutes=self.Period)) Consolidated.DataConsolidated += self.onDataConsolidated interval = Consolidated self.SubscriptionManager.AddConsolidator(self.symbol, interval) # technicals self.HA = HeikinAshi() self.ema10 = ExponentialMovingAverage(10) self.ema50 = ExponentialMovingAverage(50) self.sma25 = SimpleMovingAverage(25) self.RegisterIndicator(self.symbol, self.ema10, Consolidated) self.RegisterIndicator(self.symbol, self.sma25, Consolidated) self.RegisterIndicator(self.symbol, self.ema50, Consolidated) self.RegisterIndicator(self.symbol, self.HA, Consolidated) self.window = RollingWindow[float](2) self.SetWarmup(50)

 

Author