NEW YORK (Reuters) - An Apple-led tech rally pushed Wall Street higher on Thursday as jitters over the Federal Reserve’s forecast of an economic slowdown were calmed by upbeat economic data.

All three major U.S. stock indexes ended the session in the black, with the Nasdaq showing its fifth straight advance, the Dow posting its best day in over a month and the benchmark S&P 500 closing less than 3 percent below its all-time high set in September.

On Wednesday, the Fed surprised investors with a policy statement that was more dovish than expected, as it anticipated no further interest rate hikes this year due to signs of softness in the U.S. economy.

But worries about the central bank’s signals on the economy were mollified by upbeat data on Thursday. In separate reports, initial claims for jobless benefits fell more than expected and mid-Atlantic factory activity rebounded sharply.

Apple Inc led the tech sector’s advance, rising 3.7 percent ahead of the company’s expected streaming service debut next week.

“Today the market move is (due to) Apple’s weighting in the Dow, the absence of bad news and the market reacting to the Fed’s dovish tone,” said Matthew Keator, managing partner in the Keator Group, a wealth management firm in Lenox, Massachusetts.

But Keator would remind investors that the Fed was more hawkish just a few months ago. “The market should maybe be a bit more measured in extrapolating too much from the Fed’s dovish stance because that could change.”

Chipmakers also gave technology stocks a lift after Micron Technology Inc predicted a recovery in the memory market as it reported better-than-expected quarterly earnings. Micron’s stock jumped 9.8 percent.

The Philadelphia SE Semiconductor Index rose 3.5 percent, its biggest percentage gain since late January. The index has surged by nearly 25 percent so far this year.

FILE PHOTO: Traders work on the floor at the New York Stock Exchange (NYSE) in New York, U.S., March 20, 2019. REUTERS/Brendan McDermid

The Dow Jones Industrial Average rose 216.84 points, or 0.84 percent, to 25,962.51, the S&P 500 gained 30.65 points, or 1.09 percent, to 2,854.88 and the Nasdaq Composite added 109.99 points, or 1.42 percent, to 7,838.96.

Of the 11 major sectors in the S&P 500, all but financials ended the session in positive territory.

Rate-sensitive banks came under pressure as the Fed’s decision to cease monetary tightening caused the U.S. Treasuries yield curve to flatten to its narrowest spread since August 2007.

Conagra Brands Inc beat analysts’ quarterly earnings estimates as the packaged food maker raised prices to offset rising costs, sending its shares up 12.8 percent.

Shares of Biogen Inc plunged 29.2 percent after the company announced it would halt late-stage trials for its experimental Alzheimer’s drug.

Strauss & Co soared 31.8 percent as investors welcomed the iconic jeans maker back to the stock market. The 165-year-old company’s IPO was priced at $17 per share, and the shares closed at $22.41.

Ford Motor Co gained 2.1 percent after the automaker announced it was hiring its first outsider as chief financial officer in seven decades.

Advancing issues outnumbered declining ones on the NYSE by a 2.45-to-1 ratio; on Nasdaq, a 1.50-to-1 ratio favored advancers.

The S&P 500 posted 61 new 52-week highs and 3 new lows; the Nasdaq Composite recorded 85 new highs and 34 new lows.

Volume on U.S. exchanges was 7.59 billion shares, compared to the 7.62 billion average over the last 20 trading days.