Last Updated Jun 29, 2016 2:36 PM EDT
U.S. stocks moved broadly higher in afternoon trading Wednesday, echoing strong gains in global markets as investor worries about Britain's vote to leave the European Union eased. Traders also got encouraging data on U.S. consumer spending.
Energy companies led the rally as the price of crude oil headed higher. Health care, industrials and financials stocks were also among the biggest gainers.
The Dow Jones industrial average and the Standard & Poor's 500 index turned slightly positive for the year. Together with a big gain Tuesday, the market is on track to recoup about half of the steep losses it suffered Friday and Monday in the wake of Britain's "leave" vote.
The Dow gained 270 points, or 1.6 percent, to 17,679 as of 2:31 p.m. ET. The S&P 500 index rose 34 points, or 1.7 percent, to 2,070. The Nasdaq composite added 91 points, or 2 percent, to 4,783.
European stock indexes also posted solid gains. The British pound edged up against the dollar following its plunge after the British vote last week.
On Wall Street, investors had their eye on new data on consumer spending and the latest batch of company deal news.
The Commerce Department said that consumer spending increased 0.4 percent in May on top of a 1.1 percent surge in April. The data underscore that consumer spending, which accounts for about 70 percent of U.S. economic activity, picked up in the spring after getting off to a slow start in 2016.
The Canadian Imperial Bank of Commerce agreed to buy bank holding company PrivateBancorp for $47 per share in cash and stock, or $3.73 billion. News of the deal sent PrivateBancorp shares up 22.5 percent. The stock added $8.07 to $44.
Several oil and gas production and transportation companies also notched gains. Murphy Oil led the gainers in the S&P 500 index, climbing $1.82, or 6.1 percent, to $31.90. Kinder Morgan rose 88 cents, or 5 percent, to $18.60.
Specialty pharmaceuticals company Mallinckrodt rose $3.11, or 5.5 percent, to $59.34.
Tesaro more than doubled after the drug developer said its targeted pill for recurrent ovarian cancer prevented the disease from worsening for many months after chemotherapy ended. There's no approved maintenance treatment to keep ovarian cancer at bay after chemotherapy. The stock gained $40.98 to $78.19.
Shares in Myriad Genetics, which makes the companion test given to patients before treatment with Tesaro's drug, climbed $1.14, or 3.9 percent, to $30.72.
Global financial markets were rattled last Friday by the British "leave" vote, which many investors did not seem to anticipate. Stocks and oil fell, as did the pound, while bonds and gold rose thanks to their perceived status as safe havens. Ratings agency S&P slashed its top-shelf credit rating for the U.K.
But the two-day slump broke on Tuesday, as investors appeared to set aside their anxiety over Britain's vote.
In another sign that investors' worries are easing, the VIX, a gauge of expectation of future U.S. stock volatility, was down 10 percent Wednesday to 16.9. It had hit 25.8 on Friday.
"The VIX is literally where it was two week ago," said Tom Siomades, head of Hartford Funds' Investment Consulting Group. "(Investors) dumped everything on Friday, and when they came back, they realized things aren't as bad and it's going to take a long time to unwind this thing."
On Wednesday, Britain's benchmark stock index, the FTSE 100, was up 3.6 percent, while Germany's DAX rose 1.7 percent. France's CAC 40 gained 2.6 percent.
Earlier, stock markets in Asia closed broadly.
Japan's Nikkei 225 rose 1.6 percent and South Korea's Kospi gained 1 percent. Hong Kong's Hang Seng index added 1.3 percent, while Australia's S&P/ASX 200 rose 0.8 percent. Stocks in Taiwan, Singapore and Indonesia also were higher.
Despite the rebound in global markets, analysts said it is too early to say that investor confidence has made a full comeback since Britain's vote to break with the EU.
In currency markets, the British pound recovered some of its losses this week but remained near its 31-year low. It rose to $1.3468 from $1.3343 on Tuesday.
The yen, which strengthened sharply after the British referendum, lost some gains. The dollar rose to 102.70 yen from 102.79 yen. The euro rose to $1.1099 from $1.1049.
In energy futures trading, benchmark U.S. crude was up $1.26, or 2.6 percent, at $49.11 per barrel in New York. Brent crude, used to price international oils, was up $1.32, or 2.7 percent, at $50.58 a barrel in London.
Bond prices were little changed. The yield on the 10-year Treasury note held steady at 1.47 percent.