Mumbai, May 20: In see-saw trade, equity benchmarks Sensex and Nifty frittered away most of their early gains and inched up to log fresh closing highs for the fourth straight day today amid profit taking in recent gainers like RIL.

While buying was seen in realty, IT, consumer durable, metal and pharma, oil&gas shares were dumped by investors, say traders. Small-cap and mid-cap stocks, favourites of retail investors, continued to out-perform bluechips, they added.

The BSE Sensex resumed well and shot up to day’s high of 24,587.16 on firm Asian cues and heavy buying by foreign funds. However, the buoyancy was short-lived as it fell back to trade almost flat till afternoon trade.

It rebounded marginally to settle at a new closing peak of 24,376.88, clocking a net rise of 13.83 points or 0.06 per cent. In straight four sessions, the index has flared up by 561.76 points, or 2.36 per cent, on hopes that the incoming Narendra Modi-led government will boost the economy.

It previous closing peak was 24,363.05 made on Monday.

“In line with expectation, markets were seen trading in a narrow range on Tuesday and closed almost unchanged in the end…we have been seen noticeable interest in midcap and smallcap segment nowadays,” said Jayant Manglik, President-retail distribution, Religare Securities.

Select front-line stocks line RIL, ONGC, ICICI Bank, SBI, Coal India, L&T, Hero MotoCorp, Tata Motors, NTPC and Gail India attracted heavy profit-booking.

However, Infosys, HDFC, Sesa Sterlite, M&M, ITC, TCS, Bharti Airtel, Tata Steel, Wipro, BHEL, Hindalco, Dr Reddy’s Lab and Cipla witnessed good demand, said analysts.

Similarly, the broader 50-issue CNX Nifty of the NSE moved in a range of 7,247.70 and 7,353.65, before closing at yet another closing peak of of 7,275.50. It gained 11.95 points or 0.16 per cent over Monday’s closing of 7,263.55.

“There is optimism after clear win for BJP in the general elections last week. Going ahead, further reform measures and economic recovery will trigger further buying,” said Nidhi Saraswat, Senior Research Analyst, Bonanza Portfolio.

Modi, who steered BJP and the NDA to a landslide victory in the Lok Sabha elections, was today appointed Prime Minister. .