NEW YORK ( TheStreet) -- Stocks held close to the flatline throughout Friday's session and the Dow Jones Industrial Average nabbed its fifth consecutive week of gains, suggesting that the eurozone debt plan is lending some welcome stability to the market. The Dow gained 23 points, or 0.2%, to settle at 12,231. The S&P 500 rose half a point, or 0.04%, to finish at 1285, while the Nasdaq closed down by 2 points, or 0.05%, at 2737. Overall, the Dow surged 3.6% for the week, while both the S&P 500 and Nasdaq advanced 3.8%. The Dow rose more than 524 points in the past three sessions, an increase of 4.5%, and is now sitting at its highest closing level since July 28. So far in October, the blue-chip index has added 12.1%, which has put it up 5.7% year-to-date.
Money managers took some profits with the month of October drawing to a close at the beginning of next week. Commodities prices also took a breather. Gold for December delivery lost 50 cents, or 0.03%, to settle at $1747.20 an ounce. The December crude oil contract gave up 64 cents, or 0.7%, to settle at $93.32 a barrel. Stocks wavered throughout Friday's session but didn't stray far from where they started, surprising some market watchers who had anticipated a down day after the previous session's rally. On Thursday, stocks surged some 3% after Europe's leaders agreed on a framework for addressing the region's debt crisis. The rally came even as skeptics picked apart the eurozone plan, which they said lacked details that may present challenges for the eurozone going forward. Among the key goals laid out were an expanded bailout fund, recapitalization of the region's banks and reduction of Greek debt. While noting that progress was still to be made, U.S. President Barack Obama hailed the recent pact as an "important first step." London's FTSE lost 0.2% while Germany's DAX finished 0.1% higher. Asian stock markets rose overnight. Japan's Nikkei Average finished 1.4% higher and Hong Kong's Hang Seng jumped 1.7%. Shares of MF Global Holdings ( MF) sunk 16.1% to $1.20, closing a tough week that has seen the brokerage firm lose more than 60% of its market cap. The company reported a surprise quarterly loss on Tuesday and saw its debt rating cut to junk status by two ratings agencies. MF Global is now trying to sell parts of its business. In Friday's economic news, consumers felt more confident in October than economists expected, giving some hope that consumer spending might help prop up economic growth in the fourth quarter. The University of Michigan's index on consumer sentiment ticked in at 60.9, up from an original read at 59.4. Consensus forecasts had called for a fall in the index to 58.5. However, a separate report Friday showed that while Americans are spending more, they are doing so by saving less. Personal spending picked up by 0.6% in September, in line with expectations, while incomes edged up by 0.1%. Economists had expected a strong rebound in income after it slipped 0.1% in the prior month.