August was an encouraging month for stocks, as markets were able to end the month in positive territory despite an early-month sell-off. The Dow Jones Industrial Average ended the month at a record high, while the S&P 500 was close to its own record level. The Nasdaq Composite lagged its peers, but the technology-heavy index still managed to eke out a modest gain during the month.