The Toronto Stock Exchange's S&P/TSX composite index ended up 101.62 points, or 0.5%, at 21,086.99, a record closing high.

Canadian National Railway Co reported third quarter results after the close, while some other major stocks are due to report over the coming days.

"The markets are going to be looking much more through some of the headline risk to the underlying fundamentals of the individual companies and sectors," said Kevin Headland, senior investment strategist at Manulife Investment Management.

"Perhaps the earnings growth rate is starting to slow, but it still remains quite strong and positive."

The technology group climbed 1.1% on Tuesday, led by a 13.4% jump in the shares of Blackberry Ltd. Healthcare was up 6.6%, including sharp gains for some cannabis producers.

After snapping a seven-month winning streak in September, the Canadian equity index has gained 5.1% so far this month, aided by strength in commodity prices.

U.S. crude oil futures settled 0.6% higher at $82.96 a barrel as an energy supply crunch continued across the globe.

The energy group rose 0.4%, while the heavily weighted financial services group advanced 0.5% as bond yields climbed.

(Reporting by Fergal Smith; Additional reporting by Amal S in Bengaluru; Editing by Alistair Bell)

By Fergal Smith