Stocks rose on Thursday as Apple and Micron surged to lead the tech sector higher. Investor sentiment was also boosted by the Federal Reserve's updated outlook on interest-rate hikes.
The Dow Jones Industrial Average closed 216.84 points higher at 25,962.51 as a 3.7 percent gain in Apple offset a decline of 1.6 percent in J.P. Morgan Chase. The closed 1.1 percent higher at 2,854.88 while the Nasdaq Composite outperformed, rising 1.4 percent to 7,838.96.
Apple rose after Needham upgraded the stock to strong buy from buy, citing "value upside" in the firm's ecosystem. Thursday's gains led the stock to break above its 200-day moving average for the first time since November.
Micron shares jumped 9.6 percent after reporting quarterly earnings that beat analyst expectations. Those gains lifted the VanEck Vectors Semiconductor ETF (SMH) by 3.5 percent.
"There's been a lot of buying in the tech sector after some good news," said Ilya Feygin, senior strategist at WallachBeth Capital. "Tech has definitely been the leader. There's been a lot of strength coming from there; I think a lot of that is deployment of cash."
Equities also got a lift as investors largely cheered the latest policy announcement from the Fed.
On Wednesday, the Fed said it does not expect to raise rates at all in 2019. The central bank had forecast at least two rate hikes for this year back in December. The Fed added it expects to end its balance-sheet reduction process by the end of September.
Treasury yields fell sharply on Wednesday, with the benchmark 10-year rate hitting its lowest level in a year. The yield traded at 2.53 percent on Thursday while the short-term 2-year rate held at 2.41 percent. Yields move inversely to prices.
"Some people assume, rightly or wrongly, that if the Fed is assuring low rates for the foreseeable future, then that is going to force everything else to trade richer from a valuation basis," WallachBeth's Feygin said. "That caused some inflows today."
However, it also lowered its economic growth forecast for 2019, raising concern over a possible slowdown in the economy.
"Fed Chair Powell is causing anguish amongst global investors even though the initial reaction was an instant grab for equities," said Jeff Kilburg, CEO of KKM Financial.
These moves come after a slew of negative commentary from companies like FedEx, BMW and UBS. Earlier this week, FedEx CFO Alan Graf said: "Slowing international macroeconomic conditions and weaker global trade growth trends continue." Meanwhile, BMW said it is looking to cut $13.6 billion in costs this year while UBS noted the first quarter could be one of its worst ever.
Economic data have also been largely disappointing. The Citi Economic Surprise Index recently hit its lowest level since August 2017 and is still deep in negative territory. A negative print on the index shows data are underperforming economist expectations.
Still, the U.S. economy is on solid ground compared to the rest of the world, said Charlie Ripley, senior investment strategist at Allianz Investment Management. He also said: "While the Fed continues with the wait-and-see policy stance, we think it would require a material deterioration in growth or some exogenous shock to the markets for the Fed to be completely done raising rates in the current cycle."
On top of digesting the Fed's announcement, investors are also grappling with mixed news on the trade front. President Donald Trump said Wednesday that Washington's tariffs on Beijing could stay on for a "substantial period of time."
Biogen tanked more than 29 percent after discontinuing trials for a drug aimed at treating Alzheimer's Disease. The move sent the iShares MSCI Nasdaq Biotechnolgy ETF (IBB) down 1.1 percent.
—CNBC's Silvia Amaro contributed to this report.