To deal with losses keep in mind the following picture:
Trading is like opening the doors on your way to success. Some doors are opened when you push them forward - so you do a step forward. Some doors are opened when you pull them back - so you are to do a step back. Keep on opening the doors to continue the journey no matter how many doors are opened by pulling bsck.