What Is Martingale?
If you write “martingale” in a search engine box, it will return a large number of pages with the description of this system. It is interesting that among others you will meet web-sites of online casinos, which assure that this system works, all you need is entering your credit card number to start scooping up money. What is strange – are the casinos ready to give their money such easily? If the Martingale really works so good, then why have not all the casinos turned bankrupt yet?
So, what is Martingale? Here is the definition from Wikipedia:
- A game starts with a certain minimal bet;
- After each each loss the bet should be increased so, that the win would recover all previous losses plus a small profit;
- In case of win a gambler returns to the minimal bet.
(Translated from Russian Wikipedia by MetaQuotes Software Corp.)
More information is here: https://en.wikipedia.org/wiki/Martingale_system
Where Is Martingale Used?
The simplest gamble for analyzing the Martingale is chuck-farthing. The chances to win and to lose are equal – the gambler wins if a coin comes up heads and loses if the coin comes up tails. The Martingale system for this game works in such a way:
- Start the game with a small bet;
- After each loss double the bet;
- In case of win return to the minimal bet.
The Martingale can also be used in playing the roulette, betting on red or black. The chances are less than 50/50, because there is also Zero, still very close to it.
As applied to trading, the following variant of the game can be used. Analogous to tossing a coin we open a position in any direction (short or long) with stop-loss and take-profit equally distant from the trade price. As we open the position in a random direction, the probability of profit and loss is analogous – 50/50. So in this article I will describe only the classical problem of tossing a coin with doubling the bet at a loss.
Let us conduct a mathematical calculation of the dependence of the loss probability on the possible profit at the game with a coin using the Martingale system. Let us introduce the following symbols:
- Set – a set of tosses, ending by a winning one. I.e. all tosses except the last one are losing. At the first toss the bet is minimal, at each next toss in the set the bet is doubled;
- Q – initial deposit;
- q – price of the starting bet;
- k – maximal number of tosses (losing) in the set, leading to bankruptcy (suppose after k toss the deposit is equal to zero).
As we double the bet after each losing toss, we can derive the following equation:
If we consider N a noninteger (do not round off the results of the equity (2) to a whole number), then P(N) does not depend on k and is equal to 1/2 (you can easily verify it, inserting (2) into (1) and using the simplest properties of logarithms). I.e. using the Martingale does not provide any advantages; we could as well bet all our capital Q and the winning probability would be the same (1/2).
Conclusions of the Mathematical Part
Frankly speaking, at the beginning of preparing calculations for this article I expected that the Martingale would increase the probability of loss. It appeared to be wrong and the risk of loss is not increased. Still this article very vividly describes the meaninglessness of using the Martingale.
After getting the above formulas, the first thing I did was writing a small program, emulating the process of playing chuck-farthing and composing the statistics of the losing probability (P) dependence on the coefficient k. After the check I found that the program results (it can be called “an experiment”) coincide with mathematical calculations.
Of course, the ideal variant would be writing an Expert Advisor, trading by the same rules as in chuck-farthing and making sure that theoretical and experimental data are identical. But it is impossible because the starting bet is calculated using the formula:
P.S. The files attached contain the screenshot of all necessary mathematical calculations and the Expert Advisor.