By Caitlin Ostroff and Gunjan Banerji

The S&P 500 edged higher and headed toward a big weekly gain that would mark its longest winning streak since October.

The broad stock market index rose about 0.2% Friday after closing Thursday at its 19th all-time high for 2021. The benchmark is on track to notch gains for a third straight week for the first time in nearly six months. The Nasdaq Composite added around 0.1%. The Dow Jones Industrial Average gained about 70 points, or 0.2%.

The S&P 500 and Nasdaq are on track to gain at least 2% a piece this week, while the Dow is on track for a 1.3% weekly rise.

Stocks have surged this week, led by sharp gains for technology companies after weeks of volatility. Bond markets calmed, with yields dropping for four straight days before ticking higher on Friday.

Shares of tech giants were among the biggest winners in the stock market this week as investors returned to a trade that had been wildly popular for much of last year. Twitter shares are on track to add around 11% this week. Apple has gained 6.9%.

Still, the recent rally has been broad-based as investors have bet that economic growth will pick up as Covid-19 vaccines and government support help revitalize social and business activity.

Last week's jobs report showed that the unemployment rate fell to a pandemic low. Federal Reserve officials reiterated this week that the central bank will continue with policy measures aimed to support the recovery.

The IMF also projected that the world economy will grow 6% this year, the fastest pace of expansion in at least four decades.

Some analysts say they expect the powerful run in the market to continue as more Americans are vaccinated and head out to spend on everything from travel to clothing.

"A lot of people think there's too much optimism, giddiness," said Jim Paulsen, chief investment strategist at the Leuthold Group. "I still think that's going to get even more extreme probably as more people get shots in the arm...However optimistic we feel today, we could feel a heck of a lot more optimistic later this year."

In bond markets, the yield on the 10-year Treasury note recently ticked up to 1.673%, from 1.632% Thursday. It remains below the 1.749% it hit at the end of last month.

Some investors are cautioning that the pace of Covid-19 vaccinations and rising infection levels in some parts of the world may hobble the global recovery. Fed Chairman Jerome Powell on Thursday also said the sluggish pace of the vaccine-rollout outside the U.S. is a key threat to the outlook.

"We're going from this period of time where we're going 'whoa, everything is getting better' and we've forgotten there will be bumps on the road," said Lars Skovgaard Andersen, investment strategist at Danske Bank Wealth Management. "We are in for a time when we have much higher volatility."

Guidance on companies' future profits and sales prospects, which will be forthcoming when the quarterly earnings start next week, are also likely to determine the course of the market in coming weeks.

"We need to now see strong earnings growth to validate this stock rally, " said Anwiti Bahuguna, a portfolio manager at Columbia Threadneedle. "I think it will be validated and we will see stocks higher in the remainder of the year."

Overseas, the pan-continental Stoxx Europe 600 edged up 0.1%.

In Asia, most major benchmarks closed lower. The Shanghai Composite Index shed 0.9%, and Hong Kong's Hang Seng Index declined 1.1%. South Korea's Kospi edged down 0.4%.

Write to Caitlin Ostroff at caitlin.ostroff@wsj.com and Gunjan Banerji at Gunjan.Banerji@wsj.com

(END) Dow Jones Newswires

04-09-21 1240ET