if you don't know what you are doing then your trading is going to be like betting too and you lose the same amount of money in both of them. maybe even more in trading since the altcoin dumps are sometimes big and fast.
but if you learn it and know what you are doing in trading, then it is not even correct to compare trading and gambling because gambling is pure luck and you will definitely end up losing in the long term because of things such as house edge but in trading you will make money even if you lose a couple of times.