Closed Martin-Molinero closed 4 years ago
note: using WarmUpIndicator during universe selection on newly listed symbols will not warm up the indicator, since there is no data, and will log a message of the format: The starting date for symbol KRP, 2016-06-15, has been adjusted to match map file first date 2017-02-03.
since the history request start date will be adjusted.
Expected Behavior
WarmUpIndicator
shouldn't leave residual subscribed consolidatorsActual Behavior
WarmUpIndicator
with an already subscribed symbol will useConsolidate
https://github.com/QuantConnect/Lean/blob/master/Algorithm/QCAlgorithm.Indicators.cs#L2013 which creates and subscribes a newConsolidator
for that symbol, but this consolidator isn't being unsubscribed. I seems that for this use case we don't need/want for it to actually be subscribed, since its being updated directly with historical data.Potential Solution
Remove and dispose of created consolidators. Maybe refactor so that we don't subscribe/add the consolidator at all?
Reproducing the Problem
Use
WarmUpIndicator
with an already subscribedSymbol
System Information
N/A
Checklist
master
branch