The S&P/TSX composite index gained 69.22 points, or 0.51%, to close at 13,520.33. It was up 3.6% for the week.

Four of the index’s 10 main groups advanced, with the resource-heavy materials sector adding 1.61%.

Inmet Mining rose $2.20, or 2.6%, to $86.16 and Niko Resources added 83¢, or 1%, to $88.44.

Resources were also helped by the price of gold, which rose thanks to a weaker U.S. dollar.

The gold sub-index jumped 1.56%.

The energy group rose 0.52%, as the October crude contract on the New York Mercantile Exchange gained $1.26 to US$71.09 a barrel. Suncor Energy moved up $1.23 to $91.82.

Financials finished flat, as shares in Royal Bank closed down 43¢ to $55 after the bank reported that third-quarter profit jumped 19% to $1.4 billion, beating analyst forecasts.

TD Bank shares climbed after the bank delivering a well-received earnings report Thursday, rising 66¢ to $71.15.

The junior S&P/TSX Venture composite index surged 52.88 points, or 2.04%, to finish at 2,639.48.

The Canadian dollar rose 0.3 of a cent to US95.06¢.

In New York, U.S. stocks climbed as surprisingly strong data on home sales and factory orders relieved bolstered investor confidence.

Sales of new U.S. homes in July rose 2.8%, reversing two months of declines and a report showed new orders for long-lasting U.S.-made products, or durable goods, surged in the same period.

The Dow Jones industrial average was up 142.99 points, or 1.08%, at 13,378.87. The S&P 500 was up 16.87 points, or 1.15%, at 1,479.37. The Nasdaq composite index was up 34.99 points, or 1.38%, at 2,576.69.

For the week, the S&P 500 was up 2.3%. The Nasdaq was up 2.9% and the Dow was up 2.3%.