Trading have a lot of similarity with gambling with the difference almost insignificant. Your distinction id primarily base on the fact that you see trading as skill whereas gambling as entirely a thing of luck and I want to fault such line of thought because gambling too require skills and those who have the right skills are able to win gambling much more than those who approach it like it were just a thing of luck. On the basis of skill and emotions, trading and gambling are completely similar just that the risk make them a little different as the risk of trading is more controllable than that of gambling.
Trading and gambling has some similarities but that doesn't make them the same. The knowledge that someone need to aquire before they can be considered as a trader is very important, and it requires deep knowledge and understanding to trade and it will be your guidelines through the journey of trading. Traders work very hard to make sure that their efforts never go in Vain, but still they can't prevent themselves from losing totally, but they are strategies that they applied to minimize the losses. but gamblers play on luck, they don't aquire any knowledge before gambling.