Indian equity markets ended with gains for the third straight session after trading in a narrow range throughout the session.