This page is currently available in Japanese only. Parameter names, download links, and all tools work in English.
Eight rules for a martingale EA — design it assuming ruin
The win rate is high. That is exactly why it is dangerous.
A martingale (grid) EA trades a high win rate for the rare loss of the whole account. A 90% win rate does not mean "one loss in ten" — it means the one loss takes back the profits and the deposit together. What follows is not how to win, but how to decide in advance where it dies.
📋Eight things to settle before you start
1. Fund it only with money you can lose
Treat this account as one that will eventually reach zero. Keep living costs and your core capital out of it — the moment they are in, you stop deciding clearly.
2. Cap the lot multiplier at 1.5x
The multiplier is a geometric series, so 2.0x lifts the required margin sharply. Surviving the same number of entries then costs an order of magnitude more, which makes the multiplier the dial that sets how far you can take it.
3. Put a ceiling on the number of entries
Unlimited averaging down is the same thing as never cutting a loss. Always enable a depth limit such as MaxNanpinCount and stop adding once it is reached.
4. Always add a margin-level emergency close
A broker stop-out fires at the broker's convenience and at a price you do not choose. Closing first at a level you set (200%, say) puts the size of the loss back in your hands.
5. Withdraw profits instead of letting them sit
Profit left in the account lets the EA justify bigger lots, so the open gain becomes fuel for the next blow-up. Take it out on a schedule and keep the balance flat.
6. One EA and one pair per account
Put two martingale EAs in one account and the drawdown of one eats the margin of the other, taking down positions that had nothing to do with it. Kept apart, the damage stops at one account.
7. Have a rule for switching it off
Martingale breaks in markets that keep running one way. EAs with a regime filter handle that internally; EAs without one need a written rule for stopping them by hand around major releases and shocks.
8. Write the restart condition before you need it
"Blew up, deposit more, carry on" is the most expensive decision available. Decide on paper — while you are calm — whether you restart, re-tune, or stop.
From opening the account to going live
- Decide the amount you can lose. Everything else follows from this.
- Open a dedicated account holding only that amount — never mixed with an existing one.
- Get a VPS. A reboot or a dropped line at home is fatal mid-sequence.
- Run it on demo for one to two weeks and watch it add and close as expected.
- Go live with InitialLot at the minimum (0.01). Do not scale up at the start.
- Re-check that the margin-level emergency close and the entry ceiling are actually enabled.
- Withdraw each time you are in profit and return the balance to its starting size.
- Record the deepest open loss once a month. If it is worse than you assumed, cut the lot.
The martingale EAs published on FXEA365
EURJPY Nanpin KAMIKAZE
FlagshipEURJPY / weighted-average averaging down
The plainest form: add to the losing position to pull the average entry closer. A depth limit and an emergency margin close decide how it ends.
See the results and the recommended settings →
AUDUSD Nanpin KAMIKAZE
FlagshipAUDUSD H1 / weighted-average averaging down
The same idea as the EURJPY build applied to a range-leaning pair. Recommended: LotMultiplier 1.5x, MaxNanpinCount 10.
See the results and the recommended settings →
GOLD KAMIKAZE Nanpin EA
ConservativeXAUUSD M5 / grid
Carries a stop loss, a margin stop and a downtrend freeze filter — the conservative end of this category.
See the results and the recommended settings →
GOLD hedge-recovery (HEDGE_RECOVERY)
Own logicXAUUSD H1 / hedge recovery
Rather than averaging the entry, it realises the loss and then widens the lot in the opposite direction to win it back. It loses money differently from the other four.
See the results and the recommended settings →
BITCOIN KAMIKAZE Nanpin
ExperimentalBTCUSD M5 / grid
Still being reworked, and deliberately left out of the ranking. The instrument moves hard, so the assumptions are tighter than for the other four.
See the results and the recommended settings →
The five builds side by side
| EA | Instrument | Logic | How it ends | Role |
|---|---|---|---|---|
| EURJPY KAMIKAZE | EURJPY | Weighted average | Depth limit + emergency close | Flagship |
| AUDUSD KAMIKAZE | AUDUSD | Weighted average | Depth limit + emergency close | Flagship |
| GOLD KAMIKAZE | XAUUSD | Grid | Stop loss + margin stop | Conservative |
| GOLD HEDGE_RECOVERY | XAUUSD | Hedge recovery | Realise loss → recover in reverse | Own logic |
| BITCOIN KAMIKAZE | BTCUSD | Grid | Stop loss + margin stop | Experimental (not ranked) |
In numbers: why the multiplier is the whole story
The capital a martingale needs grows as a geometric series. With opening lot L and multiplier r over n entries, the total lot is L×(rⁿ−1)/(r−1) and the final entry alone is L×rⁿ⁻¹.
L=0.01 / r=1.5 / n=10 → total 1.13 lots (113x the opening lot), final entry 0.38 lots
L=0.01 / r=2.0 / n=8 → total 2.55 lots (255x the opening lot), final entry 1.28 lots
Moving the multiplier from 1.5 to 2.0 more than doubles the capital required even after cutting the entries from ten to eight. Raising it because you want to hold on a little longer is an operation that shortens how long you can hold on.
That is why rule 2 fixes the multiplier and rule 3 fixes the count. Once those two are set, the price range the account can survive is settled by arithmetic — not by a market view.
Read next
- All EAs and the rankingEvery EA, martingale or not
- MEGAMAX EA — 11 pairs from one chart
- Choosing a VPS
- Supported brokers
One last thing
A martingale EA is one of the few tools where a high win rate and safety do not coincide. The eight rules above are not a way to earn more; they are a way to decide the size of the loss yourself. Fund it only with money you can lose — if that one holds, the other seven are tuning. If it does not, perfecting the other seven changes nothing.