The Dow and S&P 500 ended with a fourth straight week of wins, while the S&P closed at yet another record high Friday.
The S&P 500 eked out a small gain, while the Dow Jones Industrial Average closed down slightly. The Nasdaq dropped 0.7%.
The Nasdaq finished lower for the week, down 0.3%, after three positive weeks. The index was dragged down by poor quarterly results from Google and Microsoft.
Friday's modest pullback didn't take much away from the mega-rally.
All three indexes are up sharply for the year. The Dow and S&P 500 have gained nearly 19%, while the Nasdaq has rallied almost 20%. (Click here for more on stocks, bonds, commodities and currencies.)
The Dow and S&P added between 0.5% and 0.7% this week, boosted by better-than-expected earnings from the major banks. The Nasdaq
Investors were also comforted by statements by Fed chairman Ben Bernanke on Wednesday. Bernanke said he would keep the Fed's stimulus policies in place for as long as necessary.
Related: Detroit files for bankruptcy
Tech gets trounced: Google (GOOG) and Microsoft (MSFT) reported disappointing quarterly numbers after Thursday's closing bell, sending their shares sharply lower.
Microsoft was hit by a big write-down on its Surface tablet.
Good economic indicators from GE, Honeywell: Results from two of the world's biggest industrial companies -- General Electric and Honeywell -- pointed to continuing strength in the global economy.
Honeywell (HON) raised its outlook for the year, after the company reported better-than-expected earnings.
General Electric (GE) reported earnings and sales roughly in line with estimates, and said it saw strong growth in U.S. orders.
Whirlpool (WHR) raised its guidance for the year as the appliance maker reported a significant gain in quarterly sales and profit.
Schlumberger's (SLB) stock rose after the energy company reported a bump in sales and profit, driven by drilling successes on land and deepwater.
Burrito Boost: Chipotle Mexican Grill's (CMG) stock soared after the restaurant chain reported a jump in same-store sales and profits.
Related: Fear & Greed Index, still greedy
In international markets, European indexes ended the day slightly lower.
Asian markets were also weak Friday. China's Shanghai Composite index dipped and Japan's Nikkei each pulled back by 1.5%. But Hong Kong's Hang Seng index managed to edge up by 0.1%.