TORONTO - Canada's main stock index extended a 14-week high on Thursday, helped by gains for heavyweight banking and energy stocks.

"Technically, everything looks like it's setting up for a break-out," said Bryden Teich, a portfolio manager at Avenue Investment Management. "We've been trending down and the utility space, energy space, the banks now are all bouncing."

The energy group climbed 1.4 per cent, despite oil prices being little changed ahead of a meeting of major oil-producing countries, and financials gained 0.7 per cent. Combined, the two groups account for more than half of the index's weight.

Utilities, which had fallen sharply in the wake of the Bank of Canada's interest rate hike this month, have recovered somewhat but were down 0.3 per cent on the day.

The Toronto Stock Exchange's S&P/TSX composite index (.GSPTSE) finished up 65.32 points, or 0.42 per cent, at 15,454.92, its highest close since early June.

Investors bought into financial stocks, which tend to perform better in a higher rate environment, after the Federal Reserve signaled on Wednesday that it may raise U.S. interest rates a third time this year.

Teich said the index could add another 5 per cent in the remainder of the year if the Bank of Canada refrains from being too aggressive about its own rate hike outlook.

Bank of Nova Scotia (BNS.TO) gained 1.8 per cent to $79.33 while Toronto-Dominion Bank (TD.TO), Canada's biggest bank by assets, rose 0.7 per cent to $69.01 after it re-entered the Japanese market with a fixed-income sales desk.

The materials group, which includes precious and base metal miners and fertilizer companies, lost 0.2 per cent as gold prices fell after the Fed move and copper and other industrial metals lost ground in the wake of a stronger U.S. dollar.

Kinross Gold Corp (K.TO) fell 2.6 per cent to $5.21, and Barrick Gold Corp (ABX.TO) lost 0.8 per cent to $20.15.

Half of the index's 10 main groups ended higher, with five advancers for every three decliners.