A trader works on the floor at the NYSE in New York

A trader works on the floor at the New York Stock Exchange in New York on Friday.

NEW YORK — The S&P 500 was down slightly while the Dow was flat in late Friday trading as renewed jitters over the U.S.-China trade war were offset by bargain-hunting investors.

President Donald Trump said the United States and China were pursuing trade talks, but he was not ready to make a deal, fanning fears over the impact of the trade war on the global economy. Trump also said the United States would continue to refrain from doing business with Chinese telecoms equipment giant Huawei Technologies.

“The market action today and yesterday just shows investors feel indecisive about where this whole thing is headed,” said Rick Meckler, partner, Cherry Lane Investments, a family investment office in New Vernon, N.J.

“As volatility has picked up, you’ve gotten more interest on the part of traders,” he said. “There are definitely buyers when the market moves lower.”

Shares of chipmakers and other tariff-sensitive technology companies fell, with the Philadelphia SE Semiconductor index down 1.3%.

The Dow Jones Industrial Average rose 16.82 points, or 0.06%, to 26,395.01, the S&P 500 lost 7.34 points, or 0.25%, to 2,930.75, and the Nasdaq Composite dropped 47.33 points, or 0.59%, to 7,991.82.

Uber Technologies Inc. shed 6.3% after the ride-hailing company reported a record $5.2 billion quarterly loss and revenue that fell short of Wall Street targets.

DXC Technology tumbled 31.3% after the IT and consulting services provider cut its full-year profit and revenue forecast.

Nektar Therapeutics shares plunged after the drug developer flagged manufacturing issues with its experimental cancer drug bempeg.

Declining issues outnumbered advancing ones on the NYSE by a 1.85-to-1 ratio; on Nasdaq, a 1.84-to-1 ratio favored decliners.

The S&P 500 posted 44 new 52-week highs and nine new lows; the Nasdaq Composite recorded 55 new highs and 120 new lows.