The domestic stock markets opened lower, mirroring negative global cues. The markets remained range-bound with stocks fluctuating between gains and losses throughout the session. Buying momentum increased in the afternoon as the markets rose above 5,100 levels. The markets closed with moderate gains near the daily highs. Technically, market breadth was neutral amid lower trading volumes. The Nifty faces resistance at 5,161-5,230 levels and support at 4,987-4,757 levels.