Both are dangerous actually! Frankly, most of the new traders start their trading journey with the fear and greed! But, when they spend enough times on learning, then they can overcome this problem gradually.
I believe that's the only way. The aspects of emotional things can discussed but can not be taught. And traders have to learn and work on them by themselves after discovering how they are affecting them.