Stocks eked out tiny gains Wednesday as oil prices continued to recover and investors hoped the worst is over for the beleaguered energy industry. Telecommunications companies, which have climbed as the rest of the market has struggled this year, also rose.
Indexes wavered between tiny gains and losses for most of the day, then climbed steadily in the last 90 minutes of trading. Oil prices increased for the seventh time in eight days, an encouraging sign after many months of sharp declines.
Agribusiness giant Monsanto took its biggest loss in five years, hurting materials companies. But the market is at its highest levels since the first week of the year.
The Dow Jones industrial average rose 34.24 points, or 0.2%, to 16,899.32. The Standard & Poor's 500 index went up 8.10 points, or 0.4%, to 1,986.45. The Nasdaq composite index climbed 13.83 points, or 0.3%, to 4,703.42.
The price of oil has been plunging for almost two years, from more than $100 a barrel in mid-2014 to $26 a barrel last month. That decimated profits at energy companies and hurt banks that lent money to them. Oil has staged a modest recovery in the last couple of weeks.
Benchmark U.S. crude rose 26 cents to close at $34.66 a barrel in New York, its highest closing price since Jan. 5. Brent crude ticked up 12 cents to $36.93 a barrel in London.
Energy stocks did the best in the market. Murphy Oil climbed 12.1%, and Marathon Oil picked up 14.3%.
Telecom stocks also rose, with Verizon Communications up 1.3%. Verizon and AT&T are trading at their highest prices in more than a year.
Agribusiness giant Monsanto skidded after cutting its annual profit forecast because of the strong dollar, competition from lower-cost generic products and lower commodity prices. The stock tumbled 7.8%. The news also pressured fertilizer maker CF Industries, which fell 4.2%.
Spirits maker Brown-Forman, whose brands include Jack Daniels and Korbel, also lowered its profit estimates because of the strong dollar. The company makes 60% of its sales overseas, and it's also being affected by cutbacks in spending by travelers and weak economies in some emerging markets. Its stock fell 1.5%.
A strong dollar hurts U.S. companies when they do business overseas: It makes their products more expensive compared with locally produced goods, and it reduces their revenue when the money is translated back into dollars.
Katie Nixon, chief investment officer of wealth management Northern Trust, said that matters because economic growth is so slow right now. Still, she said it's not a big problem for the U.S. economy as a whole, which relies more on services than sales of goods.
"The strong dollar is much more of an issue for the S&P 500 than it is for the U.S. economy," she said.
ADP, a payroll processing company, delivered another positive sign for the economy when it said private U.S. businesses added a healthy 214,000 jobs last month. That followed Tuesday's upbeat reports on construction and manufacturing. The federal government will release its jobs report Friday.
Bond prices fell. The yield on the 10-year Treasury note rose to 1.84% from 1.82%. Bond yields also climbed on Tuesday.
"The Treasury yield is increasing because the economy is better than people had feared, and investors feel that the Fed is going to hike rates," Nixon said.
Bond yields are still relatively low. That has helped telecommunications and utility stocks, which are seen as similar to bonds: They are less-volatile stocks that tend to pay high dividends. Investors have favored them in recent months as the rest of the market turned turbulent. They are the two best-performing sectors in the market so far this year.
Big 5 Sporting Goods fell 10.4% after the El Segundo-based retailer offered a weak profit forecast. Privately held rival Sports Authority said it will file for Chapter 11 bankruptcy protection and close almost a third of its stores.
Digital health and wellness company Everyday Health leaped 19.1% after a strong quarterly report. Teen retailer Abercrombie & Fitch rose 4.4% after it said its Hollister business did particularly well in the latest quarter.
Germany's DAX rose 0.6%, and France's CAC rose 0.4%. The FTSE 100 index of leading British shares dipped 0.1% after asset manager BlackRock warned that if Britain votes to leave the European Union, the economy will be "economically worse off."
A weak yen added to investor optimism, sending Japan's benchmark Nikkei 225 up 4.1%. Hong Kong's Hang Seng added 3.1%.
The price of gold rose $11 to $1,241.80 an ounce. Silver rose 27 cents to $15.02 an ounce. Copper rose 4 cents to $2.18 a pound.
In other energy trading, the price of natural gas fell 6 cents to close at $1.68 per 1,000 cubic feet. Natural gas is at its lowest price in 17 years. Wholesale gasoline rose 1 cent to $1.31 a gallon. Heating oil rose 1 cent to $1.11 a gallon.