Back

Visual Studio plugin for baacktest with python

Hi! the plugin works fine, I can send file to the QC cloud for save and also for backesting. However, it does not run, because I get the error message that there has be only one file names "main.py". Ok, I understand, for python projects only one file possible. But how to manage this file name (everytime the same)?? If I press - as described in the manual - the right button in the solution explorer in VS, I can choose send for backtest and give it a project name. However, in the solution explorer there are all the different example algorithms files that come with LEAN and thus all resulting in an error sending to the cloud for backtesting! It is not practicle to have one filename for all files, no meaning!! Thus, how to do?? The idea is great to have VS and plug-in for backtesting, but only one filename.... hopefully there is something wrong in my configuration.... thanks and best wishes....

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.


In QuantConnect Cloud, main.py is the file the engine looks for the class that inherits from QCAlgorithm (or QCAlgorithmFramework), so you have to have one and just one main.py file. You can add more files to the project, but they cannot have a class that inherits from QCAlgorithm (or QCAlgorithmFramework).

We will work on a solution to make it "smarter".

Meanwhile, after you send the file, you will have to open the project in your browser and rename the file.

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