Back

Found an algo example who work

Hi,
please is there an option algorythm example who works, because I copied pasted many example from documentation, and when I launch it as a backtest, nothing happend!!
I need one works for create something like a template and then develop my own strategy.

Thanks.

Update Backtest







QuantConnect uploads many example strategies for situations like these! Below is a GitHub link to one such options strategy. The folder Algorithm.Python contains a few strategies as well. These should help you get started. QuantConnect also provides tutorials, like this, to help understand the API.

https://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/BasicTemplateOptionStrategyAlgorithm.py
0

Hi,

thanks a lot, I tried your example, but doens,t work, if I launch BT, it works but no trade, and of course I changed the date range, but no trades!!

0

Hi dupont, sorry about the wait.
All the algorithms in the open-source project work, since they are part of the test battery we run before every new patch is added. I have attached one example.

If you find an example that "doesn't work", Please share an algorithm (use the attach backtest button below) that shows the issue you are experiencing. This procedure helps us, the community, to answer your questions quickly and effectively.

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