U.S. stocks mostly ended in the red Wednesday afternoon, but a tech stock rally fueled by Apple's better-than-expected earnings limited the losses.
Apple(AAPL), one of the most widely-held stocks, often has an outsized impact on the overall tech sector as well as the broader market. Its 5% rise helped the tech-heavy Nasdaq finish just above the flat line Wednesday. A 7% jump in shares of Electronic Arts(EA) on the back of an earnings beat also helped.
Stocks have been grinding higher in recent days because investors took solace from mostly improved earnings. Overall, corporate earnings have been better than anticipated, although revenue growth remains modest.
More than a third of the companies in the S&P 500 have reported second-quarter results. So far, more than 65% have topped analysts' low expectations, according to S&P Capital IQ.
After the closing bell, Facebook(FB) reported solid earnings thanks to strong mobile ad revenue. Shares of the social media giant soared in after-hours trading.
Apparel company Hanes Brands(HBI) said it reached an agreement to buy Maidenform Brands(MFB) in an all-cash deal worth $575 million.
On the economic front, the Commerce Department said new home sales rose to a five-year high, with an annual rate of 497,000 in June, up 8.3% from May. Economists had expected an annual rate of 483,000.
European markets ended modestly higher after the latest eurozone purchasing managers' index showed the region was stabilizing. Manufacturing output grew for the first time since February 2012, while the service sector saw its smallest rate of decline for 18 months.
"The hope for the eurozone is that rising confidence encourages businesses to pare back job cutting and become more prepared to invest," said Howard Archer, chief European economist at IHS Global Insight.