Back

Loads of errors while compiling QuantConnect.Lean Solution on Microsoft Visual Studio

Hello everyone,

tl;dr Why am I getting the errors shown in the picture and how do I fix them?

Longer version:

I'm new to QuantConnect and, even though I'm not *that* of a beginner in programming (specifically Python), unfortunately I'm experimenting many more issues than I would have imagined when writing the simplest lines of code on the online platform. Probably this is due to my current difficulty in understanding how the objects and data are structured and somehow reading all the API documentation is not helping at all :(

I thought that coding through the Desktop Environment would have helped me in understanding this huge yet amazing project that is Lean Engine, having more debugging tools and specifications of the errors (I cannot even get ahold of which line of my code is preventing my algorithm from running! >_<").

I followed all the different tutorials available on YouTube to set the configs so that it can gather the data  that I previously downloaded from the Data Library Cloud from the APIDataProvider.

Yet, as soon as I try to run a test execution of BasicTemplateForexAlgorithm (that's where I'm writing my algorithm and experimenting with all the different instructions), many errors appear.

I managed to resolve all the invalid syntax errors (most of the ".py" files in the projects are missing brackets for all the print statements) and the invalid token errors (setStartDate/setEndDate methods only accept integers as input parameters, yet in the files number appear in date format - 07 vs 7), but cannot resolve the errors show in the picture to save my life (I tried restarting Visual Studio, installing updates, installing QLNet through NuGet Package Manager Console and tools with no succes whatsoever).

What am I missing here? What should I do? Any kind of help would be MUCH apreciated.

P.S. Pardon my english, I'm italian.

Update Backtest






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.



Maybe this way you can read the errors better.

P.P.S. Mr. Broad I admire your and your team's work immensely, huge fan here! :D

0

Thanks Info Alphadvice ! To help as many people as possible please use the google groups for LEAN support -- this likely has also already answered this question:

https://groups.google.com/forum/#!forum/lean-engine

0

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.


Update Backtest





0

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.


Loading...

This discussion is closed