The S&P/TSX composite index extended gains to a fourth session, up 57.3 points to 12,089.89. The TSX Venture Exchange gained 12.17 points to 1,233.42. The TSX ended the week up 1.67 per cent, leaving the main index up 135 points year to date.
The Canadian dollar backed off 0.25 of a cent to 101.1 cents US amid lower-than-expected inflation data after the loonie also closed at a 3 1/2-month high Thursday.
Statistics Canada reported that the Consumer Price Index declined 0.1 per cent on a seasonally adjusted basis in July. Economists had been looking for a 0.1 per cent rise after the index decreased 0.2 per cent in June.
The agency said Friday that consumer prices rose 1.3 per cent in the 12 months to July, following a 1.5 per cent gain in June.
The loonie was down from early highs as analysts suggested the data represented another reason for the Bank of Canada to keep interest rates on hold.
"With inflation running below target and external headwinds still blowing, we don’t expect the Bank of Canada to resume tightening until well into next year," said BMO Capital Markets senior economist Robert Kavcic.
U.S. markets were up at the end of a positive week, helped along by a positive reading on consumer confidence. The University of Michigan's index rose to a preliminary August reading of 73.6 from a July reading of 72.3.
Also, the Conference Board’s index of future U.S. economic activity posted a 0.4 per cent gain in July.
The Dow Jones industrials edged 25.09 points higher at 13,275.2.
The Nasdaq composite index was 14.2 points higher at 3,076.59 while the S&P 500 index added 2.65 points to 1,418.16.
The TSX ended the week up 1.67 per cent after closing above 12,000 for the first time since early May on Thursday.
That month was a time when the European debt crisis took a turn for the worse as markets focused on high debt levels in Spain. But lately, traders have been encouraged by a solid reading on American housing starts and hopes that central bankers are prepared to do whatever is necessary to keep the economic recovery on track and preserve the European monetary union.
On Friday, traders reacted favourably to remarks by German Chancellor Angela Merkel during her visit to Ottawa. She said Thursday that her country — which is Europe’s biggest economy — is committed to doing everything it can to maintain the euro currency union.
There have also been high hopes that the U.S. Federal Reserve will announce another round of economic stimulus in September. But such a move has been thrown into doubt in the wake of recent positive economic data, including better-than-expected readings on job creation, retail sales and industrial production.
Analysts pointed to another element.
"I think it’s that the absence of bad news has allowed for this slow but steady rise in equities," said Garey Aitken, director of equity research at Bissett Investment Management.
"I don’t think anything has changed structurally, I don’t think that by any means we’re out of the woods yet. We’re in a bit of a holding pattern and I think that with equity valuations being attractive in a very low interest rate environment, that no news has just allowed for a bit of a rotation from fixed income into equities."
Industrials led TSX gainers with Canadian National Railways (TSX:CNR) ahead $1.39 to $91.54.
The TSX base metals sector was close behind, up 0.78 per cent as copper added to Thursday's three-cent advance, up another four cents to US$3.42 a pound. Prices for the metal, viewed as an economic bellwether as it is used in so many industries, gave up ground earlier this week in the wake of weak Chinese export growth data and much lower than expected Japanese economic growth in the second quarter. HudBay Minerals (TSX:HBM) climbed 24 cents to C$8.65.
The energy sector gained 0.58 per cent with the September crude contract on the New York Mercantile Exchange ahead 41 cents at US$96.01 a barrel following a strong gain of more than $1 on Thursday. Suncor Energy (TSX:SU) was ahead 37 cents to C$32.43.
Financials were also positive with TD Bank (TSX:TD) up 76 cents to $81.24.
The gold sector slipped 0.45 per cent as bullion prices inched up 20 cents to US$1,619.40 an ounce. Goldcorp Inc. (TSX:G) added 15 cents to C$38.08.
Lake Shore Gold Corp. (TSX:LSG) tumbled 16.22 per cent to 93 cents on heavy volume of almost eight million shares after the miner announced a significant increase in its public offering of convertible senior unsecured debentures.
Apple’s stock set a new high after a four-month swoon as investors looked ahead to the release of a new iPhone model and, possibly, a smaller iPad. Already the world’s most valuable company, Apple Inc. saw its stock hit US$648.19 before retreating slightly.
Meanwhile, Facebook Inc. shares continued to fall, losing another 82 cents to $19.05 after hitting a fresh, all-time low of $19, a far cry from the $45 level the social networking site hit the day of its Initial Public Offering in May. Prices started to tumble Thursday as the post-IPO offering lockup on about 271 million shares expired, making them available for insiders to sell on the open market.