Often these behaviours are the result of conditioned responses. We can have both good and bad investment habits. The key takeaway is understanding how they are created.
In his excellent book, The Power of Habit, Charles Duhigg explains why we continue to do self-destructive things. According to Duhigg, there are three components to forming a habit: cue, routine and reward.