Stocks rose on Tuesday, with the Dow briefly topping 13,000 for the first time since May 2008, after Greece secured a bailout to avoid default, but gains were limited as investors had priced in expectations of a deal.
Signs of improvement in the economy and stabilization of Europe's debt crisis have driven the Dow more than 20 percent higher since late last year, while the S&P has climbed more than 8 percent so far this year.
Euro zone finance ministers agreed on a 130 billion euro ($172 billion) rescue for Greece to avert an imminent chaotic default after forcing Athens to commit to unpopular cuts and private bondholders to take bigger losses.
This is the most solid agreement Greece has had, with actual money behind it, and that makes the market optimistic, said Phil Flynn, senior market analyst at PFG Best in Chicago.
Even with the bailout, Greece faces a long road to economic recovery. European Union officials said the Greek economy will only return to growth in 2014 after a recession that will shrink output by 17 percent.
If you say this is definitely the end of the story, then that shows you're not familiar with the history of the issue, Flynn said. We're cautiously optimistic, but we're not likely to move significantly higher from this point since we've rallied going into it.
The Dow Jones industrial average <.DJI> was up 42.65 points, or 0.33 percent, at 12,992.52 after rising to 13,005. The Standard & Poor's 500 Index <.SPX> was up 4.88 points, or 0.36 percent, at 1,366.11. The Nasdaq Composite Index <.IXIC> was up 4.18 points, or 0.14 percent, at 2,955.96.
Wal-Mart Stores Inc
Home Depot Inc
The Morgan Stanley retail index <.MVR> was 0.1 percent lower. The S&P retail index <.RLX>, which excludes Wal-Mart, gained 0.4 percent.
Kraft Foods Inc
Earnings season continued to wind down this week, with 59 companies scheduled to report. According to Thomson Reuters data through Tuesday morning, of the 418 companies in the S&P 500 that have reported earnings, 64 percent have topped analysts' expectations, which is below the beat rate for recent quarters.
(Reporting By Ryan Vlastelica; Editing by Kenneth Barry)