TORONTO -- A broad-based rally led by energy and financials helped North American stock markets to recover from big losses early in the week over concerns about rising inflation.

The week spawned a yo-yo of investor motions, said Philip Petursson, chief investment strategist at Manulife Investment Management.

It started with three losing days in a row after U.S. inflation numbers spooked investors into worrying that the Federal Reserve would taper its loose monetary policy.

Markets rebounded on Thursday and Friday as fears subsided and flat retail sales data in April suggested that the central bank is probably further away from tapering and raising rates than was thought at the beginning of the week.

"I actually think that perhaps the market is reading too much into the single data point that comes out from any economic report," Petursson said in an interview.

The S&P/TSX composite index closed up 230.88 points to 19,366.69 to come within half a point of last Friday's record high.

In New York, the Dow Jones industrial average was up 360.68 points at 34,382.13. The S&P 500 index was up 61.35 points at 4,173.85, while the Nasdaq composite was up 304.99 points at 13,429.98.

U.S. stock markets fared a bit worse than the TSX over the past week, losing between 1.1 and 2.3 per cent, but it wasn't all that bad considering last week ended with three of the four stock markets closing at record high levels, Petursson said.

Financials have been the story of the week as banks benefit from a steeper yield curve, while energy and materials continued to be the driver they've been all year, he said.

Ten of the 11 major sectors on the TSX were higher on the day, led by energy, health care, financials and materials.

Energy rose 2.7 per cent as crude oil prices climbed above US$65 a barrel with service being restored on the Colonial Pipeline after it paid ransom following a cyberattack.

"You pay enough money you can solve any problem, and so that has, I think, alleviated the excess supply concerns that the market may have held with respect to oil," said Petursson.

The June crude oil contract was up US$1.55 at US$65.37 per barrel and the June natural gas contract was down 1.2 cents at US$2.96 per mmBTU.

Shares of MEG Energy Inc. climbed 7.3 per cent, while Vermilion Energy Inc. rose 4.2 per cent and Cenovus Energy Corp. was 3.7 per cent higher.

Health care increased nearly two per cent even though shares of Aurora Cannabis Inc. dropped 7.2 per cent after posting weak quarterly results.

The heavyweight financials sector gained 1.3 per cent, led by about six per cent gains by Canaccord Genuity Group Inc. and Brookfield Asset Management Inc. Banks were up as much as one per cent.

Materials rose with an increase in metals prices.

The June gold contract was up US$14.10 at US$1,838.10 an ounce and the July copper contract was down 3.6 cents at US$4.65 a pound.

Technology has faced a challenging week but increased on the day with Lightspeed POS Inc., BlackBerry Ltd., and Shopify Inc. up 5.2, 5.1 and 3.1 per cent, respectively.

Petursson expects the growth sector will continue to come under pressure moving forward.

"As inflation expectations continue to move higher, that's really going to weigh on valuation and so I think the tech sector is probably the one to watch as far as continued weakness."

Industrials slipped slightly into negative territory with Canadian National Railway falling 3.7 per cent after amending its offer for Kansas City Southern.

Meanwhile, shares of SNC-Lavalin Inc. surged 16 per cent after reporting quarter results. And Air Canada increased 5.6 per cent, in line with U.S. airlines and others in the tourism sector, after the Centers for Disease Control and Prevention said fully vaccinated Americans can stop wearing masks.

The Canadian dollar traded for 82.58 cents US compared with 82.30 cents US on Thursday.

The loonie has enjoyed a strong run since the Bank of Canada indicated it would start pulling back on its financial stimulus.

"It wouldn't surprise us to see it hold here or maybe retrace just a little bit before we see that next leg up towards potentially 84 cents," Petersson said.

"The expectation over the next two years is that the Bank of Canada could move faster than the Fed and so two-year rate expectations are moving up faster in Canada than in the United States and that tends to move the Canadian dollar."

This report by The Canadian Press was first published May 14, 2021.