When the 20x head flipper shows up ... bet on tails. Psychology will take care of the rest.
And never bet everything, either way.
Unfortunately a coin doesn't have any feelings or memory or anything else besides 50% chance for either heads or tails.
Exactly, the fact that everyone is "betting heads" makes betting tails a "outsized" bet, even though the underlying probability says otherwise. Aka reverse gambler's fallacy. Probability is one thing, risk:reward is something different.
Part of "buy low, sell high" is looking like an idiot for more time than you can imagine.
That said, the analogy doesn't apply that well because markets are not purely stochastic, but processes with memory.
There isn't any 20x heads flipper (not necessarily at least). There are those that guessed right 20 times in a row! Why do you even talk about 20 heads in a row. Read the op again