The Sensex ended higher 7 points to close at 18,763 and the 50-share Nifty advanced 6 points to end at 5,704.
The Asian Markets fell on Monday and the dollar firmed as investors shied away from risk ahead of the closely fought US Presidential election, the result of which could define a clear direction for broader markets.
The Hang Seng slipped 105 points or 22,006, Nikkei slipped 44 points to 9,007, Shanghai Composite edged lower by 3 points to 2,114 and the Seoul Composite index closed weaker by 10 points at 1,908 levels.
The political uncertainty in the world's largest economy made investors wary of holdings riskier assets, and their safe-haven bids buoyed the US dollar to two-month highs against a basket of major currencies.
US President Barack Obama and Republican challenger Mitt Romney were neck-and-neck in opinion polls in the final 48 hours before Tuesday's vote.
Obama's re-election is perceived as negative for equities, while markets see Romney as stock-friendly, analysts have said.
After the US election, Congress must deal with a "fiscal cliff", up to $600 billion in expiring tax cuts and spending reductions that are set to kick in next year, which threatens the US economy.
In Europe also the markets were trading on a weak note with CAC 40, DAX and FTSE 100 slipping 0.6-1% each.
Back home, ITC was among the top Sensex gainers up 1.7% to close at Rs 288 on the back of buying at lower levels after the stock witnessed profit taking in the previous few sessions.
Cipla ended higher by up 1% at Rs 381 ahead of its second quarter earnings which will be announced later today.
In the capital goods segment BHEL was up 0.6% at Rs 230 as it gained after it saw recent correction after the central bank continued to keep key policy rates unchanged.
On the other hand, Hindalco from the metal space was the top Sensex loser, it slipped 2.5% to Rs 115
Markets end firm led by index heavyweights
Post Sandy, NY, NJ rush to arrange alternate voting sites
Markets end higher led by auto shares
Paybacks from the hustings
Markets slump as RBI disappoints