EA-1156 · Martingale

TwoDirectionMartin

A bi-directional martingale EA that simultaneously places BUY_LIMIT and SELL_LIMIT pending orders at a fixed TP distance from the current price. When one side is triggered and price moves against it, the EA recalculates total volume using martingale logic to recover losses plus profit, then repositions both orders closer to the current price with increased lot sizes. It continuously shrinks the order range to force price back into the profitable zone.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryMartingale
RiskDangerous
Blow-up riskElevated
Rating★☆☆☆☆
TypeTrading EA
TimeframesM15, H1, H4
Indicators—
Author"

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

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

Strategy concept: This is a bi-directional martingale system that places pending limit orders on both sides of the current price, aiming to profit from price reversion. Entry conditions: On initialization, the EA places a BUY_LIMIT below the bid price and a SELL_LIMIT above the ask price, with distance determined by the TP value calculated from the KTP parameter percentage of price. Exit conditions: There is no explicit stop-loss; the strategy relies on overall profit when price reverts to the opposite pending order's take-profit level, with each cycle targeting at least the spread as profit. Position sizing: When one side is triggered and price moves away, the ShrinkRange function recalculates total volume using the formula NewTotalVol=(OldLOSS+WinPerTrade)/TP, where OldLOSS is the sum of unrealized losses from both sides. Money management: The PercentSame parameter controls what percentage of total volume goes to the dominant direction, while the remainder is allocated to the hedging opposite side; VolumeLimitOrder caps individual order size to avoid broker rejection. The strategy has no stop-loss protection and depends entirely on price mean reversion, meaning floating losses will grow indefinitely in trending markets, making this an extremely high-risk martingale approach.

Strengths

  • Bi-directional pending order design can continuously profit in ranging markets by exploiting price oscillation
  • VolumeLimitOrder cap prevents individual orders from being too large and rejected by the broker
  • The ShrinkRange mechanism accelerates loss recovery by repositioning orders closer to current price for faster breakeven

Weaknesses

  • No stop-loss protection means floating losses grow indefinitely in trending markets, potentially blowing the account
  • Martingale lot escalation is extremely rapid in extreme moves, draining capital at an exponential rate
  • No new bar check and insufficient position verification may cause duplicate orders in fast markets leading to uncontrolled exposure

Possible improvements

  • Add a maximum drawdown stop-loss that force-closes all positions when losses exceed a percentage of account equity
  • Implement a new bar check mechanism to prevent redundant trade triggers within the same candle

Risk assessment

Overall risk: Dangerous

  • Martingale strategy without stop-loss; floating losses grow without bound in trending markets, risking account blowup
  • Position sizing scales with losses, causing extremely rapid lot escalation during extreme moves
  • No maximum position or maximum loss limit; money management relies entirely on the assumption of price mean reversion

Evaluation scores

Code quality2.0
Strategy logic2.0
Risk management1.0
Robustness2.0
Innovation3.0
Documentation1.0
Overall1.8

Parameters

ParameterDefaultDescription
KTP0.35TP coefficient as percentage of price
VolumeToOrder0.10Minimum lot size and initial opening volume
VolumeLimitOrder0.75Max lot per order to prevent rejection
PercentSame75.0Main direction percentage of total position for martingale lot allocation

Similar Martingale EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.