This article would seem to indicate Trump has nothing to do with any of it.
The reality is that the stock market is an indicator of what the private sector is accomplishing, and of investors' trust in what the private sector will accomplish. The most common effect government has on the markets (both the true marketplace AND the stock market) is to hold them back - with few exceptions.
During the Obama administration the general economy was so poor that the Fed lowered interest rates to incredible lows. This kept the market from diving, in part because there was nothing else to invest in with much chance of a reasonable return on investment. Trump's policies and tax reduction have fueled remarkable economic growth, and despite that the Fed has not made moves on interest rates that would help the economy or the stock market, the economy and the stock market have surged. Trump deserves great credit for this.