Stocks ended the week on an up note after a steep slide on Monday in the wake of Standard & Poor's revised outlook for U.S. long-term debt as largely positive earnings propelled stocks higher.
The Dow Jones Industrial Average rose 52.45 points, or 0.4 percent on Thursday, to close at 12,505.99, the highest close since June 5, 2008. For the week, the Dow gained 164.16 points or 1.33 percent.
United Technologies was the best performer on the Dow this week, rising nearly 4.5 percent, while Verizon was the worst performer, falling nearly 2.5 percent.
The S&P 500 rose 7.02 points, or 0.5 percent, to close at 1,337.38, its highest close since Feb. 18. For the week, the broad market index rose 17.70 points, or 1.3 percent.
Apple was the best performer on the S&P 500 for the week, rising more than 7 percent, while Wells Fargo was the worst, falling more than 4.5 percent.
The Nasdaq rose 17.65 points or 0.6 percent to close at 2,820.16, also the highest close since Feb. 18. For the week, the Nasdaq rose 55.51 points or 2 percent.
The CBOE Volatility Indexfell 4.9 percent this week to end at 14.57.
"After a bit of a rough start with names like Bank America , Google and Alcoa , companies are starting to come through with solid reports, as investors had expected," said Michael Sheldon, chief market strategist at RDM Financial.
More companies have been beating on the top line instead of the bottom, indicating they are still able to increase their profit margins, Sheldon said.
"There's a large debate going on about how much higher margins can go to help boost profits since we’re already at or near record levels," he added. "I think as we go along for the next couple quarters and into 2012 especially, corporate earnings will be driven by revenue growth as opposed to increases in margins."
So far, earnings are up 18.2 percent for the 137 companies that have reported so far (representing 27 percent of all S&P 500 companies), according to Thomson Reuters. Of the firms that have reported, 75 percent have delivered results ahead of estimates, Thomson Reuters said.
S&P revised its outlook for U.S. debt to "negative" from "stable" because of the inability of lawmakers to tackle the nation's rising deficit.
That question will take center stage in the markets again before long, but Raj Mahajan, president, of SunGard Global Trading, says markets are likely to remain wobbly until investors know whether Congress will be taking its cues from Sen. Paul Ryan's plan, which calls for deep budget cuts, or President Obama's plan, which calls for some tax increases and reinvestment in the country infrastructure.
"Until the market knows the answer to that question, we’ll have a sustained period of choppiness," Mahajan said.
Pfizer fell after news that four deaths were seen in a late-stage study of a Pfizer drug for rheumatoid arthritis. Abbott Labs , which has a competing drug, gained.
Verizon sank despite reporting strong growth, helped by sales of the iPhone as investors focused on the implications for Verizon's profit margins, which dropped, and the fact Verizon didn't add as many iPhone subscribers as analysts had expected, according to Reuters.
General Electric slid despite delivering an 80 percent gain in first-quarter earningsand raising its quarterly dividend by 1 cent to 15 cents, its third hike since July. The diversified manufacturer benefited from a boost in business spending, but some analysts noted that the firm's revenue results may have been inflated by a longer fiscal calendar. GE is a minority shareholder in CNBC.
And McDonald's fell despite beating expectations on strong sales throughout all regionsas the fast-food chain said it planned small price increases to cover some, but all, of its increased food costs, Reuters said.
But Travelers soared after reporting a 30 percent jump in profitsThursday, thanks to a gain in investment income. Net profit rose to $839 million, or $1.92 a share, from $647 million, or $1.25 a share, a year earlier. The insurer raised its dividend 14 percent to 41 cents a share.
Morgan Stanley jumped despite a drop in profit as its results beat expectations.
Dupont gained after reporting a 27 percent rise in quarterly profits, thanks to double-digit sales growth in all of its business units.
And Schlumberger advanced after reporting a 40 percent gain in first quarter profits, although the results were slightly less than expected. The company gave an upbeat outlook, though.
The tech rally continued after the market closed on Wednesday when Appledelivered results powered by sales of iPhones and Macs that easily topped what analysts had expected.