Dow rises slightly, but loses more than 2% on week

Stocks finished Friday with slight gains but the major indexes capped the week with significant losses between a slew of somber economic reports and increasing tensions between China and the U.S.

The Dow Jones Industrial Average advanced on Friday by 60.08 points, or 0.25%, to 23,685.42, but ended the week lower by 2.65%. Earlier in the day, the 30-stock average dropped more than 270 points.

The S&P 500 finished Friday’s session up 0.39% at 2,863.70 while the Nasdaq Composite added 0.79% to close at 9,014.56. 

The major averages clawed back their losses throughout the afternoon as retail stocks turned around despite a record decline in monthly retail sales. The SPDR S&P Retail ETF (XRT) rose 2% after sliding more than 1.4% earlier in the session. Best Buy, Kohl’s and Nordstrom rose. Walmart and Home Depot each advanced 2%.

Friday’s turnaround also followed better-than-expected data on U.S. consumer sentiment. The University of Michigan’s consumer sentiment index unexpectedly rose in early May as U.S. fiscal stimulus measures “improved consumers’ finances and widespread price discounting boosted their buying attitudes.”

For the week, however, the Nasdaq Composite and S&P 500 were down 1.1% and 2.2%, respectively, with the latter notching its worst week since March.

“Given the amount of uncertainty about this crisis that still looms, we should not be surprised by the setbacks we’ve seen in markets this week,” said Scott Knapp, chief market strategist at CUNA Mutual Group.

U.S. monthly retail sales fell by 16.4% in April, a record. Economists polled by Dow Jones expected a decline of 12.3%. So-called core retail sales —which exclude auto, gas, food and building materials sales — dropped 15.3%.

“I guess you could say we knew it was weak,” said John Briggs, head of strategy at NatWest Markets. “The problem is you can’t dismiss all this bad news for April. If you have a deeper hole, you’re starting point is lower.”

Stocks initially tumbled on the retail data. Market sentiment also took a hit amid rising trade tensions between China and the U.S. 

The Trump administration moved to block semiconductor shipments to Chinese company Huawei. The Commerce Department said it would “strategically target Huawei’s acquisition of semiconductors that are the direct product of certain U.S. software and technology.” 

Meanwhile, Hu Xijin, editor-in-chief of Chinese state-run publication Global Times, tweeted on Friday that China would “restrict or investigate” U.S. companies including Qualcomm, Cisco Systems and Apple if the U.S. takes further action to block Huawei’s supply chain. Hu’s Twitter account was closely followed last year by traders looking for insight on the U.S.-China trade war. 

Shares of semiconductor makers Applied Materials and Skyworks Solutions both declined. Apple shares slid 0.5% while Qualcomm fell 5.1%.

“This is not an ideal time to be ratcheting up the trade war with China,” said Randy Frederick, vice president of trading and derivatives at Charles Schwab. “I don’t really quite understand what the rationale is there.”

“Clearly, the administration wants to see the market do better, but the things they’re doing with China right now are making it worse,” he said. 

CNBC’s Patti Domm contributed to this report.

Subscribe to CNBC PRO for exclusive insights and analysis, and live business day programming from around the world.

Stocks finished Friday with slight gains but the major indexes capped the week with more significant losses.