US stocks finished broadly higher Tuesday as investors grew more optimistic about the prospects for a resolution to the costly trade dispute between the United States and China.
Technology, financial, and health care stocks powered much of the rally, which gave the benchmark S&P 500 index its biggest gain this month and a three-day winning streak. The wave of buying also drove a 372-point gain for the Dow Jones industrial average, ending its four-day run of losses.
President Trump said he might let a March 2 deadline slide in trade talks with China if the two countries get close to a deal. Earlier, the White House had called the date a ‘‘hard deadline.’’
Both nations are trying to reach a deal before March 1. That’s when additional tariffs will kick in, escalating the conflict and further hurting companies and consumers with higher prices on materials and products.
‘‘Any deal would help alleviate some of the uncertainty,’’ said Karyn Cavanaugh, senior markets strategist at Voya Investment Management. ‘‘The GDP hasn’t been dinged that much from the trade tariffs, it’s really been the uncertainty. It’s spilling over into business plans, and that’s a hurdle for growth.’’
The S&P 500 gained 34.93 points, or 1.3 percent, to 2,744.73. The Dow climbed 372.65 points, or 1.5 percent, to 25,425.76. The index was briefly up by 405 points.
The Nasdaq Composite rose 106.71 points, or 1.5 percent, to 7,414.62. The Russell 2000 index of smaller-company stocks, which has been leading the other indexes this year, added 19.25 points, or 1.3 percent, to 1,538.23.
European markets finished higher.
Stocks got an early boost Tuesday after lawmakers reached a tentative deal to avoid another partial government shutdown. The agreement on border security involves far less money for a wall than the White House wanted, and it’s not clear whether Trump will support the deal.
Still, the move alleviated some uncertainty for the market as the United States and China continue trade negotiations, which resumed Monday.
Fears of a global slowdown still linger. Europe and China have both reported slower growth. Those concerns have dimmed the outlook for corporate earnings growth this year.
The latest company earnings season has featured solid profit growth for the final three months of 2018, but caution about conditions going forward. Analysts predict profits will fall in the current quarter, according to FactSet.
‘‘Overall earnings are good, but we’re looking for a bit of a slowdown in the first quarter because we have a high bar to hurdle over,’’ Cavanaugh said.
Investors continued to size up the latest batch of corporate earnings Tuesday.
Under Armour climbed 6.9 percent after the maker of sportswear beat Wall Street forecasts. A surge in international sales offset a downturn in Under Armour’s US sales.
Molson Coors plunged 9.4 percent as lower sales volume sunk revenue and profit during the fourth quarter. The brewer will also restate some past results. The maker of Molson and Coors beer said tax accounting errors in 2016 and 2017 prompted the restatements.
Traders bid up shares in Coty Inc., maker of CoverGirl, Max Factor, and other cosmetic brands, after German conglomerate JAB Holdings offered to take a majority stake in the company. Coty’s shares jumped 12.5 percent.
Technology stocks helped power the market’s gains Tuesday. Micron Technology climbed 4.7 percent. Financial companies also notched big gains. Brighthouse Financial surged 13.9 percent.
US benchmark crude rose 1.3 percent to settle at $53.10 per barrel in New York. Brent crude, the standard for international oil prices, gained 1.5 percent to $62.42 in London.
Bond prices fell. The yield on the 10-year Treasury rose to 2.68 percent from 2.66 percent late Monday.