Indian stock markets opened with marginal gains on Tuesday despite ongoing selling pressure from foreign investors, which continues to weigh on market sentiment.