Since I have discovered lean CLI, I am developing my algos mostly in Lean(locally). I do backtests in both cloud and lean. But I have never tried live trading locally yet. I have lots of POST requests in my current strategy so my only solution is to run current algo in live locally.
Now, I have never asked myself the question before: Do we need data from Data folder for live trading? My algo nedds only close prices of multiple securities as input for my strategy. But does the algo need data from Data folder to warm up rolling windows? Or it uses data from Interactive Brokers (the Brokerage I am using)?
In nutshell, can start live trading without data in data folder?
Shile Wen
Hi Mislav,
To have the algorithm be ready on deployment, you might need to have data in the data folder. However, you could also download the data from somewhere like Yahoo Finance and read the CSVs and manually update the RollingWindows. In the worse case scenario, you would need to have the algorithm wait a few periods while live until the RollingWindows are warmed up.
Best,
Shile Wen
Mislav Sagovac
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!