(CNBC) -- Stocks rose on Tuesday as the S&P 500 moved closer to a record high set earlier this year, boosted by strong corporate earnings that offset worries around global trade.
The S&P 500 rose 0.4 percent to 2,861.22 with energy and financials outperforming. The Dow Jones Industrial Average gained 156 points as Caterpillar climbed more than 2 percent. The Nasdaq Composite advanced 0.4 percent as Alphabet rose 1.7 percent.
Through Monday's close, the S&P 500 was just 0.8 percent away from reaching an all-time high of 2,872.87, set on Jan. 26. The Nasdaq Composite was also within 1 percent of a record high, while the Dow was more than 4.2 percent away from reaching an all-time high.
Advertisement - story continues below