Stocks closed broadly higher on Wall Street Tuesday as gains by technology companies and banks helped the market gain back some of the ground it lost in a big sell-off the day before.

The bounce snapped a six-day losing streak for the market. Investors were relieved to see that China had stabilized its currency, easing some of the pressure in its trade war with the U.S.

On Tuesday:

The S&P 500 index rose 37.03 points, or 1.3%, to 2,881.77.

The Dow Jones Industrial Average climbed 311.78 points, or 1.2%, to 26,029.52.

The Nasdaq composite gained 107.23 points, or 1.4%, to 7,833.27.

The Russell 2000 index of smaller companies picked up 14.67 points, or 1%, to 1,502.09.

For the week:

The S&P 500 is down 50.28 points, or 1.7%.

The Dow is down 455.49 points, or 1.7%.

The Nasdaq is down 170.81 points, or 2.1%.

The Russell 2000 is down 31.57 points, or 2.1%.

For the year:

The S&P 500 is up 374.92 points, or 15%.

The Dow is up 2,702.06 points, or 11.6%.

The Nasdaq is up 1,197.99 points, or 18.1%.

The Russell 2000 is up 153.53 points, or 11.4%.