mhallsmoore / qstrader

QuantStart.com - QSTrader backtesting simulation engine.
https://www.quantstart.com/qstrader/
MIT License
2.93k stars 855 forks source link

installation issue #277

Closed hlabcd closed 4 years ago

hlabcd commented 5 years ago

So I manually goes down the list in requirements.txt and use conda install to isntall the individual packages one by one.However, I encountered a problem,buy_and_hold_backtest.py,raise ValueError('No objects to concatenate')

ValueError: No objects to concatenate

baogorek commented 4 years ago

I'm also getting this error. My pip install failed on the requirements.txt so I too installed a bunch of packages randomly, and finally had to upgrade numpy. Wondering if it's related to versioning.

Update: Nope, it's not versioning. You get that error when the program can't find your input data. Check out the qstrader.yml that gets created automatically. By default that's going to tell the program to look for a csv inside of ~/data. Once that csv is there, the error should go away. Not how I would have designed it but oh well.

mhallsmoore commented 4 years ago

Hi @hlabcd and @baogorek,

Indeed the issue is that there is no data in the ~/data directory. I agree that the error message is not particularly helpful!

We are taking a different approach in the upcoming development version (https://github.com/mhallsmoore/qstrader/tree/development) to ensure that it will be clear if any data is missing prior to a backtest.

Kind regards,

Mike.