I understand the negative connotation when you are associating trading with gambling, but it is just semantics in my opinion.
Poker players are gamblers, but good players know when they have the right hand, and how much are they going to risk on it. Good trading is just like that, it is gambling of sorts, but you can be good or bad at it.
If you have an A+ setup you would risk more, than on a C trade. Just like a good poker player. But betting big emotionally, that is bad. Watch any poker game of high stakes, you will see these same patterns.
More importantly, you have to accept that risk (same in gambling too). I could be risking half my account on a trade, as long as I am comfortable with that risk & have actually accepted it that I'll lose that money, then it will not cause you to go into an emotional state. It is really hard though.
That is why you need platforms to guard you against these risks. If you had a platform with daily loss limits, and limit on number of trades for example, it will help improve the performance by a lot. Relying on yourself to modify your behavior is long road.