NEW YORK (AP) — Stocks closed broadly higher as the market notched its second sizable gain in a row. Retail and industrial stocks made the biggest gains as they were lifted by company earnings, some good news from China's economy, and hope that Japan's struggling economy will get another boost.
Indexes were higher all day and almost matched the big gains they made on Friday. Strong quarterly results gave some company stocks a boost and investors worried a bit less about China and Japan.
For a change, stocks traded higher even though the price of oil slumped. Investors were skeptical that OPEC nations will sign off on a deal to freeze production, so U.S. crude sank after a big rally on Friday.
The Dow Jones industrial average added 222.57 points, or 1.4 percent, to 16,196.41. The Standard & Poor's 500 index rose 30.80 points, or 1.7 percent, to 1,895.58. The Nasdaq composite climbed 98.44 points, or 2.3 percent, to 4,435.96.
The S&P 500 had climbed 2 percent on Friday. It had been two months since the S&P 500 rose at least 1 percent for two consecutive days. The U.S. market was closed Monday for the Presidents Day holiday.
ADT surged after the home security company accepted an offer from investment company Apollo Global Management worth $42 per share, or $6.94 billion. Its stock rose $12.77, or 47.5 percent, to $39.64. Apollo Global added 72 cents, or 5.4 percent, to $14.12.
Amazon rose $14.02, or 2.8 percent, to $521.10. Home Depot rose $3.11, or 2.7 percent, to $119.43 and competitor Lowe's gained $2.56, or 3.9 percent, to $67.43.
Hormel, the maker of Spam and Dinty Moore stew among other foods, had its best day in almost seven years after the company posted a stronger-than-expected quarterly profit and raised its forecast for the year. Its stock climbed $2.94, or 7.1 percent, to $44.44. It's up 60 percent over the last year.
Restaurant Brands, the parent company of Burger King and Tim Hortons, jumped $1.81, or 5.7 percent, to $33.82 after the company said an important sales measurement rose at both of its chains in the fourth quarter.
Hospital stocks tumbled after Community Health Systems said admissions decreased in the fourth quarter. That's partly because it had more patients last year with respiratory illnesses and the flu. The company took a loss as it absorbed impairment charges and set aside more money to cover unpaid bills.
The stock plunged $4.12, or 22.1 percent, to $14.56.
It's been a bad couple of weeks for company earnings. Three-fourths of the companies listed on the S&P 500 have reported their quarterly results, and earnings are expected to fall almost 5 percent compared with a year ago, according to S&P Capital IQ. That's mostly because of plunging oil prices, which are pummeling energy company profits.
Analyst Lindsey Bell of S&P Global Markets Intelligence says that we're in the middle of a cycle that will see S&P 500 profits fall for four quarters in a row, but the market is focused on other issues, including concerns about the health of China's economy and central bank policy.
"You don't hear a lot of people talking about how we're going to have a nearly five-percent decline in earnings," she said.
Bell says earnings will start growing again later this year because companies have lowered the bar. Still, analysts are swiftly lowering their estimates for 2016. She says analysts now expect earnings growth of 2.9 percent, down from 7.4 percent at the start of 2016.
Daily deals site Groupon notched a large gain for the second day in a row. The stock rose $1.19, or 41.2 percent, to $4.08 after Chinese e-commerce site Alibaba disclosed it had taken a 5.6 percent stake in the company. Groupon stock jumped 29 percent Friday after the company reported its fourth-quarter results, but the stock is still in a big slump over the last year.
Tuesday started with gains for Asian stocks. China's central bank guided the yuan higher, pushing the currency close to its highest level of the year. That's a positive sign for the Chinese economy. Along with many other factors, weakness in the yuan this year has caused investors to worry about the health of the Chinese economy. China's official news agency also said new yuan loans climbed in January.
In Japan, a report showed the economy was weaker than expected, but that still gave stocks a boost because investors hope it will convince the Bank of Japan to take further steps to stimulate the economy.
Japan's Nikkei added 0.2 percent after soaring 7.2 percent the day before, its biggest daily gain since September. Hong Kong's Hang Seng advanced 1.1 percent.
Stocks in Europe mostly fell. Germany's DAX lost 0.8 percent and France's CAC 40 slipped 0.1 percent. However Britain's FTSE 100 rose 0.7 percent.
Russia and Saudi Arabia said Tuesday they had reached a deal to freeze their oil output, but the deal won't take effect unless other OPEC nations also agree to it. Analysts say Iran probably won't sign on because it wants to increase production following its period of sanctions.
U.S. crude lost 40 cents, or 1.4 percent, to $29.04 a barrel in New York. It jumped 12 percent Friday, its biggest gain in years.
Brent crude, a benchmark for international oils, gave up $1.21, or 3.6 percent, to $32.18 a barrel in London.
Wholesale gasoline fell 7.2 cents, or 6.9 percent, to 97.1 cents a gallon. Heating oil fell 4.2 cents, or 4 percent, to $1.027 a gallon. Natural gas slid 6.3 cents, or 3.2 percent, to $1.903 per 1,000 cubic feet.
The prices of gold and silver have climbed this year as investors look for safety in a turbulent market. With the stock market bouncing back on Tuesday, the price of gold sank $31.20, or 2.5 percent, to $1,208.20 an ounce, and silver fell 45.6 cents, or 2.9 percent, to $15.334 an ounce. Copper rose 2.2 cents to $2.051 a pound.
The yield on the 10-year Treasury note rose to 1.78 percent from 1.75 percent Friday. The dollar rose to 113.88 yen from 113.26 yen. The euro slipped to $1.114 from $1.126.
Marley Jay can be reached at http://twitter.com/MarleyJayAP. His work can be found at http://bigstory.ap.org/journalist/marley-jay