We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IdentityDataConsolidator does not call OnDataConsolidated on fill forward data.
IdentityDataConsolidator uses _last.EndTime != data.EndTime which doesn't handle fill forward data.
_last.EndTime != data.EndTime
N/A
The EMA is updated every minute despite QQQ uses daily data. QQQ is fill forwarded because of SPY.
namespace QuantConnect.Algorithm.CSharp { public class BasicTemplateAlgorithm : QCAlgorithm, IRegressionAlgorithmDefinition { private Symbol _spy = QuantConnect.Symbol.Create("SPY", SecurityType.Equity, Market.USA); private ExponentialMovingAverage _ema; public override void Initialize() { SetStartDate(2013, 10, 07); //Set Start Date SetEndDate(2013, 10, 11); //Set End Date SetCash(100000); //Set Strategy Cash AddEquity("SPY", Resolution.Minute); AddEquity("QQQ", Resolution.Daily); _ema = EMA("QQQ", 200, Resolution.Daily); WarmUpIndicator("QQQ", _ema); } public override void OnData(Slice slice) { if (slice.Bars.TryGetValue("QQQ", out var bar)) { Log($"ema: {_ema.Current.Value} samples: {_ema.Samples} qqq: {bar.Close}; {bar.EndTime}"); } }
master
The text was updated successfully, but these errors were encountered:
jhonabreul
Successfully merging a pull request may close this issue.
Expected Behavior
IdentityDataConsolidator does not call OnDataConsolidated on fill forward data.
Actual Behavior
IdentityDataConsolidator uses
_last.EndTime != data.EndTime
which doesn't handle fill forward data.Potential Solution
N/A
Reproducing the Problem
The EMA is updated every minute despite QQQ uses daily data. QQQ is fill forwarded because of SPY.
Checklist
master
branchThe text was updated successfully, but these errors were encountered: