Please take a look around, and feel free to .
If I am not wrong you are taking about over greed while doing trade. Their is one solution i do is always keep in mind that i earn this money by lot of efforts so i dint greed to earn more if their is risk and control my greed.
And i think we can change that bad habit to the good habit by practice and practice, since practice makes us better than before, there are so many ways like trade in demo account if you don't want to getting risk, and make sure to make to-do list, after you can control your own habit, then you can pass that round.I don't think it's a habit really because it's a nature that we can't remove in a person but we can lessen the trigger of it by exposing and practicing more in the market. I would say that the bad habits are those when we rush our trades to make profits and also don't apply any risk management.
Every one of us has his bad habit. The important thing is that we have some discipline in ourselves that we would be able to control whatever bad habits we have during trading.