Home > Martingale EAs >Hedge Recovery

🇯🇵

This page is currently available in Japanese only. Parameter names, download links, and all tools work in English.

⚠️ Ruin-by-design EA — 100% ruin rate across 1000 MC trials

In the 2026-05-27 re-run Monte Carlo (10-yr data × 2-yr slices × 1000 trials), every trial ended in account ruin (equity < 5% of initial). However, the net-profit achievement rate (trials that managed to withdraw before ruin) was 47.2%, with withdrawals reaching up to $1,155 at the 95th percentile. Invest only "money you can afford to lose" and withdraw daily. These figures strictly reflect the CLAUDE.md rule that "martingale EAs are ruin by design."

XAUUSDH1Unique Logic⚠️ MARTINGALE⚠ Ruin by DesignDaily withdrawal recommended

🛡 GOLD Hedge Recovery Nanpin

Cut loss → opposite-direction lot growth → net-loss recovery | Expected survival 4-8 months

Ruin Rate

100%

Net-Profit Achievement Rate

47.2%

Avg Withdrawal

$290

Go to Download Page →

ABOUT

Strategy Overview

📋Operating Rules (Mandatory)

  1. Only deposit money you can afford to lose (≤5% of total capital)
  2. Always withdraw on the 06:00 daily alert (otherwise it vanishes)
  3. Check Recovery Depth daily — shown in GUI. ≥3 = caution; ≥5 = consider manual PANIC CLOSE
  4. Auto-stops when MaxRecoveryDepth=6 is exceeded — judge remaining positions manually
  5. If cumulative loss (CumLoss) exceeds 30% of initial balance, exit manually — continuing recovery risks more loss
  6. Never say 'one more and I'll recover' — statistically, deeper depth = higher next-failure probability
💡 Common rules for all EAs: Full Martingale EA Operating Rules (8 items)

📐 Strategy Logic — different from Kamikaze/Tetsubeki: 'Recovery type'

Whereas Kamikaze/Tetsubeki 'average down to lower break-even, then take profit on a small bounce', Hedge Recovery uses 'when adverse, cut the loss → recover in the opposite direction' — a unique logic.

Phase 1: Initial entry

Example: BUY 0.01 lot @ $2000

Phase 2: Price moves against → cut loss

$2000 → $1985 (1500pt adverse) → close BUY at $15 loss (L=$15)

Phase 3: Opposite-direction recovery

Simultaneously enter SELL 0.02 lot @ $1985 (lot sized to recover L=$15 over a 750pt move)

Phase 4a: Success

SELL moves 750pt in favor → full reset → Depth = 0

Phase 4b: Failure (further adverse)

SELL also moves adverse → cut loss → cumulative L₂ → bigger lot in the opposite direction... (Depth grows)

Lot growth as Depth increases:
Depth 0 → 0.01 lot
Depth 1 → 0.02 lot (recover L=$15)
Depth 2 → 0.06 lot (recover L=$45)
Depth 3 → 0.18 lot (recover L=$135)
Depth 4 → 0.54 lot ← caution level
Depth 5 → 1.62 lot ← danger
Depth 6 → auto-stop

Unlike martingale × nanpin, only one position is held at a time. Margin pressure is gentler than Kamikaze/Tetsubeki, but at deeper Depth single-trade lot becomes enormous.

BACKTEST

Backtest Results

📊Nanpin Evaluation SheetGOLD_NANPIN_HEDGE_RECOVERY

🎲 Monte Carlo Simulation (1000 runs)Last updated: 2026-05-27
Overall Rating: 🟡 Neutral Expectancy (Luck-Dependent)

Survival Rate

0%

Probability of not collapsing in the period

Bankruptcy Rate

100%

Probability of blowing the account

Net Positive Rate

47.2%

Probability of net positive after run

Median Net PnL

-$958

Cum. withdrawals - principal

Backtest PeriodGOLD H1 10-yr data × random 2-yr slices × 1000 runs
Simulation Runs1000 runs (random start, 1-year operation)
Median Survival Period0 days
Survival 25th percentile (early bankruptcy group)0 days
Cumulative Withdrawn (Median)$0
Cumulative Withdrawn (Mean)$290
Cumulative Withdrawn (25%-75% Range)$0$418
Net PnL (Mean)-$380
⚠️Reference: "No Floating Loss" BT Display Showcase Numbers

Flashy numbers like "PF 7" and "Win Rate 92%" often seen in nanpin/grid EA sales ads are produced by not reflecting floating-loss positions in the balance curve. If this EA were displayed the same way, it would show "strongest EA"-style showcase numbers like below.

