Home > EA & MT5 Knowledge Base > Evaluating Nanpin EA Risk

NanpinRisk ManagementIntermediate

Evaluating Nanpin/Martingale EA Risk — How to Handle Blow-Up EAs Responsibly

Last updated: 2026-05-20 | Estimated reading time: 18 min

Nanpin/martingale EAs may appear to work well over a long period, but they are inherently designed to eventually blow up an account in a large drawdown. If you choose to use one, you need to realistically estimate when and with what probability a blow-up will occur, and structure your operation so that a blow-up won't put you in a difficult position.

How Nanpin/Martingale Works

Nanpin means adding to a position in the same direction when the market moves against you, bringing down your average entry price. Martingale takes this further by doubling the lot size with each additional entry.

If the market recovers even slightly, you can close all positions at a profit once the average entry price is exceeded. In ranging markets this produces a high win rate, making the EA look almost unbeatable at first glance.

Winning trades accumulate as many small gains, while losses are rare but catastrophic when they do occur. This skewed payoff profile is what makes nanpin EAs so difficult to evaluate properly.

Why a Blow-Up Is Inevitable

A nanpin EA blows up when the market moves in one direction without reversing. Every time the market continues against your position, you add more lots and your unrealized loss grows at an accelerating pace.

With a martingale that doubles lot size on each addition, after just 10 nanpin entries the last lot is 512 times the size of the first. Because margin is finite, the margin level will eventually be exhausted and a forced stop-out will occur.

Trending markets and sudden spikes will come sooner or later. A nanpin EA blow-up is therefore not a question of "if" — it's a question of "when." Understanding this is the starting point for handling nanpin EAs.

Why You Shouldn't Evaluate by PF or Win Rate

Nanpin EAs often show win rates above 95% and impressive PF numbers. But these metrics are simply a snapshot of performance up until the blow-up — nothing more.

Because a single blow-up wipes out all profits and principal, the cumulative PF including the blow-up is almost always well below 1.0. A strong-looking backtest result means only that the test period happened to not include a blow-up.

When a nanpin EA is marketed with numbers like "98% win rate" or "PF 5.0," treat it as likely showing only a cherry-picked period before the inevitable blow-up.

The Right Evaluation Framework — Survival Rate and Cumulative Withdrawals

Nanpin EAs should be evaluated not by PF or win rate, but by metrics like these:

1

Survival Rate

The probability that the account is still alive (not blown up) after a given period (e.g., 1 year). Estimated by running a Monte Carlo simulation with many trials.

2

Cumulative Withdrawal Amount

The total amount withdrawn from the account before the blow-up. If this exceeds the initial deposit, you end up net positive even after the blow-up.

3

Net Profit Achievement Rate

The percentage of trials where (cumulative withdrawals − initial deposit) is positive. Evaluated alongside the survival rate to judge expected value.

4

Expected Survival Period

The average operating period before a blow-up. Back-calculated from your deposit amount and expected daily withdrawal.

None of this can be determined from a single backtest figure. You need to run a Monte Carlo simulation (dozens to hundreds of trials) and look at the distribution of blow-up timing and cumulative withdrawal amounts before you can make a proper assessment.

Operating Rules for Blow-Up EAs

If you're going to use a nanpin EA, follow these rules without exception:

1

Only use money you can afford to lose

Keep this completely separate from living expenses and other EA capital. Limit it to 5% or less of your total portfolio. A blow-up is assumed — operate with a budget you're prepared to lose.

2

Withdraw profits frequently — ideally daily

Leaving profits in the account means losing them in the blow-up. Withdraw on a regular schedule and keep only the minimum required for operation in the account.

3

Always set an emergency stop-out threshold

Enable UseMarginEmergencyClose and pre-define the margin level at which you will cut your own losses — before the margin is completely exhausted.

4

Don't chase losses; walk away when it blows up

Don't add more funds to "win back" losses after a blow-up. Evaluate performance on a single-cycle basis (cumulative withdrawals − initial deposit) and end cleanly.

A nanpin EA is a tool that can generate short-term profits if used carefully — not a vehicle for building long-term wealth. Use standard EAs with stop-losses for long-term asset growth.

🛡️ Learn About Standard EAs With Stop-Losses

Standard EAs with stop-losses are better suited for long-term wealth building. FXEA distributes verifiable EAs with transparent strategies.

Browse EA List →

Frequently Asked Questions

Q: Should I never use a nanpin EA?

It's not forbidden. But you must understand that these EAs are designed to eventually blow up, and limit their use strictly to money you can afford to lose. They are not suitable for long-term wealth building — treat them as a tool for targeting short-term gains.

Q: Is a nanpin EA with a 98% win rate safe?

No. A high win rate is just a number cut from the period before the blow-up. Because a single blow-up wipes out everything, evaluate by survival rate and cumulative withdrawal amount — not win rate or PF.

Q: What is a Monte Carlo simulation?

A method that uses random numbers to simulate many different market scenarios and examines the distribution of outcomes. For nanpin EAs, it's used to estimate what percentage blow up, and how cumulative withdrawal amounts are distributed. It makes blow-up risk visible in a way a single backtest cannot.

Q: Should I really not leave profits in a nanpin EA account?

Do not leave them there. If profits remain in the account, they'll be wiped out in the blow-up. The golden rule is to withdraw on a regular schedule and keep only the minimum required for operation in the account.

Q: Can hedging prevent a blow-up?

It can delay the blow-up, but not fundamentally prevent it. Hedging carries margin and swap costs, and a strong sustained trend will eventually cause a blow-up anyway. It's dangerous to think you can design your way out of a blow-up.