Lean icon indicating copy to clipboard operation
Lean copied to clipboard

`WarmUpIndicator` accepts Consolidators as an argument

Open ArthurAsenheimer opened this issue 2 years ago • 0 comments

Expected Behavior

We can pass an arbitrary consolidator to WarmUpIndicator(). Note that it works fine for RegisterIndicator, so one would expect we can use the same arguments for the warm up as well.

Actual Behavior

Not supported.

consolidator = TradeBarConsolidator(timedelta(seconds=10)) 
sma = SimpleMovingAverage(10) 
self.RegisterIndicator(symbol, sma, consolidator)
self.WarmUpIndicator(symbol, sma, consolidator)  

returns the following error message

image

Potential Solution

Add the missing overloads.

Reproducing the Problem

https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_c037f90a607c01ca7a613a3e7209b66a.html

System Information

QC Cloud

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

ArthurAsenheimer avatar Dec 28 '22 08:12 ArthurAsenheimer