Wall Street goes through cycles based on the primary human emotions of greed and fear. There is a wide spectrum and phases of emotional behavior inside these two main drivers of investor behavior. The below Wall Street cheat sheet shows the impulses that drive each phase of a market cycle.
The best solution to managing emotions in the stock market is trading a quantified trading system with an edge and use signals over opinions. Lower your trading size to an amount that is enough to be meaningful but not so big that it brings your emotions and ego into a trade.