U.S. stocks closed higher Tuesday, recovering slightly from a sharply lower start to the year and shaking off pressure from an intraday dip in oil below $30 a barrel.

Stabilization in the Chinese yuan overnight and oil's initial attempt at gains helped stocks rise more than 1 percent in the open.