I always analyze my mistakes after every loss and try to remove those mistakes that caused the loss. but the main think is money management. its most important factor. If any one open trade with proper analyses with out of money management in this case if price move more pips opposite to their trade then it will lost all his money, and I have an experience with greed, I have add my account doubled in one day only & due to my greed I kept trading till my account decreased to the original capital & I kept more till i had margin call at last