If you like to hold on to losses for too long then when trading, make it a habit to stay calm. The way to do this is by trading in a disciplined manner. Then, try to trade appropriately and not make decisions based only on excitement or emotion, and if your analysis is wrong, immediately cut losses before the plotting loss becomes too large.