Martingale EA Demo Forward Test on MT5: +25,537 Yen at the Four-Week Readout, -80,934 Within Two Days
Four weeks ago I wrote about a batch of backtests on stochastic crossover arrows and on what averaging down, martingale and pyramiding do to them (the earlier entry is here). At the end of that entry I listed five predictions for a demo run and said they would not be edited before the readout on 2 December. This entry is that readout, plus something I did not plan for: what happened in the two trading days after it.
The short version is that three of the five predictions were right, one was right in direction but wrong in size, and the fifth was a reading rule whose literal condition did not occur. The longer version is about the martingale copy, which finished the readout period in profit, the kind of good-looking number prediction 5 was written for, and then lost all of that and more within the next two days.
What was running
One small experimental EA, running in five copies on a demo account since 4 November. All five share one account, which started at 779,675 yen. Four of the copies are the part that matters here:
- Gold, M15, stochastic (5, 3, 3), every crossover arrow, always in the market, reversing on the opposite arrow. A 20-bar time exit and a server-side stop at 5 ATR exist as safety rails, but in the readout period each fired only once per copy, so in practice every trade ended on a reversal.
- The same entries in four versions: no adding (one unit, 0.01 lots), averaging down (add a unit for each ATR against, up to four), pyramiding (add a unit for each ATR in favour, up to four) and martingale (double after a loss, cap at 16 times, back to one after a win).
None of these four was ever a candidate for live trading. They were there to check one thing: whether the backtest describes what the same rules do on a real price feed with real fills. The fifth copy, the S&P 500 daily buy-only version that was the one small lead from the backtests, is covered at the end.
The readout window was fixed in advance: every trade closed between the start at 19:00 server time on 3 November (the early hours of 4 November in Tokyo) and 22:15 server time on 1 December. That is 21 trading days. The EA writes its own ledger, and I read it with a script that only opens the CSV files and never connects to the terminal.
The readout, as scheduled
| Gold M15, 21 trading days | Trades | Win rate | Total (yen) | Per trade | Worst trade | Winning days | Worst day |
|---|---|---|---|---|---|---|---|
| No adding | 503 | 41% | −35,237 | −70 | −7,020 | 52% | −18,136 |
| Averaging down | 503 | 43% | −31,758 | −63 | −8,454 | 48% | −18,457 |
| Pyramiding | 503 | 37% | −55,568 | −110 | −13,696 | 48% | −27,653 |
| Martingale | 503 | 41% | +25,537 | +51 | −40,936 | 71% | −110,740 |
All four copies made the same 503 trades, because they share the same entries and exits. Only the size changes. Here is each prediction against the result.
1. No adding: average per trade negative, around −0.7 basis points. In my notes I had converted that to roughly −40 yen per trade at 0.01 lots. The result was −70 yen, about 1.75 times the predicted loss. The direction is right; the size is not. I do not have a confirmed cause. The most obvious candidate is that the backtest charged a measured spread and no slippage, which I said at the time would make it kinder than reality. Another is that the backtest averaged thirteen years of gold, and four weeks of one particular market can easily sit on the expensive side of that average. With one month I cannot separate those, so I am recording it as a miss in magnitude rather than explaining it away.
2. Martingale: a higher share of winning days than no adding, and a worst day at least three times as bad. Winning days were 71% against 52%. The worst day was −110,740 yen against −18,136, about 6.1 times. Right, and by a wider margin than predicted.
3. Averaging down: about the same average, with a worse worst trade. −63 yen per trade against −70, and a worst trade of −8,454 against −7,020. Right.
4. Pyramiding: a lower win rate than no adding. 37% against 41%. Right.
5. If all four finish the month positive, I will not read that as a good EA. The literal condition did not occur: only one copy finished positive, the martingale, at +25,537 yen. The reading rule behind the prediction is what applies, and I am holding myself to it: a positive month from a martingale on entries that lose on average is not evidence of anything.
So the backtest and the demo did not contradict each other. Arrows on gold M15 lose at least the cost of trading them, and the sizing schemes change the shape of the result, not the sign of the underlying entries.
The two days after
The readout was run early on the morning of 2 December, Tokyo time. The EA kept running. When I opened the ledger again for this entry, the numbers were different enough that leaving them out would have made the readout misleading, so here they are.
| Gold M15 | Total at readout | Next 36 trades (2 Dec to early 3 Dec) | Total now (539 trades) |
|---|---|---|---|
| No adding | −35,237 | −22,886 | −58,123 |
| Averaging down | −31,758 | −23,388 | −55,146 |
| Pyramiding | −55,568 | −23,431 | −78,999 |
| Martingale | +25,537 | −106,471 | −80,934 |
2 December (server date) was a bad day for every copy. For the no-adding version it was the worst day of the whole run, −24,133 yen. The martingale lost −109,310 yen on the same day, about four and a half times as much, and went from the only positive copy to the worst of the four.
I want to be careful about what this shows. It does not show that the readout was wrong; the readout was fixed in advance and its verdict on the martingale was "do not trust the positive number", which is what happened. It also does not mean that two days is a better sample than 21. It is one more draw from the same process, and it happened to land the other way. What it does show is how quickly a martingale result can change sign, which is the point prediction 5 was making.
Where the martingale's money actually came from
The total hides most of the story. The martingale's running balance (closed trades only) peaked at +214,795 yen on 23 November, about 28% of the account's starting balance. By the end of the readout window it had given most of that back, to +25,537. Within hours of the cutoff, on 2 December, it reached a low of −100,179, and it stood at −80,934 at the last closed trade on 3 December. From peak to low, that is roughly 315,000 yen, about 40% of the starting balance, generated by a position that starts at 0.01 lots.
Splitting the 539 trades by the multiplier they were taken at makes the mechanism plain:
| Multiplier | Trades | Net (yen) |
|---|---|---|
| 1x | 220 | −95,731 |
| 2x | 139 | +71,423 |
| 4x | 75 | +15,420 |
| 8x | 44 | +48,273 |
| 16x (cap) | 61 | −120,319 |
The trades at one unit lose, as the entries do. The 2x to 8x trades are where a losing streak gets recovered by a single win, and they made +135,116 yen together. That is the part anyone looking at the account sees when a martingale account is looking good: many short streaks, each one ended by a win at a larger size. The 16x row is where the doubling stops. Once four losses in a row have pushed the size to the cap, every further loss is taken at 16 units, and once a loss has been taken at 16x, a single win no longer recovers the streak. The longest losing streak in the run was ten trades. The 16x trades lost −120,319 yen, which took back most of what the 2x to 8x recoveries made; the one-unit trades (−95,731) erased the remainder and account for the final loss.
I set the cap because an uncapped martingale on a demo account would eventually hit the margin limit and teach me nothing new. But a cap does not remove the problem; it moves it. Without a cap the risk is one ruinous streak. With a cap the risk is a long streak that the system can no longer pay back. On entries with no edge, one of the two arrives sooner or later, and in this run the second arrived within the first month.
The five largest single losses of the martingale (−40,936, −35,943, −35,522, −29,845 and −29,409 yen) were all at 16x, and each one is larger than the no-adding version's worst day in the readout period.
What the shared account looks like
Together the four gold copies have closed −273,202 yen against a starting balance of 779,675. The EA refuses to open or add to positions when equity falls below 400,000 yen, a floor I set before starting so that the experiment could not empty the account. Closed results put the balance near 506,000 yen, about 106,000 above that floor (open positions not included, so this is an estimate). Because the floor applies to the shared account, reaching it would stop all five copies at once, with the size-adding copies doing most of the damage on the way there. Whether to keep the gold copies running, change them, or stop them is a decision I have not made yet. Nothing about the rules has been changed since 4 November.
The S&P 500 copy
The one lead from the backtests, buying the S&P 500 daily on an arrow out of oversold while price is above its 200-day EMA, made no trades in four weeks. That was expected: I predicted zero to two entries, and the backtest averaged three or four a year. There was one candidate. On 23 November the daily bar produced a buy arrow (%K 25.71, %D 14.00), but the close at 7254.07 was below the 200-day EMA at 7412.82, so the trend condition failed and the EA logged the arrow and passed, which is what the rule says. The log also shows the EA starting and stopping cleanly around the restarts of the demo terminal. So the readout for this copy is only that the plumbing works. Judging it will take years of trades, not weeks, and I said so in advance.
What I take from it
First, writing the predictions down before the run left little to interpret afterwards: three hits, one miss in size, and a pre-committed rule for the only number that looked good. If I had not written prediction 5, the martingale's +25,537 yen at the readout would have been the most tempting number in the table.
Second, the magnitude miss on prediction 1 is the part I will keep looking at. A backtest that is right about direction but 1.75 times too optimistic about the loss per trade is still a backtest that would mislead me on any strategy whose edge is smaller than that gap. On these arrows it does not matter, because there is no edge to lose. On the gold breakout EA I have been documenting in this diary, where the modelled edge and the modelled cost are close to each other, it matters a great deal, and it is one more reason I measure live fills rather than trusting the cost model. If you want to see what your own broker charges on each fill rather than assume a fixed spread, Execution Caliper FREE is the tool I made for that kind of measurement.
Third, a martingale's good month and its bad two days are the same mechanism viewed over different windows. Over the readout window it looked like a system with 71% winning days. Over 23 trading days it is the worst of the four copies. Neither window tells you about the entries; both tell you about the size. If you are evaluating a short track record and the position sizes grow after losses, the question to ask is not how often it wins but what happened, or has not happened yet, at the cap.
For the trial count: this readout adds no new configurations. The five copies are the same ones described four weeks ago, and none of them is being considered for sale or for a live account.


