"Gambling occurs when you have a poor understanding of risk, resulting in either (1) negative expected value bets, or (2) poor bet sizing that leads to ruin." Not so. Top poker players are still gambling, but have an excellent understanding of the risks. Their skill doesn't turn them into investors. Gambling is taking a high risk bet. Whether the expected pay off is high enough to justify the risk and whether you can…
I suspect a better definition would be a wager based on random chance. Markets aren't "random", they are just suitibly complex enough to seem like it. Some people apply algorithms and emotional analysis to predict behavior. This might sound like poker, but I would argue all of the influences in a market are clearly visible. In a game of chance like poker, card ordering is still random (yes you have probability of predicting next card, but you can't see it until it happens).