A largely upbeat second-quarter earnings season has helped the S&P 500 bounce back by about 13 percent from its mid-June lows after a rough first-half performance. The S&P 500 declined 0.16 percent to end the session at 4,145.19 points. For the week, the S&P 500 rose 0.36 percent, the Dow fell 0.13 percent and the NASDAQ added 2.15 percent. Advancing issues outnumbered falling ones within the S&P 500 by a 1.3-to-1 ratio. The S&P 500 posted four new highs and 30 new lows; the NASDAQ recorded 60 new highs and 38 new lows.