The market, however, is likely to give up some gains on Wednesday as the inflation and industrial production data - on which it was pinning hopes - disappointed.
"The macro data are bad news to the extent that the market was expecting an improvement in the industrial production and inflation numbers. The market might take a breather as the turnaround it was expecting hasn't reflected in the numbers," said U R Bhat, managing director, Dalton Capital Advisors.
Foreign institutional investors (FIIs), who were seen pulling out money in the last two trading sessions, net bought shares worth Rs 370 crore on Tuesday, exchange data showed. The gains on Tuesday were led by Tata Motors, which rose 6 per cent after its June quarter net profit exceeded Street expectations. HDFC and HDFC Bank also gained 5 per cent and 1.8 per cent respectively on expectations that the two stocks might gain weight in a rebalancing exercise by global index provider MSCI.
Analysts said companies in the real estate, infrastructure and capital goods sector might see selling pressure, while technology, consumer goods and pharma stocks might find favour on Wednesday.
"Though we have witnessed a decent recovery in the Nifty in the last two sessions yet only selective index majors participated in the run. Overall, it's not a healthy sign for the markets, so one should maintain a cautious view at the current levels and keep the trading positions hedged," said Jayant Manglik, president-retail distribution, Religare Securities.