The Dow Jones Industrial Average gained 264 points Tuesday as markets shook off declining retail stocks.