Nasdaq closes higher for 7th day, longest streak since January