The improvement came during what could have been a difficult month for the U.S. economy, with a partial government shutdown that lasted 16 days and a narrowly averted default on the U.S. government's debt, which could have rattled financial markets.
The Dow rose 69.80 points, or 0.5 percent, to close at 15,615.55.
The Standard & Poor's 500 index was up 5.10 points, 0.3 percent, to 1,761.64.
The Nasdaq composite rose 2.34 points, or 0.1 percent, to 3,922.04.
For the week so far:
The Dow is up 45.27 points, or 0.3 percent.
The S&P 500 is up 1.87 points, or 0.1 percent.
The Nasdaq is down 21.32 points, or 0.5 percent.
For the year so far:
The Dow is up 2,511.41 points, or 19.1 percent.
The S&P 500 is up 335.45 points, or 23.5 percent.
The Nasdaq is up 902.53 points, or 29.9 percent.