The BSE Sensex edged up by about 3 points to end at 30,250.98, while the broader NSE Nifty gained 15 points to reach 9,422.40.
The indices had ended at record highs in yesterday's session as well after the weather office said monsoon rainfall this year will exceed its earlier forecast, easing inflation worries.
Two-wheeler makers Hero MotoCorp and Bajaj Auto were the top performers in the Sensex pack on expectations that normal monsoon will boost rural demand.
It finally ended at 30,250.98, up 2.81 points or 0.01 per cent, surpassing the previous record closing high of 30,248.17 reached yesterday.
More From This Section
The gauge has now risen by 392.18 points in four sessions.
On similar lines, the 50-share NSE Nifty gained 15.10 points or 0.16 per cent to 9,422.40 after scaling a fresh intra-day high of 9,450.65.
The index broke its previous record closing of 9,407.30 reached yesterday.
"Today's volatility in the European market ahead of BoE policy meet has turned investors to profit-booking.
Meanwhile, foreign portfolio investors (FPIs) bought shares worth net Rs 893.36 crore yesterday, as per provisional data from the stock exchanges.
Most Asian stocks advanced as global equities remained at record levels amid a rebound in oil. Key indices in China, Hong Kong, Japan, Singapore, South Korea and Taiwan rose up to 1.16 per cent.
In Europe, London's FTSE was up 0.01 per cent, Paris CAC 40 rose 0.07 per cent, while Frankfurt's DAX 30 gained 0.05 per cent in their early deals.
Major gainer Hero MotoCorp rose 4.26 per cent. It was followed by Bajaj Auto 3.12 per cent, Adani Ports 2.28 per cent, SBI 1.15 per cent, ITC 1.00 per cent, Sun Pharma 0.93 per cent and Wipro 0.89 per cent.
However, Bharti Airtel fell 2.21 per cent, Gail 2.14 per cent, ONGC 1.94 per cent, HUL 1.78 per cent, Axis Bank 1.69 per cent, NTPC 1.39 per cent, Coal India 1.20 per cent, Power Grid 1.14 per cent and Tata Motors 1.08 per cent.
However, power fell 1.22 per cent, utilities 1.03 per cent, oil&gas 0.93 per cent, energy 0.63 per cent and capital goods 0.51 per cent.
The BSE Mid-Cap index rose 0.05 per cent, outperforming the Sensex. The BSE Small-Cap index fell 0.05 per cent.
The market breadth turned negative as 1,583 stocks closed in red, while 1,247 finished in green and 162 ruled steady.
The total turnover on BSE amounted to Rs 4,031.10 crore, higher than Rs 3,625.49 crore registered during the previous trading session.