Hello, I am new to Lean, been doing a lot of research and trying to get my environment set up for developing an SPX index options strategy. I am NOT new to software development and am very comfortable with all the existing tools (python, docker, etc).
Anyway, I am attempting to get a local development environment set up using Lean-CLI, Pycharm, Docker, as recommended in all the guides. I am developing on Windows 10. I got the project set up fine, I purchased and imported the data locally using Lean-CLI as recommended, and I am testing it out on this strategy (verbatim):
However, for the life of me I can't get the backtest to get a single bar of data. I have a debug statement on the first line of OnData and it never gets called. I checked to make sure the dates of the strategy line up with the dates of the data I purchased, and I made sure the data is properly downloaded in the respective folder. I really don't know what I am doing wrong here. I am not doing anything special, just followed all the instructions verbatim. Thank you for any help.
Varad Kabade
Hi Joshua Liptzin,
Welcome to QuantConnect and Lean. We recommend testing the algorithm in QC IDE/Cloud and check if the error persists. If yes, please share a backtest/code snippet highlighting the issue
Best,
Varad Kabade
Joshua Liptzin
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!