The stock market has notched the year’s best stretch of gains, as investors take comfort from early signals that inflation is slowing and the economy is holding up.

The S&P 500 rose 1.7% on Friday, taking its rise for the week to 3.3% and marking its fourth consecutive positive week, a feat it had not achieved since October. The index is now more than 16% higher than its low point in June, although it remains 10% lower for the year.

The rally stands in stark contrast with the first half of the year, when Wall Street suffered its worst start in a half-century, as the war in Ukraine, soaring energy costs, rising interest rates and rapid inflation galvanized investors’ fears about the health of the economy.

In the past month, investors have welcomed data that showed cooling inflation, a robust labor market and resilient company earnings. Having braced for the worst, improvements in the economic outlook are being met with relief.

Federal Reserve officials have suggested that their campaign of interest-rate increases to tame inflation is not yet done. But some investors see recent economic data as grounds for the central bank to move less aggressively, easing worries that higher borrowing costs could push the economy into a severe downturn.

“The peak of freaking out about inflation and interest rates is done, and we are looking at something that is not quite as dramatic,” said Michael Purves, founder and CEO of Tallbacken Capital.

Advertising

The latest consumer price index report, released Wednesday, offered a moment of relief for Wall Street, as inflation slowed to 8.5% for the year through July, down from a 9.1% pace in the previous month.

Data showing that the economy in July regained all the jobs lost in the pandemic, along with weeks of better-than-expected earnings reports from companies, has assuaged some concern among investors that higher rates, which increase costs for companies, could cut more deeply into corporate America.

Stocks are higher because the inflation outlook has improved and the economic backdrop remains supportive. Although expectations are not as dour as they were, there are doubts about how long the rally can last.

“I am bullish on the market, but I am still an anxious and nervous bull,” Purves said. “We are not out of the woods just yet.”