This begs the question, "why did you not have a loss in your trading plan?"
It is inevitable, but if you did not plan for it, then obviously you did not have a real plan. Probably a plan about making money, full stop.
If you do not know what to do, you need to stop trading and figure out how...