Pre-note: Although I am trying to make this question general, in the case that there are any ambiguities, I would like to direct this question toward cryptocurrency futures trading platforms that offer leverage
In general, when it comes to trading, one can make the statement "for every person that gains money, someone else loses money".
What this means is that the net outcome of an entire system is zero, i.e the profits and losses sum to zero.
This is indeed the case between two time periods if the opening and closing price of a stock happens to be the same. However, if the closing price is greater than the opening price, then the net outcome in that time window is positive/profit, and vice versa.
So in simple terms, if the general trajectory of a price is upwards then there are more people making profit than making losses.
In general, when the economy is going well, you do expect more people to be making profits than making losses.
However, this begs the question, how is this net positive outcome achieved when trading with leverage pools?
Those that put money into these pools are expected to be able to eventually take that money out (let's forget for a moment that they also intend to make interest).
However, if more people are making profit than making losses, doesn't money have to be taken from the pools to be paid out to gainers, which results in the available money in the pools shrinking? Is this the case, and if so how does this not pose problematic? What solutions are used to prevent this in these pools?
The only solution I can think of is to force the system to be a net zero outcome (where there are equal gainers and losers) or a net negative outcome (where there are more losers than gainers). This solution could be achieved through transaction fees, funding fees, lending fees, etc. Is this the case in these pools, is the net outcome forced to not be positive? If so, wouldn't people be less likely to use these leverage pools?
One of the things that makes me confident when investing money is that long-term (assuming the economy is going well), there are more gainers than losers. Is it possible to still have this confidence in leverage pools? Or are there more losers than gainers? Because it seems to be that you can't have this confidence, because it seems to me that leverage pools have to force a net zero or net negative outcome.
It would be great to get clarity on this, please let me know if my question is too complicated and needs improvement.
Edit: This question seems to apply more to future/perpetual markets, where you are in a closed system. When working with the actual underlying asset, profits are also gained from selling to people outside the leverage exchange you are using, so this problem doesn't seem to exist here.