The S&P 500 ended nearly flat on Wednesday as solid earnings from two major banks and a bounceback in Apple shares offset concerns about a lower forecast for global growth in 2013.
Shares of Goldman Sachs hit their highest since May 2011 as earnings nearly tripled on increased revenue from dealmaking and lower compensation expenses. JPMorgan Chase said fourth-quarter net income jumped 53 percent and earnings for 2012 set a record.
JPMorgan shares rose 1 percent to $46.82, while Goldman climbed 4.1 percent to $141.09.
They were among the first big banks to report results and helped to lift estimates for S&P 500 corporate earnings slightly, to a 2.2 percent gain, Thomson Reuters data showed.
"Pretty solid numbers from both JPMorgan and Goldman Sachs are putting a lot of momentum behind the financials, with a lot more names to report this week. But I think that's helping to put a better bid to the market overall," said Michael James, senior trader at Wedbush Morgan in Los Angeles.
Apple rebounded after three days of losses, helping the Nasdaq outperform the S&P 500 and Dow. Apple rose 4.2 percent to $506.09. It closed below $500 on Tuesday for the first time since February.
"There could not have been more negativity around Apple going into today. So was it due for an oversold bounce on a trading basis? Absolutely," James said.
A slow economic recovery in developed nations is holding back the global economy, the World Bank said on Tuesday, as it sharply scaled back its forecast for world growth in 2013 to 2.4 percent from an earlier forecast of 3.0 percent.
The Dow Jones industrial average was down 23.66 points, or 0.17 percent, at 13,511.23. The Standard & Poor's 500 Index was up 0.29 points, or 0.02 percent, at 1,472.63. The Nasdaq Composite Index was up 6.77 points, or 0.22 percent, at 3,117.54.
The biggest drag on the Dow was Boeing, whose shares fell 3.4 percent to $74.34 on concerns about its new Dreamliner passenger jets. Japan's two leading airlines grounded their fleets of 787s after an emergency landing, adding to safety concerns triggered by a series of recent incidents.
After the bell, shares of eBay were trading up 0.7 at $53.28, reversing an initial decline following the release of its results. Also after the close, shares of CBS rose 8.3 percent to $41.10 after it said it will convert its Outdoor Americas division into a real estate investment trust.