I feel a bit confused reading through the documentation of indicator and consolidators. On consolidator page it says “consolidators with indicators” but in the code example it doesn't seem to have a consolidator. While on indicator page there is a more complex code snippet with explicit consolidator.

158108_1625586970.jpg158108_1625586822.jpg

In API document it looks like there is built-in consolidator in RegisterIndicator().

158108_1625587500.jpg

 

Does it mean the following two snippets have same effect on creating a 10 SMA of 7min bars (consolidated from minutely bars), while the 2nd snippets has some redundancy in using explicit consolidator rather than the built-in consolidator in RegisterIndicator?

self.AddEquity("SPY", Resolution.Minute)
self.sma = SimpleMovingAverage(10)
self.RegisterIndicator("SPY", self.sma, timedelta(minutes=7))
self.AddEquity("SPY", Resolution.Minute)
self.sma = SimpleMovingAverage(10)
sevenMinuteConsolidator = TradeBarConsolidator(timedelta(minutes=7))
self.SubscriptionManager.AddConsolidator("SPY", sevenMinuteConsolidator)
self.RegisterIndicator("SPY", self.sma, sevenMinuteConsolidator)

Thanks