The current bull market for USA stocks is now the longest of all time.
The S&P 500 rose 17 points, or 0.6 per cent, to 2,874, beating the record it set in January by two points. The S&P 500 industrial index rose 0.8%.
The S&P 500 energy index rose 0.5 per cent and the S&P 500 materials index gained 0.4 per cent, in tandem with higher prices for oil and metals.
The Wall Street has seen some records being broken this year, as it witnessed the largest drop by a publicly-shared company.
Investors were cheered by strong company earnings, the expanding economy and hopes that the United States and China could resolve their trade dispute.
The S&P 500 saw resistance near a new closing high, with the Dow Jones also closing lower on Wednesday.
"There was quite a lot of news that was negative for Trump yesterday that introduced uncertainty into the market", said Robert Phipps, director at Per Stirling Capital Management in Austin, Texas.
The Dow Jones Industrial Average fell 88.69 points, or 0.34 per cent, to 25,733.60.
The criticism came ahead of the release of the Fed's minutes of its August policy meeting on Wednesday, which is expected to reaffirm its confidence in the US economy and its commitment to future rate hikes.
Trump told Reuters he was "not thrilled" with the Fed under his own appointee, Chairman Jerome Powell, for raising rates and said the central bank should do more to help him to boost the economy.
Cramer said the 2011 S&P downgrade of USA government debt from AAA to AA+ was been one of the darkest moments in the bull market. Market watchers point to a variety of potential threats to the bull market, including a global slowdown prompted by the myriad trade conflicts initiated by Trump.