Hi everyone! Fairly new to this platform and am loving it so far. I've currently got a working live algorithm that scrapes from a popular website. I've collected all the past data from this site and have a very simple csv file with 2 columns; the date, and whether I should long or short the stock. Can anyone point me in the right direction as to how I can easily create a backtestable algorithm with this data? Thanks in advance!
Xin Wei
Hi Vaughn,
Welcome to QuantConnect! I'm glad to hear that you are enjoying using our platform!
If you could put your CSV file into a Dropbox, importing the custom data can be easily done in QuantConnect using the Download() method. The Download method downloads a URL and returns it as a string as below.
# remember to add the &dl=1 to trigger a download file = self.Download("https://www.dropbox.com?....&dl=1")
Please check out the Importing Custom Data documentation section for more details.I hope this helps!
Xin
Vaughn Fisher
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!