Lean
Lean copied to clipboard
Built-in RollingWindow in Consolidators
Expected Behavior
Consolidators have a built-in rolling window as Indicators.
self.ten_minute_trade = TradeBarConsolidator(10)
previous = self.ten_minute_trade[1]
self.ten_minute_trade.window.size = 10
first_in_range = self.ten_minute_trade[9]
Actual Behavior
Not supported.
Potential Solution
See https://github.com/QuantConnect/Lean/pull/7314
Checklist
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
masterbranch - [x] I have confirmed that this is not a duplicate issue by searching issues
- [x] I have provided detailed steps to reproduce the issue