Indian markets closed higher for the third straight session as broad-based buying lifted indices. Select midcaps surged on deals, earnings upgrades and volumes, even as a few stocks fell.