(AP) -- Wall Street closed out a choppy week of trading with more of the same Friday, as a late-afternoon stumble led U.S. stock indexes to a mixed finish.
The S&P 500 ended the day just a fraction of a point higher after a burst of selling erased a 0.9% gain. Despite a three-day stretch of losses, the benchmark index still managed to finish higher for the week, its third straight weekly gain.
Big Tech and energy companies fell while health care and industrial stocks rose. The Dow Jones Industrial Average also eked out a gain, while the Nasdaq composite posted its fourth straight loss. Treasury yields were flat.
The market had been up for much of the day after the government reported that retail sales rose in September for the fifth straight month. That report appeared to overshadow new data showed U.S. industrial production had its weakest showing last month since the spring.
The market's late-day fade capped a week of volatility for stocks as companies began reporting their third-quarter results and traders' hopes for a new round of economic stimulus from Washington dimmed.
"The market is sort of bouncing around here," said Tom Martin, senior portfolio manager with Globalt Investments. "We've had a lot of noise lately and that's probably what we're going to have over the next couple of weeks."
The S&P 500 rose 0.47 points to 3,483.81. The Dow gained 112.11 points, or 0.4%, to 28,606.31. At one point, it had been up by 348 points. The Nasdaq fell 42.32 points, or 0.4%, to 11,671.56. The Russell 2000 index of small-cap stocks dropped 5.08 points, or 0.3%, to 1,633.81.
Despite the market's downbeat finish, the major stock indexes have already recouped most of their losses from September's market swoon.
Stocks have been mostly climbing this month, but trading became choppy this week as ongoing talks between Democrats and Republicans on an economic stimulus package failed to deliver results. Investors have been hoping that Washington would provide more financial support for the economy since July, when a $600-a-week extra benefit for the unemployed expired.
Traders have been watching economic data closely to see whether the loss of that beefed-up unemployment aid would lead to an overall pullback in spending. On Thursday, the government's said the number of Americans seeking unemployment aid increased last week to 898,000, a historically high level that underscores how the economy continues to be hobbled by the pandemic and recession that erupted seven months ago.
Friday's retail sales report provides some encouragement, suggesting Americans' appetite for spending remained solid last month. The Commerce Department said retail sales rose 1.9% in September, the fifth straight monthly increase.
"There's a need for stimulus, even though this data is heartening in a way," said Ross Mayfield, an investment strategist at Baird.
Still, given that the Nov. 3 election is fast approaching, the market is not expecting leadership in Washington to deliver an economic stimulus package before voters go to the polls, Mayfield said.
"Now, it's essentially baked in that we probably won't see anything until after the election," he said.
The retail sales report initially juiced shares in retailers and other companies that rely on consumer spending, but most of those gains evaporated by the end of the day.
Other data point to persistent weakness in the economy. The Federal Reserve said Friday that U.S. industrial production fell 0.6% last month, the weakest showing since April's 12.7% skid amid widespread business shutdowns due to the pandemic. Economists had been expecting an increase.
A surge in new coronavirus infections in Europe, the Americas and parts of Asia, is also giving traders reason to turn cautious. The new caseloads prompted governments in France and Britain to impose new restrictions aimed on containing the outbreak contributed to some of the selling in the market earlier this week.
Across the S&P 500, analysts are expecting companies to report another drop in profits for the summer from year-ago levels. But they're forecasting the decline to moderate from the nearly 32% plunge from the spring, reflecting some signs of improvement in the economy since then.
Analysts have been raising their earnings forecasts for how companies fared in the third quarter after lowering them sharply ahead of the second quarter. That means it will be tougher for companies reporting results the next couple of weeks to beat expectations.
"Those expectations have been rising all quarter," Mayfield said. "There's just going to be a higher hurdle to clear to impress investors."
Credit card issuer Ally Financial rose 2.7% after it reported better-than-expected results. Logistics company J.B. Hunt Transportation Services sank 9.7%, the biggest decliner in the S&P 500, after its third-quarter results fell short of analysts' expectations.
Several big companies report quarterly results next week, including Netflix, Coca-Cola, Tesla, Southwest Airlines and American Express.
The 10-year Treasury yield held steady at 0.74%.
Friday's early gains on Wall Street followed a broad rally in European stock indexes, which clawed back some of their heavy losses from a day earlier. Asian markets ended mixed.