quantopian / zipline

Zipline, a Pythonic Algorithmic Trading Library
https://www.zipline.io
Apache License 2.0
17.68k stars 4.72k forks source link

Can i Invest in a inactive Stock/ Symbol #2242

Open akasheda opened 6 years ago

akasheda commented 6 years ago

Dear Zipline Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

Windows 10. Using miniConda3 and a Zipline environment. Uploading my datasets using a .csv and also using data.history.

I was using quantopian platform earlier and then I wanted to try out zipline.

One small concern I Have is, I am trying out a strategy and It has to invest in MSCI ACWI Ex-US stock. It is an index, but the actual ETF ACWX starts from 2008. I obtained the pricing data from MSCI itself and it starts from 1987. I want to invest in ACWX earlier than 2008 according to the pricing in my .csv file. Is there a chance that I can achieve this in Zipline?

I tried in quantopian and it returns an error. I just want your help in knowing if I can create my own symbol or something just for the purpose of backtesting.

freddiev4 commented 6 years ago

@akasheda I think what you might want here is to use the csvdir Bundle