Domestic markets, Sensex and Nifty ended marginally higher for the sixth consecutive day in a row on Friday, led by gains in ICICI Bank, ITC and NTPC amid persistent foreign fund inflows.

After touching its all-time intra-day high of 46,309.63, the 30-share BSE index settled 139.13 points or 0.30 per cent up at 46,099.01, just shy of its closing record.

Similarly, the broader NSE Nifty rose 35.55 points or 0.26 per cent to 13,513.85. It hit a lifetime high of 13,579.35 during the session.

The gainers were led by ONGC, rallying around 6 per cent, followed by NTPC, Tata Steel, ICICI Bank, ITC, Titan and Bajaj Auto.

On the other hand, Axis Bank, M&M, Tech Mahindra, Asian Paints and Bajaj Finserv were among the laggards.

Domestic equities remained resilient but erased some gains towards the second half as concern over probable no-deal Brexit weighed on investors’ sentiment, said Binod Modi, Head-Strategy at Reliance Securities.

On the broader market front, the S&P BSE MidCap and SmallCap ended with gains at 0.15 per cent and 0.51 per cent respectively.

European markets saw a sharp gap down opening on this concern. “PSU banks, metals and FMCG continued to attract investors, while profit-booking was visible in pharma, IT and automobile counters,” he added.

Elsewhere in Asia, bourses in Shanghai and Tokyo were in the red, while Hong Kong and Seoul ended in the positive territory.

Stock exchanges in Europe were trading on a negative note in early deals.

Meanwhile, the global oil benchmark Brent crude futures slipped 0.56 per cent to USD 49.97 per barrel.