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

请教:多基金的组合业绩计算,组合中各基金的构成按比例构建(非绝对值),不定期调仓,如何计算? #153

Open
huweihuab opened this issue Mar 2, 2022 · 2 comments

Comments

@huweihuab
Copy link

多基金组合业绩计算,组合构成按比例构建(非绝对值),不定期调仓,如何计算?

@huweihuab huweihuab changed the title 多基金组合业绩计算,组合构成按比例构建(非绝对值),不定期调仓,如何计算? 请教:多基金的组合业绩计算,组合中各基金的构成按比例构建(非绝对值),不定期调仓,如何计算? Mar 2, 2022
@refraction-ray
Copy link
Owner

https://github.com/refraction-ray/xalpha/blob/master/xalpha/backtest.py#L396
不知道这个回测类是否能满足需求

@huweihuab
Copy link
Author

https://github.com/refraction-ray/xalpha/blob/master/xalpha/backtest.py#L396 不知道这个回测类是否能满足需求

非常感谢,但这个目前有个问题,在调仓的时候,Balance(BTE).run()函数是实时调仓,没有考虑到基金赎回后到款周期,另外run()中的申购金额与赎回金额不一致,与实践情况不太一致。

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