Martin 1
This EA implements a classic Martingale strategy, doubling the lot size after each losing trade while resetting to the initial lot after a win. It opens positions based on a simple directional signal and relies on the Martingale progression to recover losses, which inherently carries exponential risk.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
| Symbol | P&L | Annual | Max DD | Trades | Win rate | Sharpe | Recovery | Losing streak | Per trade | Status |
|---|---|---|---|---|---|---|---|---|---|---|
| EURUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| GBPUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| USDJPY | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
| XAUUSD | 0.00% | 0.00% | 0.00% | 0 | — | — | — | — | — | Not convertible yet |
Why this EA never traded: no entry rule survived the conversion.
Converted from MQL5 to Python and run with the same rules for every EA. Positions use MT5 lot sizes (100,000 units per FX lot, 100 oz per gold lot) with 1:100 leverage, one order at a time, and a stop-out below 10% of the starting balance. Sharpe is computed from the equity curve. Results marked as unreliable are shown for completeness only.
Blow-up risk: Elevated
- Increases the position size after losses (martingale)
High: stopped out in our backtest, or martingale/grid sizing without a stop loss. Elevated: martingale or grid sizing with a stop loss, or several positions at once without a stop loss. What the label means and what we found →
Strategy analysis
This EA employs a classic Martingale strategy where the core concept is to double the position size after each loss to chase recovery. Entry conditions are based on a simple directional signal, with the first trade using an initial lot size. If the trade results in a loss, the next trade's lot size is doubled, forming a geometric progression. Exit conditions trigger a reset to the initial lot size when any trade becomes profitable, restarting the cycle. Position sizing relies entirely on the Martingale doubling formula with no upper limit on the number of doublings as a safety mechanism. Money management lacks effective risk controls, as positions grow exponentially during consecutive losses, making account blow-up highly probable. The overall strategy logic is simple and direct, but the risk-reward profile is extremely asymmetric with limited profit potential and virtually unlimited loss exposure.
Strengths
- Simple and clear logic, easy to understand and implement
- Can recover losses quickly after short losing streaks followed by a win
- Low risk on winning trades as only the initial small lot is used
- Clean code structure, facilitating further development and modification
- May perform acceptably in markets with clear trends and low chop
Weaknesses
- Position size grows exponentially during consecutive losses, making account blow-up highly likely
- No maximum number of doublings or maximum lot size cap is set
- Lacks stop-loss mechanisms, losses can expand indefinitely
- Requires extremely large capital, small accounts cannot withstand multiple doublings
- Counter-trend position increasing logic contradicts sound money management principles
- Easily trapped in a vicious cycle of repeated loss-doubling in choppy markets
Possible improvements
- Add maximum doubling count and maximum lot size cap to prevent account blow-up
- Introduce stop-loss mechanisms to control maximum loss per trade
- Incorporate a trend filter to avoid adding positions against the trend
Risk assessment
Overall risk: Dangerous
- No maximum doubling limit, consecutive losses cause unlimited position growth
- Lacks stop-loss protection, a single losing streak can deplete the entire account
- Martingale strategy inherently carries exponential risk, long-term account blow-up is inevitable
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
InitialLot | 0.01 | Initial lot size; Martingale starting position |
Multiplier | 2.0 | Lot multiplier after loss |
SignalPeriod | 14 | Directional signal period parameter |
Similar Martingale EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.