Stocks gain despite weakness in banking sector the chart for more market data. By Ben Rooney, staff reporter

NEW YORK(CNNMoney) -- U.S. stocks showed surprising resilience Tuesday, closing higher as shares of Boeing and other industrial names rose, offsetting weakness from Citigroup and Apple.

The Dow Jones industrial average (INDU) added 50 points, or 0.4%. The broad S&P 500 (SPX) index edged up nearly 2 points, or 0.1%. The Nasdaq (COMP), a proxy for the technology sector, added 10 points, or 0.4%.

Click chart to track the index.

The gains came despite disappointing earnings from Citigroup, which dragged the banking sector lower. Citi tumbled over 6%, while Bank of America (BAC, Fortune 500) and Wells Fargo (WFC, Fortune 500) also took a hit.

After the market closed, Apple reported a record jump in quarterly earnings and sales, driven by strong demand for Macs, iPhones and iPads during the holiday season.

Apple shares, which were halted briefly before the announcement, rallied over 4% in after hours trading. Shares fell over 2% in during market hours Tuesday amid worries about CEO Steve Jobs' medical leave.

IBM gained 2.4% in extended trading after the company reported fourth-quarter earnings that beat analysts' estimates.

Boeing led gainers during active trading, adding 3.4% after the defense and aeronautics company said it expects to deliver its 787 Dreamliner in the third quarter of 2011. The 787, which has been plagued by delays, was previously slated for delivery in the first quarter.

"It may be that the stock was oversold enough for it to rally back, despite the disappointing news," said Bruce McCain, chief investment strategist at Key Private Bank.

In addition to Boeing, industrial stocks Alcoa (AA, Fortune 500) and Caterpillar (CAT, Fortune 500) were both up about 2%, reflecting the bullish outlook many investors have for economic growth in 2011.

"Investor sentiment is extremely positive right now," said McCain. "And that's a risky time for the market."

He said any improvement in corporate earnings or economic data will likely have a "muted effect" on stocks, while negative surprises "can torpedo the market."

Looking ahead, quarterly reports are due early Wednesday from Goldman Sachs and Wells Fargo. Investors will also take in the latest readings on housing starts and building permits before the market opens.

Markets were closed Monday due to Martin Luther King Jr. Day. On Friday, stocks ended moderately higher, with the Dow and the S&P posting their seventh straight week of gains. That's the longest weekly win streak for the Dow since the two months of consecutive gains that ended last April.

Companies: Apple reported results late Tuesday for its best-ever quarter, with revenue of $26.7 billion driven by holiday iPad and iPhone sales that were much better than forecast. Apple's profit of $6 billion also set a new record.

Apple sold 7.3 million iPads in the quarter, easily surpassing the expectations of nearly every Wall Street analyst. It also sold 16.2 million iPhones, 4.1 million Macintosh computers and 19.5 million iPods during the quarter.

Shares of Apple had been under pressure for most of the session Tuesday, after the company announced Monday that CEO and co-founder Jobs will take another leave of absence because of health problems.

Jobs' leave of absence comes two years after the Apple CEO took a six-month sabbatical, during which he received a liver transplant. While the news may weigh on Apple shares in the coming days, the slump isn't likely to last long, said Tom Winmill, portfolio manager at Midas Funds.

"This is a very short-term phenomenon," Winmill said. "Jobs is the face of Apple, so there's no question that a lot of people think Apple is a one-man band, but Apple's really anything but -- and the prior time he went on leave, it proved to be a great buying opportunity."

Also after the bell, IBM (IBM, Fortune 500) reported net income of $5.3 billion, or $4.18 per share, for the fourth quarter. That's up from $4.8 billion, or $3.59 per share, a year ago. Analysts had predicted earnings of $4.08 per share.

Citigroup (C, Fortune 500) posted quarterly results before the opening bell that missed expectations. The bank reported a profit of $1.3 billion, or 4 cents per share, on revenue of $18.4 billion.

While Citi's quarterly earnings disappointed, many other companies are on deck to report results this week -- and Winmill said he is bullish about the quarter.

"I think overall we'll see earnings come in this quarter as they did in the prior quarter, with companies continuing to surprise on the upside," he said.

Rival JPMorgan Chase (JPM, Fortune 500) laid the foundation for overall strength on Friday when it reported a 47% jump in fourth-quarter earnings to $4.8 billion, or $1.12 per share. Goldman Sachs (GS, Fortune 500) is due to report Wednesday morning.

