The S&P 500 and the Dow Jones industrial average turned positive for the year on Thursday, a day after the U.S. Federal Reserve signalled fewer interest rate hikes for the year.
The Fed's dovish stance weighed on the U.S. dollar, which catapulted commodity prices to their highest levels this year. The best performing sectors in the S&P 500 were materials and energy.
"It's a continued reaction from the Fed's move yesterday," said David Lefkowitz, senior equities analyst at UBS Americas Wealth Management in New York.
The Fed on Wednesday pointed to moderate U.S. economic growth and strong job gains but cautioned about risks from an uncertain global economy. The central bank pointed to the possibility of two more rate hikes before the end of the year, having laid out four hikes in 2016 when it raised rates in December.
The Dow Jones industrial average .DJI was up 181.96 points, or 1.05 percent, to 17,507.72, the S&P 500 .SPX had gained 15.59 points, or 0.77 percent, to 2,042.81 and the Nasdaq Composite .IXIC had added 11.60 points, or 0.24 percent, to 4,775.57.
U.S. crude CLc1 was up 4.42 percent at $40.15 a barrel and the market pinned its hopes on a plan by major oil producers to freeze output to mitigate a global glut..
Healthcare .SPXHC was the only decliner among the 10 major S&P 500 sectors. It fell 0.98 percent, dragged down by Eli Lilly's (LLY.N) 4.5-percent fall.
Industrials .SPLRCI gained 2 percent, propped up by General Electric's (GE.N) 2.9-percent rise to $31.06. The stock gave the biggest boost to the S&P 500.
FedEx (FDX.N) was up 10.9 percent at $160.01 after the package delivery company forecast better-than-expected full-year earnings.
Endo International (ENDP.O) was down 12.5 percent at $29.68, after the drugmaker forecast first-quarter results below estimates.
Advancing issues outnumbered declining ones on the NYSE by 2,473 to 562, for a 4.40-to-1 ratio on the upside; on the Nasdaq, 1,856 issues rose and 901 fell for a 2.06-to-1 ratio favouring advancers.
The S&P 500 posted 59 new 52-week highs and 6 new lows; the Nasdaq recorded 65 new highs and 72 new lows.
(Additional reporting by Abhiram Nandakumar; Editing by Nick Zieminski)
This story has not been edited by Firstpost staff and is generated by auto-feed.