The S&P 500 experienced a mid-week slump before rebounding on Friday with its strongest single-day gain since May.