Delta (DAL, Fortune 500) reported quarterly earnings that missed forecasts, posting earnings of 19 cents per share -- compared to the 24 cents expected by analysts. Shares of the airline company dropped 5.6%.

Outside the earnings arena, shares of commercial banking firm Comerica (CMA) tumbled nearly 8% Tuesday, after the company agreed to acquire Sterling Bancshares (SBIB) in a $1 billion all-stock deal.

The Federal Communications Commission approved the merger of Comcast, of the country's largest cable operator, and broadcasting company NBC Universal.

Economy: The New York Fed released its Empire Manufacturing Survey before the market open. The reading ticked up to 11.92 in January, which was in line with expectations.

Separately, the National Association of Homebuilder's Housing Market Index for January came in unchanged at 16, as expected.

World markets: European stocks closed higher. Britain's FTSE 100 rose 1.2%, the DAX in Germany and France's CAC 40 both gained 0.9%.

Asian markets ended mostly higher. The Shanghai Composite edged up 0.1%, the Hang Seng in Hong Kong was barely above breakeven and Japan's Nikkei rose 0.2%.

Currencies and commodities: The dollar lost ground against the euro, the Japanese yen and the British pound.

A stronger-than-expected report on GDP from Germany gave the euro a boost in early trading and helped lift European markets, Winmill said.

Oil for February delivery fell 22 cents to $91.32 a barrel.

Gold futures for February delivery added $7.70 to settle at $1,368.20 an ounce.

Bonds: Foreign investors bought $93.9 billion in long-term Treasuries in November, increasing their net holdings after purchasing $56 billion the month before, according to the Treasury's latest reading.

The largest lender to the U.S. remains China, which slightly decreased its holdings to $895.6 billion.

Meanwhile, the price on the benchmark 10-year U.S. Treasury fell, pushing the yield up to 3.39% from 3.33% late Friday.  To top of page

Just the hot list include
Frontline troops push for solar energy
The U.S. Marines are testing renewable energy technologies like solar to reduce costs and casualties associated with fossil fuels. Play
25 Best Places to find rich singles
Looking for Mr. or Ms. Moneybags? Hunt down the perfect mate in these wealthy cities, which are brimming with unattached professionals. More
Fun festivals: Twins to mustard to pirates!
You'll see double in Twinsburg, Ohio, and Ketchup lovers should beware in Middleton, WI. Here's some of the best and strangest town festivals. Play
Overnight Avg Rate Latest Change Last Week
30 yr fixed3.80%3.88%
15 yr fixed3.20%3.23%
5/1 ARM3.84%3.88%
30 yr refi3.82%3.93%
15 yr refi3.20%3.23%
Rate data provided
View rates in your area
Find personalized rates:
Index Last Change % Change
Dow 32,627.97 -234.33 -0.71%
Nasdaq 13,215.24 99.07 0.76%
S&P 500 3,913.10 -2.36 -0.06%
Treasuries 1.73 0.00 0.12%
Data as of 6:29am ET
Company Price Change % Change
Ford Motor Co 8.29 0.05 0.61%
Advanced Micro Devic... 54.59 0.70 1.30%
Cisco Systems Inc 47.49 -2.44 -4.89%
General Electric Co 13.00 -0.16 -1.22%
Kraft Heinz Co 27.84 -2.20 -7.32%
Data as of 2:44pm ET


Bankrupt toy retailer tells bankruptcy court it is looking at possibly reviving the Toys 'R' Us and Babies 'R' Us brands. More

Land O'Lakes CEO Beth Ford charts her career path, from her first job to becoming the first openly gay CEO at a Fortune 500 company in an interview with CNN's Boss Files. More

Most stock quote data provided by BATS. Market indices are shown in real time, except for the DJIA, which is delayed by two minutes. All times are ET. Disclaimer. Morningstar: © 2018 Morningstar, Inc. All Rights Reserved. Factset: FactSet Research Systems Inc. 2018. All rights reserved. Chicago Mercantile Association: Certain market data is the property of Chicago Mercantile Exchange Inc. and its licensors. All rights reserved. Dow Jones: The Dow Jones branded indices are proprietary to and are calculated, distributed and marketed by DJI Opco, a subsidiary of S&P Dow Jones Indices LLC and have been licensed for use to S&P Opco, LLC and CNN. Standard & Poor's and S&P are registered trademarks of Standard & Poor's Financial Services LLC and Dow Jones is a registered trademark of Dow Jones Trademark Holdings LLC. All content of the Dow Jones branded indices © S&P Dow Jones Indices LLC 2018 and/or its affiliates.