How do I manage losses and stay disciplined in trading?

What is the role of nage losses and stay disciplined in trading?