Showcase PF

0.00

Showcase Win Rate

97.7%

Showcase DD

95%

Trades

44

📌 Important

These numbers do not represent real profitability.Floating-loss positions are simply excluded from the balance, but the actual account is sometimes deeply negative. If you see similar numbers in a sales ad, immediately read"5 Checkpoints to Spot Flashy-BT EAs".

The real evaluation axes are the above "Bankruptcy Rate" and "Net Positive Rate" . This EA treats Equity (including floating loss) as the basis, considers bankruptcy when Equity < 50% of principal, and estimates realistic expectancy including the daily withdrawal rule.

🎲 About Monte Carlo Simulation

  • Random start points are chosen from MT5 XMTrading actual GOLD price data (5 years)
  • Each simulation assumes 1 year of operation
  • Daily withdrawal rule: balance − principal excess is withdrawn at a fixed time
  • If Equity falls below 50% of principal, it is treated as bankruptcy
  • Net PnL = cumulative withdrawals + final balance − initial principal
  • These figures are a guideline for strategy expectancy and do not guarantee individual operation results

📝 Notes

  • ⚠️ 2026-05-27 re-verification corrected the old optimistic figures (survival 100% / withdrawn $1,170)
  • All 1000 trials ended in account ruin (equity < 5% of initial). Strictly reflects the CLAUDE.md rule that "averaging-down = ruin by design."
  • Net-profit achievement rate 47.2% = about half the trials managed to withdraw before ruin; the 95th percentile recovered up to $1,155
  • Assuming $670 of invested capital, the excess above a $1,005 balance is withdrawn weekly, and equity < 5% counts as ruin
  • The 97.7% win rate is misleading, so it is a secondary metric — the classic pattern of winning on a per-trade basis but "blowing up at the averaging-down stage"
  • Recommended operation: invest only money you can afford to lose, withdraw daily, and use less than 5% of your portfolio

All Parameters

All 37 inputs shown in MT5 (EA core + shared modules). Strategy-core values are pre-optimized — keep them at defaults; tune only the operational ones as needed.

