Toronto stocks fell back Wednesday, giving up a portion of the gains made in the previous session when the senior exchange rallied and hit a new all-time high.

The S&P/TSX composite index lost 45.32 points, or 0.36%, to 12,556.98 as losses in the energy sector led the market lower.

Yesterday, the index gained 185.67 points to post an all-time high close of 12,602.30.

Six of the 10 TSX main sub-groups were down.

The energy index was off 0.92% as light, sweet crude for January delivery closed at US$59.24, down 93¢.

EnCana Corp. lost 83¢, or 1.41%, to $57.97.

The materials index ended flat, but the gold sub-index gave up 0.49%. Gold futures closed up 30¢ at US$629 an ounce.

Kinross Gold Corp. lost 14¢, or 1.05%, $13.17.

The Canadian dollar was up 0.40 of a cent to US87.68¢.

The S&P/TSX Venture composite lifted 2.73, or 0.10%, to 2,666.62.

In New York, markets moved ahead on lower energy prices and some good corporate earnings reports.

The Dow Jones gained 5.36, or 0.04%, to 12,326.95, after reaching an all-time intra-session high of 12,361. Meanwhile, the Nasdaq composite index moved ahead 11.14, or 0.45%, to 2,465.98, and the S&P 500 inched ahead 3.28, or 0.23%, to 1,406.09.

U.S. markets will be closed tomorrow for the Thanksgiving Day holiday.