CHICAGO (MarketWatch) -- Canadian equities climbed Tuesday, poised to recoup the losses they saw in the previous session as metals and energy stocks headed higher. The S&P/TSX Composite Index gained 41 points, or 0.4%, to 12,259.The diversified metals and mining index gained 1.1%, led by a 3.6% increase in Thompson Creek Metals Co. Inc. shares, as well as a 2.1% gain in shares of Teck Resources Ltd. . The energy index /zigman2/quotes/210598495/delayed XX:TORGC187 +4.72% gained 0.8%, led by Crew Energy Inc. /zigman2/quotes/205009148/delayed CA:CR +6.00% , which rose 4.6% ahead of its Tuesday afternoon energy conference, and Legacy Oil + Gas Inc. , which climbed 2.6%. The TSX global gold index /zigman2/quotes/210598462/delayed XX:TORGC190 +0.64% rose 0.7%. In economic news Tuesday, Statistics Canada reported that Canada's trade deficit grew to $2.3 billion in July from $1.9 billion in June as merchandise exports fell 3.4% on the heels of an 8.5% decline in energy product exports.