NEW YORK —The stock market finally got a deal in Greece, but it didn’t produce much of a rally.
U.S. stocks rose Thursday morning after Greece announced an agreement to cut costs and keep from defaulting on its debt next month, an event that could have shocked the world financial system.
But stocks dropped later in the morning and never returned to their highs for the day. Analysts cautioned that the market had expected the deal in Greece and warned that Europe still faced problems.
“We still have a lot of wood to chop,” said Jeremy Zirin, chief equity strategist at UBS Wealth Management.
The Dow Jones industrial average finished up 6.51 points at 12,890.46. The Standard & Poor’s 500 index rose 1.99 to 1,351.95. The Nasdaq composite index climbed 11.37 to 2,927.23.
Earlier in the day, the Dow was as high as 12,924.71, its highest level during a trading day since May 20, 2008. That was also the last day the average traded above 13,000.
In the afternoon, the S&P rose as high as 1,354.32, more than double its level on March 9, 2009, the low for stocks during the Great Recession. It last closed at double the low in July. The Nasdaq is trading at its highest level since December 2000.
The markets have had a strong start this year, mostly because of optimism about the economy. The Dow has gained 5.5 percent and the S&P 7.5 percent. But Zirin said the markets had assumed Greece would reach a deal to keep from defaulting, which is why stocks didn’t skyrocket on the news.
Nigel Travis, chief executive of Dunkin’ Brands, said the agreement in Greece will be a psychological boost for consumers. When they feel good about the economy, they’re more likely to spend, regardless of whether their wealth is directly affected, he said.
But Travis, whose company runs Dunkin’ Donuts and Baskin-Robbins, said Greece wasn’t the most pressing problem facing his franchisees. They’re more concerned about the U.S. presidential election and getting clarity on whether terms for government-backed small-business loans will change and whether a cut in the Social Security payroll tax will be extended.
“I think it’s good news,” Travis said of the Greece deal. “Whether it actually solves the euro problem, you have to question.”
The euro rose slightly against the dollar to $1.33, its highest level in two months. Bond prices fell slightly.



