U.S. stock indexes closed mostly higher Wednesday after a sharp increase in crude oil prices helped drive market-leading gains for energy companies.
Banks and other financial stocks declined the most as bond yields headed lower, which translates into lower interest rates on loans and lower profits for banks.
The Dow Jones industrial average ended in the red, while the Standard & Poor's 500 index and Nasdaq composite eked out modest gains. Two stocks rose for every one that fell on the New York Stock Exchange.
"After yesterday's bounce back, you're seeing a little sideways action today," said Jeff Zipper, managing director at the Private Client Reserve of U.S. Bank.
The S&P 500 index added 2.56 points, or 0.1 percent, to 2,361.13. The Dow fell 42.18 points, or 0.2 percent, to 20,659.32. The Nasdaq composite index gained 22.41 points, or 0.4 percent, to 5,897.55.
Bond prices rose. The 10-year Treasury yield fell to 2.39 percent from 2.42 percent.
A day after Wall Street rallied on news that U.S. consumer confidence reached its highest level since 2000, the market got another dose of encouraging economic data Wednesday.
The National Association of Realtors said more people signed contracts to buy U.S. homes last month as warm weather and rising confidence appeared to encourage consumers to look for houses. The NAR's pending home sales index climbed 5.5 percent in February to 112.3, its highest point since April and its second-highest point since 2006.
Investors are hoping that Congress and the White House will enact tax cuts and other business-friendly policy proposals promised by President Donald Trump during his campaign.
Those expectations helped lift the market in the weeks after the election last November. But some of that investor optimism dimmed in recent weeks after the Trump administration's bid to pass a bill intended to begin repealing the Affordable Care Act failed to win enough votes.
"It's really wait-and-see with the focus back on Washington and tax reform," Zipper said.
Outside of Washington, investors had their eye on the latest company earnings news. Investors bid up shares in several companies that posted solid quarterly results or outlooks.
RH, formerly Restoration Hardware, climbed 14.9 percent a day after the home furnishings and decor retailer reported stronger earnings. It added $5.68 to $43.68.
Verint Systems jumped 10 percent after the software company reported better-than-expected quarterly results. Verint also said during a management conference call with analysts that it is possible that at some point it will split itself into two businesses, but noted it has no plans now to do that. Verint's stock rose $3.95 to $43.50.
Traders also welcomed news of other corporate deals.
Exar surged 22.3 percent after MaxLinear agreed to buy the chipmaker for $13 per share, or $662 million. Shares in Exar gained $2.37 to $12.99. MaxLinear rose $1.55, or 5.8 percent, to $28.06.
Some companies' quarterly report cards failed to impress traders.
Dave & Buster's Entertainment fell 3.4 percent after the arcade and restaurant chain announced disappointing sales at older locations. The stock gave up $2.10 to $60.09.
Depomed slid 3.1 percent after the drugmaker issued disappointing first-quarter sales guidance and replaced its CEO and two board members to resolve a dispute with investment firm Starboard Value. The stock dipped 44 cents to $13.79.
Not all drugmakers had a rough day.
Vertex Pharma vaulted 20.5 percent after the drugmaker disclosed results from two studies of a new cystic fibrosis treatment. The company said patients treated with a new experimental drug plus its own Kalydeco had improved lung function. The stock rose $18.34 to $108.01.
Several major overseas stock indexes closed higher.
In Europe, Germany's DAX climbed 0.4 percent, while France's CAC 40 added 0.5 percent. Britain's FTSE 100 gained 0.4 percent against the backdrop of Britain triggering the start of its exit from the European Union. The formal step kicks off two years of negotiations that will have wide-ranging consequences for business in the region.
Earlier in Asia, Tokyo's benchmark Nikkei 225 index edged up 0.1 percent. South Korea's Kospi rose 0.2 percent. Hong Kong's Hang Seng added 0.2 percent. Australia's S&P/ASX 200 rose 0.9 percent to 5,873.50.
In currency trading, the dollar weakened to 111.07 yen from 111.09 yen. The euro fell to $1.0759 from $1.0808.
Energy prices closed sharply higher as traders weighed remarks from Iran's oil minister
Oil prices climbed after Iran's oil minister said the recent production cut deal will probably be extended, and fighting in Libya is affecting its oil industry.
Benchmark U.S. crude oil futures rose $1.14, or 2.4 percent, to close at $49.51 a barrel in New York. The contract rose 64 cents on Tuesday. Brent crude, used to price international oils, climbed $1.09, or 2.1 percent, to close at $52.42 a barrel in London. Natural gas added 8 cents to $3.18 per 1,000 cubic feet, wholesale gasoline rose 4 cents to $1.67 per gallon and heating oil gained 3 cents to $1.54 per gallon.
The price of gold slipped $1.90 to settle at $1,253.70 an ounce. Silver held steady at $18.25 per ounce. Copper was little changed at $2.68 per pound.