Yes the market has done well under Trump. But Obama deserves a big share of the credit. Obama took over a crashing stock market in a deep recession. The market bottomed at 6,627 points on March 6, 2009 and from there it was one of best constant upward runs in history until the market hit 19,762 points at the end of 2016 and the end of Obama's term.