zipline icon indicating copy to clipboard operation
zipline copied to clipboard

Passing local csv data as symbol?

Open sword134 opened this issue 4 years ago • 3 comments

Obeserve the following code context.assets = symbols('TSLA', 'MSFT', 'FB', 'TWTR') Say I wanted to replace context.assets with a local csv file containing all SP500 companies closing prices, how would I do it?

sword134 avatar Jan 15 '21 12:01 sword134

@sword134 hello, did you find solution? are you saying we cannot use our own data?

tombohub avatar Feb 09 '21 15:02 tombohub

@tombohub I never found a solution. The entire library was really bad in my opinion (especially since you cant use local data), so I just made my own manual backtest.

sword134 avatar Feb 09 '21 15:02 sword134

@sword134 have you looked at ingesting data? That might help solve your problem of using local data. I am currently running backtests with local data and am having no issue. Let me know if you have any questions.

george-adams1 avatar Feb 18 '21 04:02 george-adams1