A day of back-and-forth trading Thursday ended with the fifth gain in a row for U.S. stocks. Industrial companies like Boeing and General Electric rose while retailers fell as Macy's suffered its biggest loss of all time.
The S&P 500 index advanced 11.68 points, or 0.5 percent, to 2,596.64.
The Dow Jones Industrial Average climbed 122.80 points, or 0.5 percent, to 24,001.92.
The Nasdaq composite edged up 28.99 points, or 0.4 percent, to 6,986.07.
The Russell 2000 index of smaller-company stocks gained 6.63 points, or 0.5 percent, to 1,445.43.
For the week:
The S&P 500 is up 64.70 points, or 2.6 percent.
The Dow is up 568.76 points, or 2.4 percent.
The Nasdaq is up 247.21 points, or 3.7 percent.
The Russell 2000 is up 64.69 points, or 4.7 percent.
For the year:
The S&P 500 is up 89.79 points, or 3.6 percent.
The Dow is up 674.46 points, or 2.9 percent.
The Nasdaq is up 350.79 points, or 5.3 percent.
The Russell 2000 is up 96.87 points, or 7.2 percent.