By BERNARD CONDON
NEW YORK — Stocks wavered between small gains and losses on Thursday to close little changed as traders weighed generally strong earnings reports against the falling fortunes of energy companies.
Indexes rose from the opening of trading following encouraging quarterly results from Walmart (WMT) and the media giant Viacom (VIA), then flitted up and down most of the day. After four weeks of healthy gains for stocks and a series of record daily closes, the tepid trading wasn’t unexpected.
After a move higher so far, so fast, the market needs a pause.
“After a move higher so far, so fast, the market needs a pause,” said Quincy Krosby, a market strategist at Prudential Financial. “We need another catalyst to move higher.”
All three major U.S. indexes closed higher after a late-afternoon rally. The Dow Jones industrial average (^DJI) rose 40.59 points, or 0.2 percent, to 17,652.79, a record. It was the seventh record close for the blue-chip index in eight trading days.
A slump in the energy sector held back the overall market as oil prices continued to slump over fears that supplies will outstrip demand. Benchmark U.S. crude lost 4 percent and is trading at a four-year low.
Energy stocks closed down 1.4 percent, after being off more 2 percent earlier in the day.
Energy company shares trimmed their losses after a late-day report from the Wall Street Journal that Halliburton (HAL) is in talks to buy rival oil-field service company, Baker Hughes (BHI), citing unnamed sources. Baker Hughes soared $7.77, or 15 percent, to $58.75.
In other deal news, DreamWorks (DWA) jumped 14 percent on a New York Times report that the toy maker Hasbro (HAS) is trying to buy the movie studio. And Berkshire Hathaway (BRK-B), run by billionaire Warren Buffett, said it was buying the Duracell battery business from Procter Gamble (PG) in a deal valued at about $3 billion.
Jim Russell, a portfolio manager at Bahl Gaynor, an investment firm, said the deal making helped keep stocks positive for the day.
“It’s another source of demand for stocks, and presumably from smart buyers,” he said. “It’s lent some optimism to the market.”
Among other stocks making big moves:
- Walmart jumped $3.74 to $82.94 after reporting earnings and revenue that were higher than financial analysts had expected. The 4.7 percent gain was the biggest in the Dow.
- Viacom, which owns the Paramount studio, MTV and VH1, rose $1.95, or 2.8 percent, to $71.20 after its results topped forecasts.
- Amazon (AMZN) rose 1.6 percent following news that it had resolved a bitter, long-running dispute with the book publisher Hachette. Amazon stock gained $4.97 to $316.48.
Benchmark U.S. crude fell $2.97 to close at $74.21 a barrel on the New York Mercantile Exchange. Brent crude, a benchmark for international oils used by many U.S. refineries, fell $2.46 to close at $77.92 a barrel, also a 4-year low, on the ICE Futures exchange in London.
In other energy futures trading on the NYMEX:
- Wholesale gasoline fell 10.5 cents to close at $2.002 a gallon.
- Heating oil fell 8.5 cents to close at $2.362 a gallon.
- Natural gas fell 20.8 cents to close at $3.977 per 1,000 cubic feet.
In metals trading, the price of gold edged up $2.40 to $1,161.50 an ounce. Silver was flat at $15.62 an ounce and copper fell three cents to $2.99 a pound.
U.S. government bond prices rose slightly. The yield on the 10-year Treasury note slipped to 2.34 percent from 2.36 percent on Wednesday.
What to watch Friday:
- At 8:30 a.m. Eastern time, the Commerce Department reports retail sales for October, and the Labor Department reports import and export prices, also for October.
- The University of Michigan releases its initial survey of consumer sentiment for November at 9:55 a.m.
- The Commerce Department reports business inventories for September at 10 a.m.
Some ceiling fans can be reversed to draw hot air down and keep you warmer. Check the owner’s manual (available online if you’ve misplaced it) to see if yours has this option. Use rolled up towels or draft-dodgers at the bottoms of doors. If you bake or roast in the winter, leave the oven door ajar to warm the kitchen and shut the door once the oven cools down. Finally, if push comes to shove, most utility companies offer budget billing solutions and heat assistance for senior citizens and lower-income customers.