Sensex and Nifty50 End Four-Day Losing Streak on October 5