Adding function to combine prices into an xts object
cleaned up dynamic rebalancing and use foreach for main loop