Extended thermodynamics of dense gases with many moments. The macroscopic approach