Stocks closed broadly higher on Wall Street as gains by technology companies and banks helped the market gain back almost half the ground it lost in a big sell-off the day before and more in Tuesday’s Stock Market Update.

The bounce came as investors welcomed China’s decision to stabilize its currency, easing some of the pressure in its trade war with the U.S. The move suggests Beijing might hold off from aggressively allowing the yuan to weaken as a way to respond to U.S. tariffs on Chinese goods.

News that China allowed its currency to depreciate against the dollar to its lowest level in 11 years sparked Monday’s steep stock market sell-off, knocking the S&P 500 down 3%. The benchmark index had made up about a third of those losses in late-afternoon trading Tuesday.

“We’re getting a nice move here, but if you look at what the tone of the market might be for the next few days it still could be under some pressure,” said Jeff Kravetz, regional investment director for U.S. Bank Wealth Management. “Right now investors are quite nervous and the reason for the nervousness is not only the trade issue, but we’re also seeing weakening economic data, not only here, but overseas.”

Technology stocks, which bore the brunt of Monday’s sell-off, accounted for a big share of the market’s broad gains Tuesday. Apple rose 1.9% and Microsoft added 1.8%. The companies get significant revenue from China and have been highly sensitive to swings in the ongoing trade dispute.

Financial companies also helped lift the market. Wells Fargo gained 1.6% and Bank of America rose 1.2%.

Retailers and health care and communications services companies also notched solid gains. Foot Locker rose 3.4% and Merck added 1.5%. Facebook added 1.5%.

Industrials also rose. Aircraft components maker TransDigm jumped 13.5% after raising its profit forecast and delivering solid quarterly earnings.

Energy stocks dropped along with the price of crude oil. Materials sector stocks also fell.

A government report suggesting a cooling U.S. job market kept bond yields in check after an early gain. The yield on the 10-year Treasury briefly rose to 1.77%, but then declined to where it stood a day earlier at 1.71%.

Solid earnings results helped lift other sectors. Animal health company Zoetis climbed 7.6% and led health care stocks higher.

STOCK MARKET UPDATE

KEEPING SCORE: The S&P 500 rose 37 points, or 1.3%, to 2,881. The Dow Jones Industrial Average rose 311 points, or 1.2%, to 26,029. The Nasdaq climbed 107 points, or 1.4%, to 7,833.

ANALYST’S TAKE: Investors are growing more anxious as the U.S. and China increase their trade war from a simmer to a boil and threaten global economic growth.

“What’s really come into the market and spooked investors is the sense that the stakes are rising again,” said James McCann, senior economist at Aberdeen Standard Investments.

The lingering trade dispute is looming over closely interconnected supply chains and other economies risk becoming collateral damage. Investors should be focusing on the trade dispute’s impact on the broader economy, including industrial production, along with business investment and sentiment, McCann said.

UNDER SCRUTINY: Novartis fell 2.7% after the Federal Drug Administration disclosed that it is reviewing the accuracy of data on Zolgensma, a drug for treating spinal muscular atrophy in children. Novartis is the parent company of AveXis, which makes the drug. Several other drugmakers also fell. Mallinckrodt tumbled 12%, McKesson dropped 4%, AmerisourceBergen slid 5.1% and Teva Pharmaceuticals slumped 9.8%.

TOO BLAND: International Flavors & Fragrance tumbled 15.9% after the company trimmed its forecast following a disappointing earnings report. Profit and revenue came in below Wall Street forecasts during the second quarter. Its key food ingredients unit recorded a sales decline.

DRIVING GROWTH: Take-Two Interactive Software jumped 7.9% on a surge in sales of “Grand Theft Auto” and other popular video games. The company, which also makes the “Red Dead Redemption” games, beat Wall Street’s fiscal first quarter profit forecasts and gave investors a surprisingly good sales forecast for the current quarter.

© The Associated Press. All rights reserved.