The Sensex, after touching a high of 19,723 pared some gains and ended up 47 points at 19,608.
Nifty ended up 10 points at 5,932. Investors would be looking at the January WPI data which is scheduled to come out tomorrow.
This is likely to decide the stance of RBI's monetary policy on March 19.
"The Nifty faces key resistance at the 6000 mark.
"Any move towards 6000 can be used as an opportunity to initiate short positions.
"We expect a fall to 5750 / 5700 levels over the next 3 to 5 weeks," said Shardul Kulkarni, Sr. Technical Analyst, Angel Securities.
Meanwhile, after contracting for eight straight months, India's exports grew by a meagre 0.82% in January to $25.58 billion. Exports had stood at $25.37 billion in January 2012.
Imports rose by 6.12% to $45.5 billion in the month under review, widening the trade deficit to $20 billion.
Overnight, the yen rallied on Wednesday after an official with the Group of Seven said it is worried about excess moves in the Japanese currency.
Japan's Nikkei share average lost ground as the yen jerked higher, triggering profit-taking on exporters, while social gaming company Gree Inc suffered a steep fall after cutting its annual profit forecast.
Nikkei has slipped 1% at 11,251. Kospi composite and Straits Times were up around 1% each.
Foreign Institutional Investors remained buyers on Tuesday, 12 February 2013 and bought shares worth net Rs 604.16 crore.
Broader markets underperformed the benchmark, with the BSE mid-cap index slipping 0.28% at 6,704. Small cap index was down 0.5% at 6,708.
IT stocks rose after the National Association of Software and Services on Tuesday, 12 February 2013, projected up to 14% growth in revenue from software exports at between $84 billion to $87 billion for the year ending 31 March 2014 (FY 2014).
BSE IT index was up 1.3% at 6,498.
Auto
'Obama plans to make US a magnet for jobs'
Fewer PSU shares in key indices compared to pvt peers
G7 affirms commitment to market-driven exchange rates
Special: Has UPA KILLED the India growth story?
Markets end marginally lower