Indian stocks advanced for a sixth week, the longest weekly run in more than two years, as shares related to e-commerce climbed following Alibaba Group Holding Ltd.’s record initial public offering in the U.S.

Info Edge (India) Ltd. (INFOE) led a rally among domestic e-commerce-related companies after Alibaba raised $ 21.8 billion. Maruti Suzuki India Ltd. (MSIL) increased to a record. Jet Airways (India) Ltd. (JETIN) climbed the most in a week after a local unit of Moody’s Investors Service, upgraded its rating. Tata Consultancy Services Ltd. (TCS) paced gains among technology shares.

The S&P BSE Sensex (SENSEX) fell less than 0.1 percent to 27,090.42 at the close today. For the week, it added 0.1 percent. Alibaba and shareholders including Yahoo! Inc. sold 320.1 million shares for $ 68 each, after offering them for $ 66 to $ 68, according to a statement. In India, Flipkart.com and Amazon.com Inc. in July said they would invest $ 1 billion and $ 2 billion each to tap a market CLSA Asia-Pacific Markets projects will grow sevenfold to $ 22 billion by 2018.

“There is no major listed e-commerce company in India, but the cheer from the Alibaba IPO is spreading to stocks related to the sector,” Paras Bothra, vice president for equity research with Ashika Stock Broking Ltd. in Mumbai, said by phone. “This bodes well for local e-commerce companies.”

Info Edge, which runs an online job and matrimonial website, jumped 6.2 percent, the most since Sept. 9. Just Dial Ltd., which operates a local online search engine, advanced 1.3 percent after Chief Financial Officer Ramkumar Krishnamachari said he expects e-commerce to add to sales from the fiscal year that begins April 1, 2015. Gati Ltd. (GTIC), a logistics company, surged 5 percent, taking this year’s gains to more than 300 percent.

China, Japan

Indian equity gauges advanced this week amid optimism over trade ties with China. The Sensex, which has risen 28 percent this year, its longest weekly stretch of increases since a seven-week rally through February 19, 2012.

Chinese President Xi Jinping yesterday pledged to invest $ 20 billion in India over five years. Prime Minister Narendra Modi met Japanese Prime Minister Shinzo Abe in Tokyo earlier this month and visits the U.S. later this month to meet President Barack Obama, looking to bolster ties. Abe offered 50 billion yen ($ 460 million) in infrastructure loans and pledged 3.5 trillion yen of investment and financing over five years.

“Modi has made economic diplomacy a tool to boost growth, and that’s very positive for the economy, company earnings and stock markets,” Kishor Ostwal, managing director of equity research provider CNI Research Ltd., said by phone today. “Now investors will look forward to Modi’s U.S. visit to see how trade relations with the world’s biggest economy play out.”

Jet, Cipla

Maruti added 1.3 percent, extending this year’s rally to 75 percent, the best performer on the Sensex this year. Drugmaker Cipla Ltd. and Housing Development Finance Corp. (HDFC), the top mortgage lender, both rose 1.3 percent. Jet Airways surged 3 percent, paring this year’s loss to 21 percent.

Tata Consultancy Services gained 2.7 percent to a record and the best performance on the Sensex today. Wipro Ltd. (WPRO) rose 1.1 percent, a third day of gains.

The Sensex is the best performer among the world’s 10 biggest markets this year as foreigners have bought $ 14.1 billion of shares, the most among the eight Asian markets tracked by Bloomberg. The gauge trades at 15.7 times projected 12-month earnings, compared with the MSCI Emerging Markets Index’s multiple of 11.2.

To contact the reporter on this story: Rajhkumar K Shaaw in Mumbai at rshaaw@bloomberg.net

To contact the editors responsible for this story: Michael Patterson at mpatterson10@bloomberg.net Ravil Shirodkar, Dick Schumacher