At close, the 30-pack Sensex was up 242.83 points, or 0.40%, at 61,275.09, and the Nifty was up 86 points, or 0.48%, at 18,015.80.
The market opened lower on weak global cues but recovered early losses in and stayed flat for mostpart of the session but final-hour buying in the auto, realty and IT stocks helped the indices close near the day’s high.
Tech Mahindra, Apollo Hospitals, Eicher Motors, Reliance Industries and Adani Enterprises were among the biggest gainers on the Nifty, while losers included HUL, Sun Pharma, ITC, L&T and ONGC.