In a volatile trade, the benchmark BSE Sensex extended gains for the third consecutive day by rising a marginal 17.19 points to 28,463.31 as investors remained on the sidelines on lack of triggers from both the domestic and global fronts.
On a weekly basis, the Sensex and the wider Nifty added 801.91 points (2.89 pc) and 249.30 points (2.98 pc), respectively.
"Markets swung between positive and negative terrain as it seems to await to take cues from the monsoon showers and corporate earnings ahead," said Vinod Nair, Head Fundamental Research at Geojit BNP Paribas Financial Services.
More From This Section
Starting off higher, the gauge continued its upward march to hit the day's high of 28,576.32 on the back of sustained foreign inflows after the government simplified FDI rules and a firming Asian trend.
Later, profit-booking took hold that wiped off the gains completely and took the benchmark back to the negative zone as it touched a low of 28,417.46. But some late-buying saved the day and helped the index close higher by 17.19 points or 0.06 per cent at 28,463.31.
The 50-share Nifty, after climbing to the session's high of 8,642.95, too succumbed to the selling pressure and settled the day at 8,609.85, up 1.80 points or 0.02 per cent.
Intra-day, it went below the 8,600-mark to touch a low of 8,593.15.
Banking stocks, which were in the limelight yesterday, saw some selling pressure following reports that the government's approval of composite foreign investment cap by clubbing all forms of overseas investments won't benefit the sector, brokers said.
Meanwhile, foreign investors bought shares worth Rs 745.81 crore yesterday as per provisional data.
In overseas markets, European stocks were trading lower in their afternoon trade ahead of a debate and voting by lawmakers in Germany today on the plan for a third bailout for Greece.