The important point I haven't seen mentioned is that the money you put in the market should not be needed for 10 years. Not money you plan to buy a house in about 5 years, or maybe use to get married about 10 years from now. From 1929 to 1933 the DJIA went down 88% before starting to recover. Ten years is really too short a time horizon, you should have a 20 year perspective or longer. If you had invested the day before the 1929 crash and kept your money in the whole time you would not have broken even, adjusting for inflation, until 1957 - 28 years later.
Would I be market timing if instead of moving out of the market to avoid the Trump winning risk, I borrowed money to buy shares in an election market?
https://iemweb.biz.uiowa.edu/quotes/Pres16_quotes.html
If Trump wins, I triple the money I put into election shares but lose in my 401k. If Trump loses, the increase in my 401k will cover my loss in the election market.