ParameterDefaultDescription
Entry Direction
AllowBuytrueAllow buy entries.
AllowSelltrueAllow sell entries (often OFF for gold's uptrend bias).
⚠ DANGER ZONE
IAcceptBankruptcyRiskfalseConsent required (skipped during backtest/optimization)
Initial Entry
EntryModeENT_RSIv1.1 live-opt: always-on entry beats ADX mean-reversion on PF
RSI_Period14
RSI_Buy30.0
RSI_Sell70.0
BB_Period20
BB_Deviation2.0
EMA_Fast20
EMA_Slow50
InitialLot0.01Initial lot (first nanpin entry size).
Hedge Recovery Logic
HedgeDistancePoints1500Adverse points to trigger stop + recovery
RecoveryTPDistancePoints750Recovery position TP distance
RecoveryLotSafetyMargin1.1Required lot × safety factor (1.1 = 10% buffer)
MaxRecoveryDepth6Max consecutive recovery rounds
ResetOnRecoverySuccesstrueReset to initial state on successful recovery
Emergency Brakes
UseMarginEmergencyClosetrue
EmergencyMarginLevel200.0
UseMaxDepthEmergencytrueAt MaxDepth, close on the next failure
Daily Withdrawal
UseDailyWithdrawAlerttrue
DailyCheckHour6
TargetBalance0
OnlyAlertWhenFlattrue
Safety Filters
MaxSpreadPoints500Max spread (points).
Time Filter
UseTimeFilterfalseBTC = 24h by default
TradeStartHour0Trade window start hour (UTC).
TradeEndHour24Trade window end hour (UTC).
Chart GUI
UseChartGUItrue
GUI_X10
GUI_Y30
Notifications
UsePushOnRecoverytrue
UsePushOnSuccesstrue
License
LicenseServerhttps://fxea365.com
SkipLicensefalseSkip license check during backtest
General
MagicNumber20260808Unique ID so the EA never interferes with others (fixed per EA).
EACommentHEDGE_RECOV

Defaults and descriptions follow the EA source. Lot inputs show the effective value after the run-mode multiplier (Defensive x0.5 / Standard x1.0 / Aggressive x2.0). See the bundled MANUAL.html for details.

📈MT5 Strategy Tester ReportGOLD Nanpin Hedge Recovery EA

🏆 MT5 Official Strategy Tester Result · XAUUSD / H1Open original in new tab
GOLD Nanpin Hedge Recovery EA Strategy Tester Report

📋 About this report

  • Official report generated by the MT5 Strategy Tester (real-tick data)
  • Multi-year real price data with the every-tick (real ticks) model
  • Balance curve (blue) / Equity curve (green) shows floating losses too
  • Past results do not guarantee future profits

MONEY

Capital & Lot Settings

💴 Capital & lot settingsHEDGE RECOVERY

Nanpin (Martingale) EA Specific Warning

Nanpin EAs scale into losing positions, so larger account size means higher nanpin tolerance. Always deposit only what you can afford to lose, and withdraw profits daily.

Recommended minimum capital

3万円〜

≈ $200

Recommended lot settings

InitialLot = 0.01

Withdraw profits daily instead of leaving them in the account.

InitialLot=0.01; being a hedge type, margin pressure is mild.

SETTINGS

Parameters

A custom 🔄 RESET DEPTH button lets you manually reset Recovery Depth to zero. When Depth reaches 4+, judge the market and choose 'continue recovery vs. lock loss and start fresh.'

🛡 HEDGE RECOVERY - HIGH RISK

[ HEDGE_RECOV ]

PAUSE NEW
🔄 RESET DEPTH
🚨 PANIC CLOSE

Bal: 9523.45 (init 10000.00)

Pos: BUY 0.06lot @ 1992.45

PL: -$23.45

Depth: 3 / 6

CumLoss: $135.00

TP need: $158.20

ParameterDefaultDescription
IAcceptBankruptcyRiskfalsetrue required (safety guard)
EntryModeENT_RSIHow the first position is triggered: oversold/overbought detection, price-band edge, or moving-average cross
InitialLot0.01Initial lot
HedgeDistancePoints1500Price distance the market must move against you before the loss is cut and recovery begins
RecoveryTPDistancePoints750Profit-target distance for the recovery position; set short so the loss is recovered quickly
RecoveryLotSafetyMargin1.1Adds a 10% cushion to the lot needed for recovery (1.1 = 10% extra)
MaxRecoveryDepth6How many consecutive recovery failures are allowed; the EA stops after 6 (a blow-up safeguard)
ResetOnRecoverySuccesstrueWhen a recovery succeeds, reset the losing-streak count to zero and return to the starting state
UseMarginEmergencyClosetrueSafety switch: force-close all positions when the margin level drops below the limit
EmergencyMarginLevel200.0Margin level (%) that triggers the emergency close — all positions are shut below this
UseMaxDepthEmergencytrueSafety switch: stop the whole EA once the losing streak reaches its limit
UseDailyWithdrawAlerttrueDaily withdrawal alert at fixed time
MagicNumber20260808EA identifier

Q & A

Frequently Asked Questions

Q.Is a specific broker required?
We recommend XMTrading. Any broker with a GMT+3 (summer) / +2 (winter) MT5 server works. License authentication supports XM and Exness.
Q.Which currency pairs can I run it on?
This EA is designed and optimized exclusively for XAUUSD on the H1 timeframe. Other pairs/timeframes are untested and not recommended.
Q.How much capital do I need?
The recommended minimum is 100k JPY. Based on withstanding the maximum drawdown with RiskPercent=1.0% (risking 1% of account per trade). Please use only surplus funds.
Q.Is there a stop-loss?
Yes. This EA (except nanpin types) sets a stop-loss on every entry. Check the SETTINGS section on the EA page for the specific SL value. It is designed so a single loss stays within a certain percentage of your account.
Q.How are version updates applied?
The EA checks the latest version at startup. If a new version exists, it auto-downloads the new .ex5 and shows replacement steps on the chart. See the update history page for details.
Q.Can I test it on a demo account?
Yes, it works on demo accounts. Before live trading, we strongly recommend verifying behavior on a demo account or the MT5 Strategy Tester first.
Q.Can I use a micro account?
It works on XM Micro accounts. Micro accounts allow trading from 0.001 lots, making them suitable for small-capital operation.

DOWNLOAD

How to Get It

This EA uses a unique logic (hedge recovery). Before downloading, make sure you understand the 'Strategy Logic' section above.

Go to Download Page →

⚠️ Disclaimer

  • This EA is not investment advice. Use entirely at your own risk.
  • Hedge recovery logic will also mathematically blow up someday (consecutive failure probability × lot growth).
  • If you don't follow daily withdrawals, profits will not be secured.
  • If uneasy, choose a conservative track EA.

Related Links

Useful Knowledge

Related Blog Articles

5-Day Email Course (Free)

Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.

* Privacy strictly protected. You can unsubscribe at any time.