Optimal asset allocation with heterogeneous persistent shocks and myopic and intertemporal hedging demand