I make sure that I only invest with the money that I'm ready to lose. Of course, it still hurts to lose my money but it was my decision to enter a risky trading industry hence I'm emotionally prepared for the losses.
But before I lose all my investment, I stop and rethink my strategy. Then I try again. I went through that on my first few years but now, I'm earning well. Still far far away from being a millionaire but I am pleased with my earnings.