The S&P 500 ended Tuesday just short of a new closing record, while the tech-heavy Nasdaq Composite climbed to an all-time high as bitcoin staged an intraday comeback.

The blue-chip Dow Jones Industrial Average gained 68.61 points to 33,945.58 after posting its best day since March on Monday. The S&P 500 climbed 0.5% to end the day at 4,246.44 while Nasdaq erased earlier losses and climbed 0.8% to hit a fresh intraday record and finish at 14,253.27.