Sensex, Nifty showed modest gains, metal stocks show resilience.