The Impact of Fear and Greed on Algorithmic Trading: Strategies for Managing Emotions