This one is really hard bcoz of greed and FOMO, I admit this is one of my flaws
but I know it is possible if you have set your attitude right and have self-discipline.
Both these emotions could be controlled and reduced effectively with the help of meditation and yoga. FOMO is anxiety that makes you take decisions which probably you would not have if you were in right senses. As far as greed is concerned, this is evil trait of human beings which always makes us take wrong decisions with a hope of making big money. In order to avoid greed, we can set targets and simply stick to them.
I think to control emotions while trading, we have to be good at analyzing. because people who can analyze them have patience, besides that they also know when in and out. because actually people who can't control emotions are people who have no direction. because they are easily provoked, like FOMO.