Indian shares ended the one-hour special Diwali trading session little changed on Sunday, pausing a seven-session rally that had lifted the benchmark indexes more than 10% through Friday. The Nifty 50 fell 0.18% to 24,986.4, while the Sensex slipped 0.04% to 80,999.4. Foreign portfolio investors bought shares worth 459.61 billion rupees ($4.89 billion) over five sessions last week, including India’s largest single-day foreign buying session in about six years on Thursday. A sharp decline in oil prices after the US midterm election results eased concerns about inflation, India’s import bill and pressure on the rupee. Analysts also cited supportive global cues and better-than-expected September-quarter earnings. Domestic stocks were relatively insulated from the global technology selloff because of their limited exposure to artificial intelligence. Seven of 16 major sectoral indexes rose, while the small-cap and mid-cap indexes gained 1% and 0.1%, respectively. The pharma index advanced 1.7%, led by a 7.5% jump in Divi’s Laboratories after its quarterly profit rose 64% year on year. The metal index gained 0.4%, with Tata Steel up 2.1% after reporting an 18% increase in operating profit and receiving upbeat brokerage commentary on its India business. Ravi Singh, chief research officer at Master Capital Services, said stronger foreign buying, favorable global conditions and earnings had reinforced the rally. Raamdeo Agrawal, chairman and co-founder of Motilal Oswal Financial Services, said relatively low valuations and strong earnings growth could position the market for “bumper returns” by next Diwali.