After a losing trade I take a nice big deep breath, accept it, analyse and try to learn from it, so I will not do the same thing again and again
That's the thing that we should do everytime we loss, take a deep breath and find out our mistakes and of course correct it.
It's a continues adjustment along the way until you get consistent but you will never be perfect, the risk is still there but you minimize it if you improve.