Stocks closed higher on Wall Street, giving the market its first four-day winning streak since September.
Technology companies and banks posted big gains Wednesday. Those stocks tend to benefit the most from economic growth.
Apple added 1.7 percent and Citigroup also rose 1.7 percent.
Energy companies benefited from the eighth straight gain in the price of oil.
Stocks stumbled in late trading after President Donald Trump cut short a meeting on ending the partial government shutdown, calling it a "waste of time."
The S&P 500 rose 10 points, or 0.4 percent, to 2,584.
The Dow Jones Industrial Average added 91 points, or 0.4 percent, to 23,879. The Nasdaq rose 60 points, or 0.9 percent, to 6,957.
The yield on the 10-year Treasury held steady at 2.71 percent.
Stocks are rising again on Wall Street as optimism builds that China and the U.S. are making progress on resolving their trade dispute.
Indexes were broadly higher at midday Wednesday, putting the market on track for its fourth consecutive gain.
Technology and energy companies rose. Apple added 2.1 percent and Chevron climbed 1.5 percent.
The price of oil climbed again, rising above $50 a barrel for the first time since mid-December. The gains partly reflect growing confidence in the economy.
The S&P 500 index rose 15 points, or 0.6 percent, to 2,590.
The Dow Jones Industrial Average added 170 points, or 0.7 percent, to 23,953. The Nasdaq rose 64 points, or 0.9 percent, to 6,961.
Bond prices fell. The yield on the 10-year Treasury rose to 2.74 percent.
Stocks are opening higher on Wall Street, putting the market on track for a fourth gain in a row.
Technology stocks were among the winners in early trading on Wednesday. Microsoft rose 1.3 percent.
The price of crude oil rose another 3 percent, raising the price above $50 a barrel for the first time since mid-December.
Oil has been rising steadily since shortly after Christmas, reflecting more confidence in the outlook for the economy.
Energy companies also rose. Chevron climbed 1 percent.
The S&P 500 index rose 9 points, or 0.3 percent, to 2,583.
The Dow Jones Industrial Average added 136 points, or 0.6 percent, to 23,939. The Nasdaq rose 43 points, or 0.6 percent, to 6,940.
Bond prices fell. The yield on the 10-year Treasury rose to 2.73 percent.