Optimal lag in dynamical investments.