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

sel_stk_bt回测时,on_calculate方法中股票获取不到数据 #109

Open
RickyLoveFreedom opened this issue Jun 10, 2023 · 3 comments

Comments

@RickyLoveFreedom
Copy link

RickyLoveFreedom commented Jun 10, 2023

操作步骤:
1.因为原来的代码中,没有用sel引擎来回测股票的demo,所以将原sel_fut_bt的demo复制了一份,并将要回测的标的及相关配置改成了股票的;
2.在storage目录下新增了对应股票的csv数据文件,debug运行run_bt,发现获取不到股票数据,但是dsb文件是有的。
image

同时也发现另外一个问题,sel_stk_bt股票的回测结果目录下,closes.csv,funds.csv,trades.csv文件只有tittle,没有数据,但是用sel_fut_bt的demo回测又是有这些文件的的,不清楚是不是跟股票的复权有关。

@wondertrader
Copy link
Owner

这个在dev中应该已经解决了,你用dev试试看

@RickyLoveFreedom
Copy link
Author

已测试,dev还是一样的问题

@wondertrader
Copy link
Owner

已测试,dev还是一样的问题

你Q上联系我,我发一个最新dev打包的wtpy给你

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

2 participants