the emotions will always be there when your money is involved, I think planning and working with a set target will go a long way
Yes, it is difficult to control the emotion in both the conditions, where you are losing or winning. While losing you will be tempted to invest more with hope of recover loss and in case of gain, you will invest more to get more profit which is greediness.