(AP) -- U.S. stock indexes eked out tiny gains Wednesday following a wobbly day of trading as investors reviewed another set of mixed quarterly report cards from big companies.
Some of the companies' earnings topped analysts' expectations. Others put traders in a selling mood after warning that the slowing global economy and trade tensions are hitting their profits.
While it's still early this earnings season, traders are trying to gauge how much the U.S. trade war with China and a slowdown in global economic growth is hurting Corporate America.
The lack of direction in earnings Wednesday was reflected in the market, which spent most of the day wavering between tiny gains and losses.
"Fewer than a quarter of the companies have reported, so there's a lot more to come," said Sam Stovall, chief investment strategist at CFRA. "But the results have been mixed so far, even with the bar being set as low as it was."
The S&P 500 rose 8.53 points, or 0.3%, to 3,004.52. The benchmark index had been down about 0.2% before recovering toward the end of the day. It remains within 0.8% of its all-time high, which was set July 26.
The Dow Jones Industrial Average also rebounded from a midday drop, gaining 45.85 points, or 0.2%, to 26,833.95.
The Nasdaq composite added 15.50 points, or 0.2%, to 8,119.79. The Russell 2000 index of smaller companies picked up 1.99 points, or 0.1%, to 1,552.86.
Bond yields mostly held steady. The yield on the 10-year Treasury note was unchanged at 1.76%.
Roughly a quarter of the companies in the S&P 500 have reported how much they made from July through September, and analysts are still forecasting the index will end up showing a drop in earnings per share from a year earlier.
If they're right, it would be the first time earnings have fallen for three straight quarters since 2015-16, according to FactSet.
The weakest results are expected to come from companies that are reliant on the strength of the global economy, which has been slowing amid trade wars. Raw-material producers, technology companies and energy stocks are predicted to report drops of 10% or more, according to FactSet.
Analysts are forecasting stronger growth for communications companies and businesses that sell to consumers, which have been the strongest part of the economy.
One worrisome sign is that estimates for 2020 corporate earnings growth have been mostly reduced since the end of last month, Stovall said.
"There's so much uncertainty out there right now," he said. "The US-China trade relations, whether that is likely to see improvement, and what kind of an impact Europe could experience when Britain does finally leave the EU."
Health care companies helped lead stocks higher Wednesday, powered in part by Thermo Fisher Scientific, which reported stronger-than-expected profits and raised its forecast for full-year revenue and profit. The stock gained 5.7%.
Boeing rose 1% after it said its 737 Max airplane may return to service by the end of the year and that it will gradually increase 737 production by late 2020. That helped make up for its weaker-than-expected profit for the latest quarter.
On the losing end was Texas Instruments, which said its customers have become far more cautious than they were even 90 days ago, with trade tensions a big factor. It reported stronger profits for the latest quarter than analysts expected, but its forecast for this quarter fell short of their estimates. It lost 7.5%.
Caterpillar, another company whose fortunes are seen on Wall Street as closely tied to President Donald Trump's trade wars, briefly declined before climbing 1.2% after reporting weaker-than-expected profit for the latest quarter.
Several big companies are scheduled to report quarterly results on Thursday, including American Airlines Group, Amazon and Visa.
Benchmark U.S. crude oil rose $1.49 to settle at $55.97 a barrel. Brent crude oil, the international standard, gained $1.47 to close at $61.17 a barrel.
Wholesale gasoline rose 4 cents to $1.65 per gallon. Heating oil climbed 2 cents to $1.96 per gallon. Natural gas rose 1 cent to $2.28 per 1,000 cubic feet.
Gold rose $8.20 to $1,489.90 per ounce, silver rose 8 cents to $17.52 per ounce and copper rose 4 cents to $2.66 per pound.
The dollar rose to 108.65 Japanese yen from 108.46 yen on Tuesday. The euro strengthened to $1.1128 from $1.1124.
Stock indexes in Europe closed mixed Wednesday as the United Kingdom's pending exit from the European Union appeared set for yet another delay.