The S&P 500 ended the midweek trading session with a gain of 0.7%. The Dow advanced 0.6%, while the Nasdaq advanced 0.9%.