Story updated at 4:05 p.m. EST.
Wall Street closed Thursday with a solid gain, as strong U.S. manufacturing data pointed to a recovery in the struggling sector and some investors saw opportunities after weeks of volatility.
The Dow Jones Industrial Average closed the day up 212 points, or 1.3 percent, while the Standard & Poor's 500 index was up 22 points, or 1.1 percent, and the Nasdaq composite rallied 40 points, or 0.9 percent.
Orders for U.S. durable goods rose more than expected in January as demand picked up across the board, offering a ray of hope for the downtrodden manufacturing sector.
The second uptick in two days for stocks came despite a drop in oil prices, which have been a major influence on markets this year as investors view weak energy demand as a sign of sluggish global growth.
The S&P 500 has recovered 6 percent in the past nine sessions but it remains down 5 percent in 2016 as oil hovers near decade lows. Some investors took Wall Street's recent gains as a sign that prices are stabilizing.
"I have a lot of people calling me and saying 'Hey, I've got $50,000 in the bank earning zero percent. Is it time to put it to work?'," said Jake Dollarhide, chief executive officer of Longbow Asset Management in Tulsa, Oklahoma, which has about $50 million in assets under management.
Nine of the 10 major S&P sectors were higher, with strong gains in financial and telecom stocks. The energy sector was down 0.45 percent.
The financial sector has fallen 12 percent this year, easily the worst performer on the S&P, as fears loom about a wave of defaults from oil and gas companies.
Shares of Salesforce.com Inc surged 8.2 percent after the online customer management software maker reported higher-than-expected revenue and raised its full-year forecast. The stock gave the biggest boost to the S&P 500.
Gunmaker Sturm, Ruger & Co. jumped 6.5 percent after reporting quarterly results that handily beat Wall Street's expectations.
Tech leader Alphabet Inc. rose 1 percent, fueling much of the Nasdaq's gains.
Food company Kraft Heinz Co. rose 2.1 percent, while Gap Inc. was down 0.11 percent ahead of its results after the close.
Advancing issues outnumbered decliners on the New York Stock Exchange by 1,969 to 997. On the Nasdaq, 1,497 issues rose and 1,170 advanced.
The S&P 500 index showed 31 new 52-week highs and two new lows, while the Nasdaq recorded 31 new highs and 42 lows.