NEW YORK (Reuters) - U.S. stocks ended with a more than 1 percent gain on Friday after another session of whipsaw trading, though the Dow and S&P 500 posted their biggest weekly losses since January 2016.

Even with Friday’s gains, all three major U.S. indexes were down more than 5 percent for the week, and investors said the sharp swings that marked the week’s trading were likely to continue.

“I don’t see any reason to think that we’re setting a pattern for next week or the rest of the year. The only pattern we’re setting is more volatility,” said Rob Stein, chief executive officer of Astor Investment Management in Chicago.

The Dow had a more than 1,000-point difference between its high and low. Wall Street’s fear gauge, the Cboe Volatility Index, also known as the VIX, ended lower on the day but it remained well above its recent trading range.

Benchmark 10-year note yields closed a volatile week little changed as stocks gained and investors were likely wary of holding positions over the weekend. Oil prices fell more than 3 percent.

Concerns about higher bond yields and interest rates spurred recent selling of equities, disrupting an extended advance in stocks, though the retreat in the U.S. market had been long awaited by investors.

Higher yields tend to hurt equities because they increase borrowing costs for companies and ultimately consumers. They also present an alternative to investors who may reallocate some funds to bonds from equities.

On Thursday, the Dow and S&P 500 indexes slumped more than 10 percent from their Jan. 26 record highs, confirming they were in correction territory.

Stocks on Friday began to bounce after the S&P 500 briefly broke below its 200-day moving average, a level seen as technical support.

Slideshow ( 9 images )

“You will often see bounces off those levels. In fundamentals, I did not see any news around that time when the market started turning around,” said Anwiti Bahuguna, senior portfolio manager at Columbia Threadneedle Investments in Boston.

The Dow Jones Industrial Average rose 330.44 points, or 1.38 percent, to 24,190.9, the S&P 500 gained 38.55 points, or 1.49 percent, to 2,619.55 and the Nasdaq Composite added 97.33 points, or 1.44 percent, to 6,874.49.

Next week, coming off one of the most volatile stretches in years, two important readings on U.S. inflation could help determine whether the stock market begins to settle or if another bout of volatility is in store.

WORLD STOCKS ALSO SUFFER WORST WEEK SINCE 2011

European shares fell 5.3 percent for the week, their biggest weekly drop since January 2016, and an index of world stocks also suffered its largest weekly percentage drop since January 2016. It was barely higher on Friday.

The pan-European FTSEurofirst 300 index lost 1.40 percent and MSCI’s gauge of stocks across the globe gained 0.04 percent.

Emerging market stocks lost 1.74 percent.

Earlier, the Shanghai Composite Index tumbled as much as 6.0 percent to its lowest since May 2017, and the blue chip CSI300 index dived 6.1 percent.

Slideshow ( 9 images )

Chinese equities were hurt by the drop in global shares and by traders closing positions before the Lunar New Year holidays starting next week.

Rising U.S. debt issuance is expected to weigh on bond prices in coming months.

The U.S. House of Representatives joined the Senate early on Friday in approving a budget bill that raises military and domestic spending by almost $300 billion over the next two years. With no offsets in the form of other spending cuts or new tax revenue, that additional outlay will be financed with borrowed money.

On Friday, benchmark 10-year notes last fell 2/32 in price to yield 2.8566 percent, from 2.849 percent late on Thursday.

In currencies, the dollar rose for its strongest week against a basket of currencies in nearly 15 months as some traders piled into the greenback after the volatility in stocks and bonds.

The dollar index rose 0.1 percent, with the euro down 0.1 percent to $1.2233. On the week, the dollar index gained 1.41 percent for its best week in almost 15 months.

Oil prices slid more than 3 percent as U.S. futures fell below $60 a barrel for the first time since December on concerns about rising crude supplies.

U.S. crude settled down $1.95, or 3.2 percent, to $59.20, the lowest settlement since Dec. 22. Brent futures fell $2.02 a barrel, or 3.1 percent, to $62.79 a barrel, its lowest settlement since Dec. 13.

Spot gold fell 0.3 percent to $1,314.49 an ounce.