Stocks got off to a good start Thursday and held onto their gains, carving out a modest increase for the second day in a row.
During a relatively slow week, stock investors drew encouragement from some positive news on the economy and housing. Improving earnings from Dollar Tree, Best Buy and other retailers also helped the market.
Major U.S. indexes appeared headed for a slight rise even before trading began. A survey from HSBC suggested a slowdown in China's economy was flattening, and May's reading on China's manufacturing sector was the best in five months.
"A revival in China is good for emerging markets, good for global growth and therefore good for stocks, and not so hot for bonds," said Krishna Memani, chief investment officer at Oppenheimer Funds.
Investors received more good news after the U.S. market opened. The Conference Board said its index of leading economic indicators posted a solid gain in April. The gauge, designed to predict the economy's future health, provided more evidence that growth strengthened after a severe winter slowed business.
A U.S. government report showing a rise in the number of people seeking unemployment benefits last week didn't dampen the market's rise. Nor did the latest sales data for previously occupied U.S. homes, which rose modestly on a monthly basis in April, but was down from a year earlier, according to the National Association of Realtors.
The Standard & Poor's 500 index rose 4.46 points, or 0.2 percent, to close at 1,892.49. The index is up 2.4 percent for the year.
The Dow Jones industrial average rose 10.02 points, or 0.1 percent, to end at 16,543.08. The Nasdaq composite index added 22.80 points, or 0.6 percent, to finish at 4,154.34.
The Dow and Nasdaq remain down slightly for 2014.
Small-company stocks also extended their prior-day rally, pushing the Russell 2000 index up 10.24 points, or 0.9 percent, to 1,113.87.
Major indexes have finished slightly higher in four of the last five trading days. The gains have nudged the S&P 500 index, which hit a high early last week, up 0.8 percent for this week.
Bond prices fell slightly Thursday. The yield on the 10-year Treasury note edged up to 2.55 percent from 2.54 percent late Wednesday.
Among the biggest variables influencing the markets this year have been uncertainty over when U.S. growth will accelerate and concern that China's growth is slowing.