The S&P 500 headed for a record close on Tuesday as Wall Street cheered stronger-than-expected quarterly profits from some of the largest publicly traded U.S. companies.

This is the busiest week of the corporate earnings season. Once the dust settles, more than 140 S&P 500 companies will have released their calendar first-quarter results. So far, the results have largely topped expectations. More than 78 percent of the S&P 500 companies that have reported have surpassed analyst expectations, according to FactSet data.

The broad index traded 0.8 percent higher at 2,932.09, above an all-time closing high of 2,930.75 set on Sept. 20.

Tuesday’s move toward an all-time closing high comes less than six months after a sharp decline in late December, which led the S&P 500 to its worst annual performance since 2008. But stocks quickly turned around as the Federal Reserve reversed course on monetary policy while the tone around U.S.-China trade talks improved.

“These market levels are justified,” said Kevin Barry, chief investment officer at Captrust Advisors. “The fourth-quarter sell-off actually prevented a recession because policymakers responded extremely quickly. Both President Xi and President Trump cooled off the rhetoric and Fed Chairman Jerome Powell came out and reversed course.”

The Dow Jones Industrial Average and Nasdaq Composite also traded higher, gaining 155 points and 1.2 percent, respectively. The tech-heavy Nasdaq was also headed for a record close.

Dow members Coca-Cola and United Technologies reported better-than-expected quarterly earnings on Tuesday. Their shares rose 1.7 percent and 2.5 percent, respectively.

Twitter shares jumped 16.3 percent on its stronger-than-expected results. The social media company said its monthly active users totaled 330 million, more than a FactSet estimate of 318 million.

Defense giant Lockheed Martin also rallied more than 6 percent after its earnings easily topped expectations. The company reported strong operating margins across all its major businesses, which include aeronautics and missiles.

“Among the key companies that have reported, most of them have beaten expectations,” said Peter Cardillo, chief market economist at Spartan Capital Securities. “That means we’re probably going to escape an earnings recession. That will be key for the market to rally from here.”

Wall Street also kept an eye on oil prices as they hit their highest level this year amid intensifying concern about global supplies. It comes after the U.S. announced a further clampdown on Iran’s oil exports.