Stocks notched modest gains Tuesday after a day of up-and-down trading as investors weighed encouraging earnings from Coca-Cola and Johnson & Johnson against a survey of U.S. homebuilders that showed the industry's confidence in the housing market remains low.
Major U.S. indexes moved between gains and losses all day before ending slightly higher. And all the sectors in the Standard & Poor's 500 index increased, led by utilities.
The Dow Jones industrial average rose 89.32 points, or 0.6 percent, to 16,262.56. The Standard & Poor's 500 index gained 12.37 points, or 0.7 percent, to 1,842.98.
The Nasdaq composite added 11.47 points, or 0.3 percent, to 4,034.16.
For the week:
The Dow is up 235.81 points, or 1.5 percent.
The S&P 500 has risen 27.29 points, or 1.5 percent.
The Nasdaq is up 34.43 points, or 0.9 percent.
For the year:
The Dow Jones industrial average is down 314.10 points, or 1.9 percent.
The Standard & Poor's 500 index is down 5.38 points, or 0.3 percent.
The Nasdaq composite is down 142.43 points, or 3.4 percent.