Skip to content
Prev 14632 / 15274 Next

optimize.portfolio.rebalancing with changing/dynamic stock universe [PortfolioAnalytics]

Hi Simon,

A changing universe is not directly supported in PortfolioAnalytics, but it
can absolutely be done. Eric Berger mentioned several of the key concerns
with return histories of different lengths and an evolving universe of
assets. The optimize.portfolio.rebalancing function is effectively a
wrapper around optimize.portfolio. A solution to your problem with a
dynamic universe is to write your own rebalancing loop. At each iteration,
you can define the assets in the portfolio specification and the returns to
use for that iteration.

This has come up before and I would like to add it to PortfolioAnalytics,
but it has not risen to the top of my priority list. Feel free to open a
feature request on https://github.com/braverock/PortfolioAnalytics. Also,
patches always welcome.

Hope that helps.

Best,
Ross
On Fri, Oct 19, 2018 at 4:48 AM Eric Berger <ericjberger at gmail.com> wrote: