The roller-coaster ride on Wall Street resumed on Wednesday, the first trading day of the new year, as stocks plunged early on, then slowly recovered and finished with a slight gain.
The Dow Jones Industrial Average dropped as much as 398 points in the first few minutes of trading after more shaky economic news from China. But it gradually recouped those losses, and a small rally over the last 15 minutes of trading left major indexes a bit higher than where they started.
A Chinese government survey and one by a major business magazine showed manufacturing in China weakened in December as global and domestic demand cooled. That weighed on big exporters, with tech companies like Microsoft and industrials like Boeing taking sharp losses early on, only to bounce back.
After trading ended, Apple gave a quarterly sales forecast that was far worse than analysts expected. It said its revenue will be lower than previously believed because of China’s slowing economy. In aftermarket trading, Apple fell 7 percent. Other tech companies, especially chipmakers, sank as well.
Some of last year’s worst performers, including energy and internet companies, led the gains Wednesday.
Stocks are coming off their worst year in a decade, and many Americans could be in for a shock when they open their monthly and end-of-the-year 401(k) statements.
Many Wall Street banks are forecasting a year of modest gains for stocks. But most also say they expect these sharp reversals to continue as investors try to handicap so many unknowns.
Vinay Pande, head of trading strategies for UBS Global Wealth Management, said company earnings jumped in 2018 and are likely to keep improving.
The S&P 500 index finished with a gain of 3.18 points, or 0.1 percent, at 2,510.03, while the Dow rose 18.78 points, or 0.1 percent, to 23,346.24. The Nasdaq composite climbed 30.66 points, or 0.5 percent, to 6,665.94.
Most markets were closed on Tuesday for New Year’s Day.
Prices on long-term government bonds rose, a sign investors were looking for safer options. The yield on the 10-year Treasury note fell to 2.63 percent from 2.69 percent.
After sharp losses at the start of trading, benchmark U.S. crude jumped 2.5 percent to $46.54 per barrel in New York. Brent crude, used to price international oils, rose 2.1 percent to $54.91 per barrel in London. Those gains helped send energy stocks higher.
Oil prices have fallen about 40 percent since early October 2018 as investors reacted to the possibility of weaker demand for energy as economic growth slowed. That led to sharp drops in energy companies.
Meanwhile, health care companies, the best-performing part of the market in 2018, fell Wednesday as drugmakers and insurers lost ground.
In other trading:
—The dollar fell to 109.21 yen from 109.61 yen. The euro fell to $1.1344 from $1.1445. The British pound slid to $1.2609 from $1.2752.
— Wholesale gasoline rose 1.8 percent to $1.33 a gallon. Heating oil gained 1.3 percent to $1.70 a gallon. Natural gas rose 0.6 percent to $2.96 per 1,000 cubic feet.
— Gold rose 0.2 percent to $1,284.10 an ounce and silver added 0.7 percent to $15.65 an ounce. Copper fell 0.3 percent to $2.62 a pound.