Back

Jupyter Notebook - Is it possible to execute 1 or more QCAlgorithms?

Jupyter Notebook - Is it possible to execute 1 or more QCAlgorithms?

In my research, I would like to record the results of my Algorithm runs in a table so I can get a sense for how well the algorithm is performing during different time periods.

While I can do this manually, it would be so much better to automate this via a Notebook.

If the answer is No, is there a way to do this via python in some other way?

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.


Hi Will,

QCAlgorithms can’t actually be executed in the notebooks, try putting the code into a main.py file and make a few adjustments so it will run as an algorithm.

It is possible to run multiple algorithms, with a Prime subscription, 2 backtests can be run in parallel at a time (with a free account, a user waits for the first backtest to finish before running another), and this number is increased to 4 with a Professional subscription. For live execution of algorithms, we have varying server space for the different tiers, more on this can be found here.

After an algorithm is run, head over to the Overview tab in the backtest to see the statistics. To see how well it does over different periods of time, the auto-generated Strategy Equity plot in the backtest serves this purpose. Alternatively, locally developed algorithm backtesting can be automated using the API or the CLI.

Best,
Shile Wen

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