I wouldn't try and time the overall market. Always good to trim and take some gains when you have some "rare" performers as you say you have.
Generally we're in a low inflation, low interest rate environment, low tax rate environment and we're at full employment with the unemployment rate at historic levels and at record levels for certain demographics. That should bode well for 2/3 of our economy which is driven by consumer spending.
As long as the economy continues to expand (2-2.5% annual GDP rate currently and that's sustainable) and corporate earnings continue to grow, the stock market should continue to go higher, however, the stock market is forward looking and a lot of good economic data for 2020 is priced in. Historically election years can be volatile and investment returns more muted. It certainly looks like DT is going to win, so maybe things aren't as volatile as normal, but any tick up in a Democratic candidate in polling and you could see the market pull back some. We saw this with healthcare stocks this year when Warren was at the top of the Democrat ticket, but since she's fallen off, her policies have less chance of becoming a real possibility therefore healthcare stocks have had an impressive rally as of late.
Never "cash out" unless there's a major systemic issue in the economy. World economic growth is forecasted to accelerate next year as well with trade pressures wearing off, so there could be much better performance in Emerging Markets and International markets, so make sure you at least maintain some exposure to those markets.
The other thing I'd say is the semi conductor stocks CEOs are saying the cycle has bottomed and normally to get record highs in the market indices, the semi conductor stocks lead the rally and that's exactly what we've seen the past couple months.
I'm currently 8.55% cash down from nearly 20% two months ago. I'm looking to deploy some more cash and I'd love to buy the S&P actually (I use VOO). I only buy the S&P when it's at the 200 day moving average or the 50 day moving average, so I rarely buy it, but because I stick to that plan, all my purchases are up a lot because I'm catching the troughs of the market and buying into weakness and not buying after the move has been made. This is working out well since we're in a strong bull market and economy is good.
Bottom line: Leave your core long term holdings alone (S&P funds, Large Cap Growth Funds, Income funds, etc) but if you have some individual stocks, it's always okay to take some gains especially when they are out sized gains. If you do have some riskier funds/ETFs concentrated in a certain sector like cloud, software, IT or energy, I'd be fine with taking gains there too, but I'd leave the long term investments alone.