NEW YORK — Stocks ended the week with a moderate gain Friday after the resignation of Egypt's President Hosni Mubarak eased investors' fears about a spread of violence to oil-producing countries.
The Dow Jones industrial average, down nearly 50 points early in the day as Mr. Mubarak tried to remain in office, closed up 44 at 12,273.26, its highest close since June, 2008. It was up 1.5 percent for the week.
The Standard & Poor's 500 index rose 7 points Friday to 1,329.15, putting it up 1.4 percent for the week. The Nasdaq composite index rose 19 points to 2,809.44, finishing up 1.4 percent for the week.