(CNBC) — Stocks closed higher on Tuesday as the latest corporate earnings season got under way while worries of an ongoing trade war declined.

The Dow Jones Industrial Average rose 143.07 points to 24,919.66 as DowDuPont and Procter & Gamble outperformed. The 30-stock index also posted its fourth straight day of gains.

The S&P 500 gained 0.4 percent to 2,793.84 — its highest since Feb. 1 — with telecommunications and staples both rising at least 1 percent. The Nasdaq Composite closed just above breakeven at 7,759.20. The Russell 2000, which is made up of small-cap stocks, reached an all-time high before closing 0.5 percent lower at 1,695.62.

Note: Read our discussion guidelines before commenting.