Most experienced traders can testify that mistakes are truly inevitable, but the ability to learn from mistakes are very important to make further trading progresses.
Therefore, it is important, to remain objectives in your decision making during trading your time on the market.
Again, the mistakes you made should let you know what work, or what does not work for you.
In addition, it is important to make and follow a trading plans based on your own analysis, stick plan to prevent emotions from clouding your decision making especially when market are volitile.