santoshlite / Empyrial

An Open Source Portfolio Backtesting Engine for Everyone | 面向所有人的开源投资组合回测引擎
https://empyrial.gitbook.io/empyrial/
MIT License
914 stars 124 forks source link

Can this framework set ime-varying weights for assets in the portfolio? #119

Closed richardmkit closed 5 months ago

richardmkit commented 7 months ago

Hi,

According to the documentm, seems when backtesting, the weights of assets are fixed. Can the framework allow time-varying weights? For example, we can input different weights for each time point, in this case, we can combine the stocks selection strategy (some stocks into the portfolio, some stocks out of the portfolio) with the portfolio performance test. If you can set up this, that would be very helpful.

santoshlite commented 6 months ago

Yes, I'll add that to my feature list and work on it, thanks for the feedback!