Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Built-in RollingWindow in Consolidators

Open AlexCatarino opened this issue 1 year ago • 0 comments

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 master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

AlexCatarino avatar Nov 22 '24 14:11 AlexCatarino