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.
In other earning news,
Dow component also beat earnings estimateson both the top and bottom lines after the bell on Wednesday.
Regional bank BB&T sank despite a 21 percent gain in profits as the bank didn't need to set aside as much money to cover loan losses. PNC Financial Services traded slightly higher, however, after reporting a 24 percent gain in profits.
Citigroup , meanwhile, traded slightly lower as the bank met with criticism from shareholdersat its annual meeting.
Qualcomm was among tech companies leading the sector higher. Demand for the company's technology in smartphones sent the company's fiscal quarter earnings up 29 percent, the company reported on Wednesday.
In IPO news, 21Vianet Group , an Internet data services provider based in China, soared more than 20 percent after being priced at $15 a share.
In other company news, BP has filed a lawsuit against Halliburton , which cemented the blown-out well which caused the oil spill in the Gulf of Mexico, and against the rig's owner Transocean.
In related news, the U.S. Department of Justice said BP agreed to provide $1 billion for restoration projects in the Gulf of Mexico.
Volume on the consolidated tape of the New York Stock Exchange was 3.7 billion shares, while 813 million changed hands on the NYSE floor.
The dollar traded at a three-year low against a basket of major currencies after the weak U.S. economic news was released. Gold futures hit a new record settling high, rising 1.2 percent this week to $1,503.20 an ounce. Silver gained 8.21 percent this week to close at $46.06, the highest close since Jan. 18, 1980.
Oil prices traded mixed. London Brent crude for June delivery was down slightly to just below $124 a barrel, while U.S. light crude for June delivery rose above $112.
The Philadelphia Fed Surveysurprisingly sank in March to 18.5 from 43.4 a month ago, indicating a slowdown in Mid-Atlantic manufacturing. The index of leading indicators, however, rose 0.4 percent to 114.1 in March, according to the Conference Board. The gain was more than expected, and marked the ninth straight rise.
Earlier, the Labor Department reported that initial claims for unemployment fell by 13,000 to 403,000 last week from an upwardly revised level of 416,000 the week before, the Labor Department said. The government had previously reported claims were 412,000.
The four-week moving average of claims rose 2,250 to 399,000. The four-week average has now been below that level for eight weeks.
In Europe, earnings pushed stocks to a one-week high.
Markets are closed on Friday in observance of Good Friday.
On Tap Next Week:
MONDAY: New home sales; earnings before-the-bell from Kimberly Clark and after-the-bell from Netflix.
TUESDAY: Consumer confidence; earnings before-the-bell from Coca-Cola, Ford, 3M, UPS, Coach, Cummins, Delta Air Lines, U.S. Steel and Valero, and after-the-bell from Amazon.com, Broadcom, Dreamworks, and Western Union.
WEDNESDAY: Durable goods, oil inventories; earnings before-the-bell from Boeing, BP, ConocoPhillips, Barrick Gold, Corning, Credit Suisse, General Dynamics, Northrop Grumman, and after-the-bell from eBay, Starbucks, Allstate, Baidu, Citrix, Flowserve, and Norfolk Southern.
THURSDAY: GDP, jobless claims, pending home sales; earning before-the-bell from AstraZeneca, Deutsche Bank, Exxon Mobil, PepsiCo, P&G, Royal Dutch Shell, Sanofi-Aventis, Bristol Myers, Discovery Communications, Dow Chemical, Medco Health, Motorola Solutions, Occidental Petroleum, Pulte Group, Raytheon, Sprint Nextel, Starwood, Thomson Reuters, Time Warner Cable, and Viacom, and after-the-bell from Microsoft, Cliffs Natural Resources, and Motorola Mobility.
FRIDAY: Personal income, personal spending, Chicago PMI, Thomson Reuters/University of Michigan consumer sentiment; earnings before-the-bell from Caterpillar, Chevron, Merck, DR Horton, Pitney Bowes, and Weyerhaeuser.
More on CNBC.com