S&P, Nasdaq post 8-day winning streaks