Sensex and Nifty recovered from a four-day losing streak to register a gain made possible by heavy gains in power, metal and telecom stocks. The 30-share Sensex pared all losses to settle 198.44 points or 0.34 per cent higher at 58,664.33. NSE Nifty rose 86.80 points or 0.50 per cent to 17,503.35.