-
Notifications
You must be signed in to change notification settings - Fork 430
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
中证500历史回测报错 #160
Comments
这个也不是报错,只是 warning,相当于直接生成的每周一的购买记录中,有些事在节假日的,你可以注意观察报 warning 这些日期,都是十一或者过年 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import xalpha as xa
import pandas as pd
zz500 = xa.indexinfo('0000905')
auto = xa.policy.scheduled(
zz500, 500, pd.date_range("2010-01-01", "2017-12-01", freq="W-MON")
)
cm_t4 = xa.trade(zz500, auto.status)
提示:
账单日期 2010-02-15 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2010-02-22 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
账单日期 2011-10-03 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2011-10-10 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
账单日期 2012-01-23 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2012-01-30 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
账单日期 2012-10-01 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2012-10-08 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
账单日期 2013-02-11 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2013-02-18 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
账单日期 2016-02-08 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2016-02-15 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
账单日期 2016-10-03 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2016-10-10 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
账单日期 2017-10-02 00:00:00 非 0000905 的净值记录日期,日期智能平移后 2017-10-09 00:00:00 与账单其他日期重合!交易处理极可能出现问题!! 靠后日期的记录被覆盖
The text was updated successfully, but these errors were encountered: