While stock indices ended flat on bourses, the rupee gained against the dollar in anticipation that more inflow of foreign funds would come to the country over the next two months.

The rupee closed at 61.44 a dollar, up 29 paise compared to its previous close of 61.73. It touched a high of 61.25 intra-day.

The S&P BSE Sensex closed at 19915.95 with a marginal gain of 13.88 points.

Realty stocks gained the most, up by 1.65 per cent, followed by automobile at 0.94 per cent, metal by 0.63 per cent and oil & gas by 0.46 per cent.

While other sectoral indices gained marginally, power, capital goods, banks, information technology, technology and healthcare stocks ended in the red.

On the National Stock Exchange (NSE), the 50-share Nifty closed at 5907.30 with a marginal gain of 2.40 points.

“After two days of successive rise, Nifty was seen spending the entire session in a narrow range of 5890-5950 on Friday but remained quite volatile,” said Jayant Manglik, President-Retail Distribution, Religare Securities Limited.

More In: Markets | Business