Investors showed optimism across major sectors, driving the index higher and continuing the market’s upward momentum.