The 30-share Sensex, after a cautious start, gathered momentum and rallied to 34,558.88, before ending at 34,503.49, a rise of 70.42 points, or 0.20 per cent. Among sectoral sub-indices, outperformed with Nifty IT gaining more than 2 per cent.
The broader NSE Nifty closed 0.28 percent higher at 10,681.25, while the benchmark BSE Sensex ended up 0.26 percent at 34,592.39.
Earlier, the Sensex Sensex hit new life-time intra day high of 34,565.63 in opening session.
Overseas, Asian stocks edged higher after strong lead from Wall Street.
At 3:30 pm: The Indian equity indices gained lost ground after falling following the Supreme Court judges press conference.
"There is a little bit of hesitation seen ahead of key macro data coming later in the day".
Sensex off record highs, still up 76 points at 34580 in late morning; TCS, Bharti Airtel and Wipro stocks fall
The BSE Mid-cap and BSE Small-cap indices were up 0.26% and 0.75%, respectively. Positive trade in global market and expectation of revival in domestic earnings from H1FY18 is upholding the healthy sentiment.
The rupee strengthened by 11 paise to 63.55 against the dollar on fresh selling of the United States currency by exporters and banks.
Zee (+1.6%), Vedanta (+1.5%), ICICI Bank (+1.2%), Maruti (+1.1%) and HDFC (+0.79%) were the top gainers on Nifty50.
Sectorwise, the S&P BSE banking index rose by 145.58 points, followed by oil and gas index by 112.02 points and capital goods index by 95.84 points.
Major Sensex losers were: Bharti Airtel, down 1.04 per cent at Rs 509.40; ITC, down 0.89 per cent at Rs 267.50; Power Grid, down 0.88 per cent at Rs 196.50; Bajaj Auto, down 0.84 per cent at Rs 3,175.10; and Tata Motors (DVR), down 0.73 per cent at Rs 252.50.