Wall Street was little changed on Wednesday, clawing back from losses of more than 1 percent earlier, as gains in energy and bank stocks helped offset worries about a global economic slowdown.
The energy index, the worst performing S&P sector last year, climbed 2.14 percent after oil prices reversed course to trade higher by nearly 3 percent.
A pullback in the heavy-weight technology index and a reversal in stocks such as Facebook Inc, Apple Inc and Amazon.com Inc also helped the market.
"There was a bounce back in oil prices which contributed to pushing markets higher," said Randy Frederick, vice president of trading and derivatives for Charles Schwab in Austin, Texas.
"There is also a lot going on in the first day of trading, with positions being adjusted, funds being reallocated so it could impact the general direction of the market. But volumes are still light which could also explain moves like these today."
At 11:49 a.m. ET, the Dow Jones Industrial Average was down 30.47 points, or 0.13 percent, at 23,296.99, the S&P 500 was down 2.01 points, or 0.08 percent, at 2,504.84 and the Nasdaq Composite was up 7.85 points, or 0.12 percent, at 6,643.13.
Earlier, the markets got off to a dour note as data showed China's factory activity contracted for the first time in 19 months in December, hit by the Sino-U.S. trade war, while Euro zone manufacturing activity barely avoided contraction.
Healthcare, the best performing among the 11 major S&P sectors last year, dropped 1.35 percent and along with the defensive real estate, utilities and consumer staples sectors weighed on the markets.
Financials rose 0.59 percent. Bank stocks, in particular, rose 1.47 percent, getting a boost from Barclays predicting that U.S. large-cap bank stocks, which lagged in 2018, could outperform the S&P in 2019.
Frederick and Ryan Nauman, a market strategist at Informa Financial Intelligence in Zephyr Cove, Nevada, both cautioned that the concerns that roiled the market in 2018 were still around.
"Investors should expect swings and volatility in the market like last month, at least until the volumes pick up," said Nauman.
The grim factory readings come ahead of the closely watched U.S. manufacturing survey on Thursday, payrolls data on Friday and the U.S. earnings season later this month, which is expected to show corporate profit shrunk in the October-December quarter.
Meanwhile, a partial shutdown of the U.S. government entered its 12th day. The Democrat-controlled House plans to approve a spending package without funds for a U.S.-Mexico border wall, as President Donald Trump has demanded, and that could be a sticking point in the Republican-led Senate.
Investors are also grappling with the possibility of higher interest rates. But while the Federal Reserve has projected at least two more hikes, money markets imply a quarter-point cut by mid-2020.
Among stocks, Tesla Inc sank 6.3 percent after the electric car maker delivered fewer-than-expected Model 3 sedans in the fourth quarter and cut prices for all its vehicles in the United States in response to the loss of a green tax credit.
Advancing issues outnumbered decliners for a 1.91-to-1 ratio on the NYSE and a 1.90-to-1 ratio on the Nasdaq.
The S&P index recorded no new 52-week highs and three new lows, while the Nasdaq recorded nine new highs and 53 new lows.