Stocks rise on slowing inflation report, Dow on pace to snap 8-week losing streak

The three major indexes were on track to close the week higher.

Stocks rise on slowing inflation report, Dow on pace to snap 8-week losing streak

Stocks were higher Friday as the Dow Jones Industrial Average was on pace to snap an eight-week losing streak.

The Dow climbed 235 points, or 0.7%, and the S&P 500 gained 1.5%. The tech-heavy Nasdaq Composite was the outperformer, up 2.4%, helped by strong earnings from software companies and a fall in the 10-year Treasury yield.

A report showing inflation slowing a bit helped give stocks a boost on Friday. The core personal consumption expenditures price index rose 4.9% in April, down from the 5.2% pace seen the previous month. This particular report is watched closely by the Federal Reserve when setting policy.

Investors on Friday also continued to parse through retail earnings. Ulta Beauty shares were up about 9.8% after the company reported better-than-expected quarterly results, while Gap sunk 8% after slashing its profit guidance.

Tech stocks were among the top gainers in the S&P 500. Software company Autodesk rose 7.4% after reporting strong earnings for its most recent quarter. Dell Technologies jumped 13.6% on earnings and chipmaker Marvell advanced 3%. Crowdstrike and Datadog were also higher Friday, each up more than 5%.

The moves came as investors assessed the sustainability of this week's rally, and whether it's a relief bounce or the bottom of this year's long sell-off is in.

The Dow, S&P 500 and Nasdaq Composite are on track to close the week higher. The Dow is up 5.2% and on track to snap its longest losing streak since 1923. The S&P 500 is 5.2% higher and the Nasdaq is up 5.2% on the week. Both are riding seven-week losing streaks. A chunk of the week's gains came Thursday, when all three of the averages rallied as strong retail earnings lifted sentiment.

Stock picks and investing trends from CNBC Pro:

Still, the averages are well off their highs, with the Nasdaq Composite solidly in bear market territory and the S&P 500 having briefly dipped more than 20% below its record last week.

The Nasdaq is now sits about 23% from its record, while the S&P 500 and Dow are off by 13% and 9%, respectively.

"We think there's a good chance for some more strength here. This is sort of a classic bear market rally or bounce off the bottom," Troy Gayeski, chief market strategist for FS Investments, told CNBC's "Closing Bell: Overtime" on Monday. "Inflation expectations have rolled over recently."