Some investors think trading around election outcomes makes sense. Covering the modern period for the S&P 500, investing only when a Republican was in the White House, a $10K initial investment in 1961 would have grown to more than $102K by 2023. On the other hand, the same $10K initial investment would have grown to more than $500K, investing only when a Democrat was in the White House. Some might stop the analysis there and conclude that staying out under Republican presidents and being in under Democratic presidents is a winning strategy.
But the real moral of the story is told with the final bar. The same $10K initially invested in 1961 would have grown to more than $5.1M by just staying invested, without regard for the political party in power.

Source: Schwab Center for Financial Research with data provided by Morningstar, Inc.


