Hi Team,
I cloned the code mentioned in Sector Rotation Based On News Sentiment by Derek Melchin - QuantConnect.com
but I cannot run it as it gives error.
to be precised it gives the following errors:
Build Error File: Main.cs Line:71 Column:41 - Cannot implicitly convert type 'System.Collections.Generic.List' to 'System.Collections.Generic.List'
7
|
2:25:48
:
Build Error File: Main.cs Line:111 Column:66 - Cannot implicitly convert type 'System.Collections.Generic.IEnumerable' to 'System.Collections.Generic.IEnumerable'. An explicit conversion exists (are you missing a cast?)
those are the lines with error:
AddUniverse<BrainSentimentIndicatorUniverse>(
"BrainSentimentIndicatorUniverse", Resolution.Daily,
altCoarse =>
{
_brainUniverseData = altCoarse.ToList();
return Enumerable.Empty<Symbol>();
});
end:
AddUniverse(Universe.ETF(etfSymbol, Market.USA, UniverseSettings,
constituents =>
{
_etfConstituentsDataBySymbol[etfSymbol] = constituents;
return Enumerable.Empty<Symbol>();
})
);
could you check? I was expecting the code mentioned in the research sections to work
Louis Szeto
Hi Francesco
Thank you for reporting. We have some refactoring in Lean, so the old data type is not working. Please refer to this backtest. They are the same wine in a different bottle.
Best
Louis
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Francesco
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!