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.
I see very little similarity between trading and gambling, and that is the amount of risk. Trading can be profitable by gaining knowledge, skills, market movements and adopting various strategies, but very few people achieve success in trading. Over time, you can achieve success in trading by gaining experience and increasing the amount of knowledge.
It is very difficult to succeed in betting or gambling and it depends on your luck.
For example: Imagine you are betting on a football match, you can never say for sure which team will win, you can only bet on a match based on guesses, it is uncertain. And during the match you can see that you are losing the match, you will not get your money back for this match even if you want to.
So I think there is no much difference between trading and gambling except the amount of risk. It depends entirely on your perspective. Gambling does not require much experience, you can gamble with a little knowledge. Gambling either wins or loses. The outcome of a match is determined in a very short time. Trading and gambling are not easy for beginners.