when i have a losing trade, then i just leave a the terminal for a few minutes just to refresh my mind. because revenge trading is the most common reaction to a losing trade, to avoid that situation i make it a fact to refresh my mind whether there is a loss or profit in the trade. if we get tense about trading then close the computer for a while and do something else for some time, after you have cooled down then come back to trade.