xalpha icon indicating copy to clipboard operation
xalpha copied to clipboard

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

Open huweihuab opened this issue 3 years ago • 2 comments

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

huweihuab avatar Mar 02 '22 04:03 huweihuab

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

refraction-ray avatar Mar 29 '22 01:03 refraction-ray

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

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

huweihuab avatar May 16 '22 13:05 huweihuab