Wall Street heads into fourth quarter with historic momentum