(AP) -- The Dow Jones Industrial Average closed above 29,000 points for the first time and the S&P 500 index hit its second record high in three days Wednesday.
The milestones came on a day when the market traded in a narrow range as investors weighed the latest batch of corporate earnings reports and the widely anticipated signing of an initial trade deal between the U.S. and China.
President Donald Trump and China's chief negotiator, Liu He, signed the "Phase 1" deal before a group of corporate executives and reporters at the White House. The pact eases some sanctions on China. In return, Beijing has agreed to step up its purchases of U.S. farm products and other goods.
"This was telegraphed well enough that the market is kind of looking through it and toward the next phase and what that means," said Keith Buchanan, portfolio manager at Globalt Investments.
Health care stocks accounted for much of the market's gains. Utilities and makers of household goods also rose. Those gains outweighed losses in financial stocks, companies that rely on consumer spending and the energy sector.
The S&P 500 index rose 6.14 points, or 0.2%, to 3,289.29. The index also climbed to an all-time high on Monday.
The Dow gained 90.55 points, or 0.3%, to 29,030.22. The Nasdaq composite added 7.37 points, or 0.1%, to 9,258.70.
Smaller-company stocks fared better than the rest of the market. The Russell 2000 picked up 6.66 points, or 0.4%, to 1,682.40.
The benchmark S&P 500 index is on track for its second straight weekly gain.
Bond prices rose. The yield on the 10-year Treasury note fell to 1.78% from 1.81% late Tuesday.
While limited in its scope, investors have welcomed the U.S.-China deal in hopes that it will prevent further escalation in the 18-month long trade conflict that has slowed global growth, hurt American manufacturers and weighed on the Chinese economy. The world's two largest economies will now have to deal with more contentious trade issues as they move ahead with negotiations. And punitive tariffs will remain on about $360 billion in Chinese goods as talks continue.
With the "Phase 1" agreement now a done deal, investors have more reason to focus on the rollout of corporate earnings reports over the next few weeks. Earnings have been flat to down for the last three quarters, and if the fourth quarter meets expectations, it should be around the same.
However, analysts are projecting 2020 corporate earnings growth to jump around 9.5%, which is why traders will be listening this earnings reporting season for any clues management teams give about their business prospects in coming months.
"We're expecting a reacceleration in the back end of the year, so any (company) guidance that brings any type of skepticism to that could threaten the recent rally we've had and the gains that we've accrued in the past few months," Buchanan said.
Health care stocks powered much of the market's gains Wednesday. Several health insurers climbed as investors cheered a solid fourth-quarter earnings report from UnitedHealth Group.
The nation's largest health insurer, which covers more than 49 million people, said its revenue rose 4% on a mix of insurance premiums and growth from urgent care and surgery centers. Its stock rose 2.8%. Other health insurers also moved higher. Anthem gained 1.6%, Cigna added 1.5% and Humana climbed 1.9%.
Technology companies also rose. The sector is reliant on China for sales and supply chains and benefits from better trade relations. Microsoft gained 0.7% and Advanced Micro Devices gained 0.8%.
Utilities and consumer staples sector stocks also notched gains. Edison International climbed 2.5% and PepsiCo rose 1.7%.
Financial stocks fell the most. Bank of America slid 1.8% after reporting weaker profits due to the rapid decline of interest rates in late 2019.
Energy stocks also fell along with the price of crude oil. Valero Energy dropped 3.3%.
Homebuilders marched broadly higher on news that U.S. home loan applications surged 30.2% last week from a week earlier. The pickup in mortgage applications reflects heightened demand for homes and suggests many buyers are eager to purchase a home now, rather than waiting for the traditional late-February start of the spring homebuying season. Hovnanian Enterprises jumped 6.4%.
Target slumped 6.6% after a disappointing holiday shopping season prompted the retailer to cut its forecast for a key sales measure in the fourth quarter. The company said weak sales of electronics, toys and home goods crimped sales growth to just 1.4% in November and December.
Benchmark crude oil fell 42 cents to settle at $57.81 a barrel. Brent crude oil, the international standard, dropped 49 cents to close at $64 a barrel.
Wholesale gasoline fell 1 cent to $1.64 per gallon. Heating oil declined 3 cents to $1.88 per gallon. Natural gas fell 7 cents to $2.12 per 1,000 cubic feet.
Gold rose $9.70 to $1,552.10 per ounce, silver rose 25 cents to $17.92 per ounce and copper fell 1 cent to $2.87 per pound.
The dollar fell to 109.91 Japanese yen from 110.00 yen on Tuesday. The euro strengthened to $1.1150 from $1.1128.
Markets in Europe closed mostly lower.