The Standard & Poor's 500 index closed above 1,500 on Friday for the first time since the start of the Great Recession in 2007, lifted by strong earnings from Procter & Gamble and Starbucks.
The S&P 500 rose 8.14 points, to 1,502.96. It was the eighth straight gain, the longest winning streak since November 2004.
The Dow Jones industrial average closed at 13,895.98, up 70.65 points. The NASDAQ composite gained 19.33 points, to 3,149.71.
Procter & Gamble, world's largest consumer products maker, gained $2.83, to $73.25 per share,after reporting that its quarterly income more than doubled. P&G also raised its profit forecast for its full fiscal year. Starbucks rose $2.24 to $56.81 after reporting a 13-percent increase in profits.
"Earnings are growing," said Joe Tanious, a global market strategist at JPMorgan. "The bottom line is that corporate America is doing exceptionally well."
Tanious expects corporate earnings to grow at about 5 percent over the "next year or two," and stock valuations to rise. Currently, the S&P 500 is trading at an average price-to-earnings ratio of 14, below an average of 15.1 for the last decade, according to FactSet data.
Apple continued to decline, allowing Exxon Mobil to once again surpass the electronics giant as the world's most valuable publicly traded company. Apple fell 2.4 percent, to $439.88, following a 12-percent drop on Thursday, the biggest one-day percentage drop for the company since 2008, after Apple forecast slower sales. The stock is now 37 percent below the record high of $702.10 it reached Sept. 19.
Apple first surpassed Exxon in market value in the summer of 2011, grabbing a title Exxon had held since 2005. The two traded places through that fall, until Apple surpassed Exxon in early 2012.
Stocks have surged this month, with the S&P 500 advancing 5.4 percent. It jumped at the start of the year when lawmakers reached a last-minute deal to avoid the "fiscal cliff." Stocks built on those gains on optimism that the housing market is recovering and the labor market is healing. The Dow Jones is up 6 percent on the year.
Deutsche Bank analysts raised their year-end target for the index to 1,600 from 1,575.
Companies will be able to maintain their earnings even if lawmakers in Washington decide to implement wide-ranging spending cuts to narrow the budget deficit, the analysts said in a note sent to clients late Thursday.
The yield on the 10-year Treasury note, which moves inversely to its price, climbed 11 basis points to 1.95 percent.