Hi, I just signed up and decided to test the QCU Strategy Example: Complete Algorithm Framework. Unfortunately, I get several errors upon running the example code. The issue is that in the UpdateAssetProperties(string symbol, decimal close, decimal volume) method in the ModuleAssets class in ModuleAsset.cs, the _assets Dictionary does not always contain the given string symbol. So, upon backtesting, several exceptions get thrown.
Here's the stack trace:
at System.ThrowHelper.ThrowKeyNotFoundException () [0x00000] in :0
at System.Collections.Generic.Dictionary`2[System.String,QuantConnect.QCUQuantFramework+Asset].get_Item (System.String key) [0x00000] in :0
at QuantConnect.QCUQuantFramework+ModuleAssets.UpdateAssetProperties (System.String symbol, Decimal close, Decimal volume) [0x00000] in :0
at QuantConnect.QCUQuantFramework.OnEndOfDay (System.String symbol) [0x00000] in :0
at QuantConnect.Lean.Engine.RealTime.ScheduledEventFactory+<>c__DisplayClass19.b__17 (System.String name, DateTime triggerTime) [0x00000] in Lean.Engine.RealTime.ScheduledEventFactory+<>c__DisplayClass19.b__17 (System.String name, DateTime triggerTime) [0x00000] in :0
Unfortunately, the exceptions get thrown so quickly that the entire UI slows to a non-responsive crawl as well (probably due to all the notifications from the exception popping up). So there's two things to fix here, I guess. Is there any way you guys could fix the example by correctly populating the _assets Dictionary? And maybe fix the UI by limiting the number of popups due to exceptions?
I also have a couple unrelated questions that I'll sneak in here: Can I reference NuGet libraries in the Terminal? Also, can I write my strategies in Visual Studio and upload them? For example, if I download LEAN, and write my strategy with the full benefit of IntelliSense, ReSharper, etc. can I then upload the same files into my QuantConnect Terminal and run backtests?
Thanks!
Jared Broad
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.
Greg Z
Jared Broad
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.
Greg Z
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!