After a quiet start, the market gradually moved up with buying coming in select heavyweights along with capital goods and auto counters. The key index remained in a fairly tight range and showed sideways movement throughout the session, while holding on the psychological 5,100 mark.
The market turned highly volatile in late afternoon trade and subsequently slipped into the red on fresh round of profit taking before staging a smart turnaround to conclude on a positive note.
Global trading sentiment was cautious ahead of the US Federal policy announcement.
Most Asian markets ended firm, while European peers traded near one-month highs.
Pharma, bank, oil & gas, metal and auto shares saw good buying, while technology and FMCG witnessed selling.
The 50-share Nifty hovered between a high of 5,141.70 and a low of 5,100.70 before settling at 5,120.55, a gain of 16.70 points, or 0.33 per cent, over the last close.
ACC, Sterlite Industries, HCL Tech, Tata Motors, Sesa Goa, Jindal Steel, Dr Reddy's, Tata Power, JP Associates and Bank of Baroda were top percentage-wise gainers from Nifty.
However, TCS, Bharti Airtel, DLF, Coal India, Maruti, ITC, Power Grid, HDFC Bank and Infosys ended with gains.
The turnover in cash segment rose to Rs 9,316.46 crore against Rs 9,080.60 crore yesterday. In all, 5,443.89 lakh shares changed hands in 49,40,945 trades. Market capitalisation stood at Rs 58,48,865 crore.