Back

Backtest Failed

Good morning, I am new to Lean, I have developed an algo on visual studio on my desktop computer using Lean package. When I am forwarding this for backtesting using the plugin:

I am getting the next error. Can anyone help please and advise what am I doing wrong? Thanks in advance for your help!

Update Backtest








That error means we couldn't create a QCAlgorithm object; likely the file(s) you're sending don't have a QCAlgorithm class or you have 2-of them so we don't know which one to backtest. Please attach the file you're attempting to backtest in a comment here.  

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.


Thank you very much , Jared ! 

Indeed, I was trying to add my algo to existing project that already includes another extension of QCAlgorithm class. I am realizing now I can just type in the name of brand new project for the code to be added to. I did so, and things worked fine. Thanks a lot for your advise.

1

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