NEW YORK — The stock market extended a streak of erratic trading Wednesday, rebounding from early losses and rising moderately after a drop in oil inventories lifted hopes for an economic recovery.
The day, which began with a sharp slide driven by a big drop in China’s biggest stock market, followed a trading pattern seen in markets around the world this week. Stocks have alternately advanced and retreated as investors shuttle between worries about the economy’s challenges, namely consumer spending and high unemployment, and nascent signs of healing.
While the surprising decline in crude inventories was reassuring, there is still plenty of caution among investors. Even as stocks recovered, Treasury prices held on to most of their gains. Government debt is a haven investment in a struggling economy.
News from the Energy Department that the nation’s oil inventory fell by more than 8 million barrels in the past week sent oil prices and then stocks higher, as investors bet that the drop in stockpiles is an indication that energy demand is rising and the economy is indeed improving.
Stocks’ sharp turn shows just how sensitive investors are to the latest bits of news, hungry for any sign that the economy is indeed healing and that the more than 40 percent surge in stocks since March has been warranted.
Analysts say the financial markets are likely to bounce around in the near term as investors try to reconcile their hopes for an economic recovery with the reality that it might not come as fast or be as strong as many people expected.
The Dow Jones industrials rose 61.22, 0.7 percent, to 9,279.16. The Standard & Poor’s 500 rose 6.79, 0.7 percent, to 996.46, while the Nasdaq composite rose 13.32, 0.7 percent, to 1,969.24.
About three stocks rose for every two that fell on the New York Stock Exchange, where volume came to a light 988.3 million shares.
Farm-equipment maker John Deere reported a 27 percent drop in its fiscal third- quarter profit but also did better than Wall Street expected. Deere tumbled $1.31, 2.9 percent, to $43.78.
Analysts said Wall Street’s gains Wednesday were likely magnified by short-covering, in which investors have to buy stock after having earlier sold borrowed shares in a bet they would fall. That rush to cover ill-timed bets can quicken the market’s climb.
At the same time, money managers and investors are still afraid of missing out on a rally that began in March and has continued despite periodic setbacks.
“I think people would like to buy (stocks) lower, but as the market creeps higher, people are kind of forced to buy,” said Nick Kalivas, vice president of financial research at MF Global. “The action today especially has been much stronger than I would hope, and it is making me nervous about my bearish view.”



