Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme里面的sample报错。 #6

Open
nyg2017 opened this issue Mar 10, 2021 · 0 comments
Open

readme里面的sample报错。 #6

nyg2017 opened this issue Mar 10, 2021 · 0 comments

Comments

@nyg2017
Copy link

nyg2017 commented Mar 10, 2021

strategy.run_backtest() File "/opt/conda/lib/python3.8/site-packages/QAStrategy/qactabase.py", line 192, in run_backtest risk = QA_Risk(self.acc) File "/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QAARP/QARisk.py", line 184, in __init__ self._assets = self.account.daily_cash.set_index( File "/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QAARP/QAAccountPro.py", line 636, in daily_cash index=pd.to_datetime(self.trade_range_max).set_names('date'), File "/opt/conda/lib/python3.8/site-packages/QUANTAXIS/QAARP/QAAccountPro.py", line 439, in trade_range_max if self.start_date < str(min(self.time_index_max))[0:10]: ValueError: min() arg is an empty sequence
错误如图,个人分析是什么前置工作没有做好么?还是需要什么特殊配置?求大佬指路。
之前安装好了quantaxis的docker-future。找了一圈实在不知道原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant