mhallsmoore / qstrader

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

couldn't run buy_and_hold example on win10 with' No such file or directory: 'C:\\SPB_Data/out\\tradelog_2017-08-31.csv' #225

Closed fredwang222 closed 7 years ago

fredwang222 commented 7 years ago

Hi, I tried to install qstrader and run example on win10 (Anaconda3 installed) but failed. The installation step is placed the qstrader in Anaconda Lib\site_packages and run installation. I created data(copy the data there) and out dirs. When I tried to install example, the error is as following. Could u pls helpl? Thanks in advance.

Traceback (most recent call last): File "buy_and_hold_backtest.py", line 70, in run(config, testing, tickers, filename) File "buy_and_hold_backtest.py", line 56, in run events_queue, title=title File "C:\Users\wangyuanhong\Anaconda3\lib\site-packages\qstrader-0.0.1-py3.5.egg\qstrader\trading_session.py", line 52, in init File "C:\Users\wangyuanhong\Anaconda3\lib\site-packages\qstrader-0.0.1-py3.5.egg\qstrader\trading_session.py", line 87, in _config_session File "C:\Users\wangyuanhong\Anaconda3\lib\site-packages\qstrader-0.0.1-py3.5.egg\qstrader\compliance\example.py", line 43, in init FileNotFoundError: [Errno 2] No such file or directory: 'C:\SPB_Data/out\tradelog_2017-08-31.csv'

fredwang222 commented 7 years ago

have found the reason