The market plays so much with our emotions, the more we learn to trade without our emotions the better for us, and also don't just trade without a strategy, it's very easy to place a trade Buh determining the take profit becomes the issue, I think it's better to set a target and once you hit your target close the trade and never look back because sometimes the market might be decietful.
Having a strategy from which you never deviate from is to me the most effective way to avoid this, losing money makes us emotional so I can understand people feeling really badly when they let their emotions get the best out of them and they lose a lot of money, but this can be easily avoided as long as you are willing to follow your strategy even when there is panic in the markets, now I know this is hard to do but it has to be done if we want to avoid losing money.