Toronto stocks closed mixed Tuesday as a surprisingly strong earnings report from Research in Motion weighed against losses in the gold and energy sectors.

The S&P/TSX composite index rose 3 points to finish to 8,138.43. Advancers overcame decliners 641 to 597 on the TSX on volume of about 217 million shares.

Research in Motion shares rocketed 50% to $91.98 after the company said late Monday that it earned US$16.3 million, or US20¢ a share, in its third quarter. The company also hiked its profit forecasts for the fourth and first fiscal quarters.

Led by RIM, the TSX information technology gained more than 6%. Only four of the 10 sector gauges were higher, however. Energy was the biggest decliners, dropping about 0.8%.

Energy stocks fell as natural-gas prices traded under US$6 for the first time in nearly three weeks.

Talisman Energy, Imperial Oil and Suncor Energy all fell by more than 1%

Husky Energy fell 55¢, or 2.33%, to $23.05.

The heavily-weighted financials group finished down 0.28% on a mixed performance by the big banks.

The TSX gold sub-index slipped 0.2% even as the price of gold closed up US30¢ at US$411.60 an ounce in New York.

The junior S&P/TSX Venture composite index gained 4.66 points to finish at 1,666.79.

The Dow notched its sixth straight day of gains and hit a fresh 19-month high on Tuesday, after some positive economic reports reassured investors of a strong economic recovery.

The Dow Jones industrial average ended up 3.26 points at 10,341.26, its highest close since May 17, 2002. The broader S&P 500 index added 3.08 points to 1,096.02, its highest close since May 23, 2002.

The tech-heavy Nasdaq composite index gained 18.98 points percent, to close at 1,974.78.

The Canadian dollar was at US75.6¢, up from Monday’s US75.19¢ close.

Statistics Canada reported that Canadian gross domestic product edged up 0.2% in October following a 1.1% jump in September.

The government agency also said wholesale sales dipped 0.1% after a strong rebound of 6.4% in September. Inventory levels declined for the fifth time in seven months.