Persistent capital inflows from foreign funds also boosted the market sentiment.
Foreign institutional investors (FIIs) bought shares worth a net Rs 1,646.95 crs as per provisional data from the stock exchanges.
The BSE benchmark Sensex resumed lower at 20,167.93 and declined further to 20,162.12 on profit-booking in select counters. However, it recovered immediately to 20,326.48 before quoting at 20,267.29 at 1030hrs, showing a net gain of 54.33 points of 0.27 per cent from its last close.
Major gainers were Dr Reddy Lab's (2.83 per cent), Icici Bank (2.00 per cent), SBI (1.30 per cent), Bharti Airtel (1.29 per cent) and Cipla (1.11 per cent).
Asian shares rose in their early trade after data showed Japan's economy accelerated in the first three months of the year. Key benchmark indices in China, South Korea, Hong Kong and Taiwan rose by 0.32 per cent to 0.98 per cent, while indices in Japan and Singapore fell by 0.06 per cent to 1.13 per cent.