Investors should stay out of the stock market after Republican 's stunning win, Dennis Gartman, founder and editor of The Gartman letter, said Wednesday.

"I think the first thing you want to do is go to the sidelines, if you're not already there. If you didn't get to the sidelines before the vote, get to it now. If you're long on the fact that the Dow has rallied 300 or 400 points from the lows … use that as an excuse, as a reason to get closer to the sidelines," he told CNBC.

Trump shocked the world by beating Democratic nominee in the race for the White House. His success was only part of a larger, crushing victory for the Republican Party, which retained the House and appeared poised to maintain Senate control.

"I voted for Mr. Trump, but I was not happy to have done it. I did it by holding my nose and [pressing the button], but I am fearful of his trade protectionism, I'm fearful of his movement towards trade tariffs around the world and I'm fearful of what this means globally," Gartman said.