Toronto stocks finished higher Thursday, despite a continued drop in the price of gold and oil, as investors bought back into the market after significant May losses.

The S&P/TSX composite index gained 102.45, or 0.87%, to 11,846.97. The market shed more than 4% of its value last month.

Eight of the 10 TSX main sub-groups were up.

The energy index advanced 1.13%, even as the benchmark July crude oil contract closed down 95¢ at US$71.90 a barrel.

EnCana Corp. moved up $1.10, or 1.98%, to $56.66.

The materials index gained 0.23%.

Gold for August delivery finished down $15.50 at US$633.50 an ounce on the New York Mercantile Exchange.

The financials index was up 0.92%.

CIBC, the last of the Big Six banks to issue its quarterly report, indicated its second-quarter profit moved up 33% to $585 million, while total revenue moved down marginally. The bank’s shares lost $1.38, or 1.71%, to $79.25.

The S&P/TSX Venture composite index lost 7.42 points, or 0.26%, to 2,827.68.

The Canadian dollar closed down 0.12 of a cent at US90.67¢.

In New York, markets rose on economic news that indicated consumer confidence remained high.

The Dow Jones industrial average jumped 91.97 points, or 0.8%, to close at 11,260.28. Twenty-seven of 30 Dow components were up on the session.

The Nasdaq composite index rose 40.99 points, or 1.9%, to 2,219.86. The S&P 500 added 15.62 points, or 1.2%, to 1,285.71.