NIFTY50 breaks losing streak, gains 0.35% to 24,126.50