Wall Street closed a stellar week on Friday after recent economic data, including a stronger-than-expected labor market report, bolstered optimism that the economy would not fall back into recession.

The S&P 500 gained 3.8 percent for the week, its best in eight, setting the stage for a more bullish mood when markets re-open Tuesday after the long Labor Day weekend. U.S. Treasury debt yields have risen from levels reflecting expectations of another recession.

Stock sectors sensitive to economic swings like technology and banks led the week's gains. On Friday, the S&P financial sector index <.GSPF> rose 2.2 percent, with Goldman Sachs up 5.4 percent at $147.29 and Janus Capital up 6.6 percent at $10.12.

Equity markets had priced in the non-trivial probability of a double dip, and what you're seeing is that fear pricing is coming out, said Mike Dueker, head of economics at Russell Investments in Tacoma, Washington.

U.S. payrolls fell for a third straight month in August, the Labor Department said, but the loss of 54,000 non-farm jobs was far less than the 100,000 expected by economists polled by Reuters, and private hiring surprised on the upside.

Recovery will be slow, but at least reliable, and that should add some tailwinds (for stocks) the rest of the year, Dueker said.

The Dow Jones industrial average <.DJI> shot up 127.83 points, or 1.24 percent, to 10,447.93, marking a move back into the black for the year. The Standard & Poor's 500 Index <.SPX> gained 14.41 points, or 1.32 percent, to 1,104.51. The Nasdaq Composite Index <.IXIC> rose 33.74 points, or 1.53 percent, to 2,233.75.

The S&P 500 closed above 1,100 for the first time since August 10. Momentum measures, including the moving average convergence-divergence, indicate the benchmark is poised for more gains.

But the upward move faces strong resistance, with the 200-day moving average near 1,116. Chartists point to 1,130 as key resistance, tested in June and early August, with both failures opening the door to steep declines.

Stocks sold off sharply through August on concerns the U.S. economy could be headed for a double-dip recession. But a report that showed the manufacturing sector grew more than expected last month sparked a rally on Wednesday that lifted stocks to their best day in eight weeks.

In addition to the S&P 500's sharp weekly percentage gain, the Dow rose 2.9 percent for the week and the Nasdaq advanced 3.7 percent.

Technology stocks outperformed the market this week. The PHLX semiconductor index <.SOX> has gained 6.9 percent in the past three days, its best such run since mid-June.

Video game maker Take-Two Interactive Inc jumped 7.3 percent to $9.50 a day after its quarterly profit smashed Wall Street's expectations of a loss, and it raised its forecast.

On the downside, Campbell Soup Co dropped 3 percent to $36.21 after posting lower-than-expected quarterly sales and forecasting growth below its long-term target as it grapples with a weak economy.

About 6.6 billion shares traded on the New York Stock Exchange, the American Stock Exchange and Nasdaq, far below last year's estimated daily average of 9.65 billion.

Advancing stocks outnumbered declining ones on the NYSE by a ratio of about 18 to 5, while on the Nasdaq, about 17 stocks rose for every five that fell.

(Reporting by Rodrigo Campos; Additional reporting by Edward Krudy; Editing by Jan Paschal)