Trading can be "not gambling" when the sting of risk and consequence is removed, regardless of the knowledge of outcome.
Quote from romik:
Financial speculation is part of gambling by definition. For some reason people automatically think Casino/sports bet when they hear the word gambling. Trading is part of gambling as trading is speculation. Even if you've traded for 20 years and your yearly results have been net positive it does not change the fact that trading involves risk and uncertainty of the outcome. Simply because you have increased the odds of success, does not change definition of a word and its meaning.

