NEW YORK — A surge in oil and gas companies pulled the stock market out of a five-day slump on Friday, as the price of crude swung higher.
Oil prices jumped after the International Energy Agency predicted drillers would cut production this year. Exxon Mobil, Chevron and other energy companies led all 10 sectors of the Standard & Poor’s 500 index to gains, climbing 3 percent. Oil’s seven-month slide had cut its price by more than half.
“Lower oil prices on the whole are supportive of economic growth worldwide,” said Jason Pride, director of investment strategy at Glenmede Trust. “They’re very helpful for Japan, Europe, China and India. It’s clearly a good thing.”
The S&P 500 index gained 26.75, or 1.3 percent, to finish at 2,019.42. The Dow Jones industrial average climbed 190.86, or 1.1 percent, to close at 17,511.57. The Nasdaq rose 63.56 points, or 1.4 percent, to 4,634.38.
The rally capped the end of another rough week for the market. Since the start of the year, worries about the strength of the global economy and falling oil prices have weighed major indexes down. Even with its strong performance on Friday, the S&P 500 still lost 1 percent for the week, its third straight weekly drop.
“There has been a lot of conflicting information to digest, recently,” said Anastasia Amoroso, a global market strategist at J.P. Morgan Asset Management.
Amoroso said the big question has been whether the recent slump in oil prices will lead to other problems, such as deflation, a downward spiral in prices that could put companies out of business.
“Are low oil prices a good or a bad thing?” she asked, rhetorically. “For stocks, deflation is not so great.”
The economic reports out Friday offered investors some encouragement. U.S. manufacturers churned out more furniture, computers and clothing in December, according to the Federal Reserve, as factory production increased for a fourth straight month in a row. In a separate report, a gauge of consumer sentiment from the University of Michigan jumped to its highest level in 11 years.
A fall in trading revenue pulled down Goldman Sachs’s quarterly earnings 10 percent. The investment bank’s fixed income, currency and commodities division slumped 29 percent.
It was a recurring theme for a week in which JPMorgan Chase, Bank of America and other big banks turned in results that missed analysts’ forecasts.
Overall, analysts predict that big corporations will post earnings growth of 4 percent, according to S&P Capital IQ. Sales are expected to rise just 2.1 percent, largely the result of falling revenue for oil companies.