Back

Is it possible to use a different data set?

hi everybody and thanks QuantConnect to let me part of this awesome community, Its my first few hours on this site and I was just wondering if it would be possible for me use my own data set. Although my data set is not that rich to back test but as I want test these algos in the emerging market ( I mean Pakistan Stock Exchange). I would highly appreciate if somebody can answer me.
Thanks.
Update Backtest








Hey Imran -- absolutely! You can import any data for backtesting or live trading. You can see examples of this in several of the QCU algorithms -- you just need to provide a class to read and interpret the data:

How Do I Import Yahoo Data?
How Do I Import Futures Data?
How Do I Use Live Custom Data?

You can also see an example of importing NIFTY (Indian markets) here:
https://github.com/QuantConnect/Lean/blob/master/Algorithm.CSharp/CustomDataNIFTYAlgorithm.cs
1

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.


Thanks Jared
0

In addition, if you want to move the imported data to another location on your local server, you can change the "data-folder" attribute in config.json. For example, i keep my minute data imported from GoogleFinance on my H:\ drive.

// engine
//"data-folder": "../../../Data/",
"data-folder": "H:\\GoogleFinanceData\\",

Naturally, this applies to back test on a local machine clone of Lean. For back test in the QC cloud, this technique will not work.
0

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