Home Products Metatrader Expert Advisors Martingale EA – Metatrader Expert Advisor

Martingale EA – Metatrader Expert Advisor


A complete Martingale trading system for Metatrader 4. Designed to work under a variety of markets conditions. Trades currencies, CFDs and indices at any timeframe (M1 to Daily).

SKU: N/A Category:
  • Fully automated Martingale expert system
  • Works “out of the box”
  • Works on any timeframes from M1 to Daily (D1)
  • Effective on most currencies and CFDs
  • Fixed order sizes – “no doubling down”
  • Easy setup – no complicated parameters or optimizations needed
  • Profit lock – All-in-one risk setting
  • Profit target – Will stop on reaching your profit target
  • Can be used as signal provider

Click the image below to see a myfxbook analyzed account: 3 month run giving profit 14,115 pips.

Myfxbook verified account: 12-weeks run to profit EURUSD 5M. Click to open full chart.
Myfxbook verified account: 12-weeks run to profit EURUSD 5M. Click to open full chart. ©

Strategy trade summary.
Strategy trade summary. ©

Martingale is a trading strategy that attempts to win consistently on every position. It does this by using the principle of mean reversion and lot averaging. The Martingale strategy works best in choppy, directionless markets where other methods such as trend followers fail. For a detailed analysis see this article.

Apply to any Market

This EA is designed to work under a variety of markets conditions. You can trade it on the majors, minors or exotics: For example EURUSD, GBPUSD, and USDJPY as well as on Oil and Gold CFDs and even on stock indices.

The expert’s behaviour under extreme market shocks such as the 2007/2008 crash has also been analyzed with favourable results (see the long term tests below).

It can work equally well at any time from one minute right up to trading on the daily chart. The advisor is designed for use “out of the box” meaning there isn’t any need to fiddle around with obscure input settings or perform complex optimizations to make it work.


Figure 1: EURUSD (M1) ten year strategy test (click to open report)
Figure 1: EURUSD (M1) ten year strategy test (click to open report) ©
Figure 2: FTSE-100 M15
Figure 2: FTSE-100 M15 ©
Figure 3: GBPUSD H1
Figure 3: GBPUSD H1 ©
Figure 4: USDCAD M5
Figure 4: USDCAD M5 ©
Figure 5: USDJPY M5
Figure 5: USDJPY M5 ©

Become a signal provider

Unlike standard Martingale which uses lot doubling, this expert uses a unique “fixed lot” algorithm. This makes it possible to publish the trades as a signal on platforms such as Zulutrade.

Risk Controls

Easy risk settings keep you in full control. Take as much or as little risk as you want by adjusting the trading volumes and drawdown limits.

Profit Lock-in

Take-profit and stop-losses are managed dynamically by the expert. This is done to “ratchet” profits and reduce the effects of drawdown. It also helps to keep returns stable and consistent.

Clean Stop

This is an aggressive Martingale-averaging strategy that’s “always in the market”. For this reason a clean stop feature has been added. This allows you to trigger a stop so that the expert closes all positions “gracefully” at the best opportunity. To use this, simply stop the advisor and restart it with “clean stop” switched on. The EA will not send any new orders but will continue to manage any open positions until they can be closed.

Profit Target

Clean close will trigger an unconditional stop. As an alternative you can set a profit target in your account currency. On doing this the expert will automatically trigger a clean close only when the profit target is reached. For example suppose your account is in USD and you set the profit target at $1000. When the realized profit (closed trades) plus the unrealized profit (open trades) reaches this target the EA will stop trading and manage any remaining trades until they can be closed.

Order Update Frequency

These settings allow you to control the frequency at which the expert will send update signals to the broker. Some smaller brokers will disallow “rapid fire” order adjustments. These settings allow you to set either a time limit or a threshold movement value in pips to limit the number of update signals.

Input Settings

  • Order size (lots): The order size to be traded
  • Max open orders: The maximum number of open orders allowed
  • Min bars between market orders: Limits interval between trades
  • Percentage of equity at risk: Set how much of account equity is risked
  • Max wait for recovery (days): Positions are closed if recovery longer than this
  • Trend analysis period (bars): For determining trade entries
  • Order update sensitivity (pips): Pip threshold for sending order updates
  • Minimum time between order updates (seconds): Time threshold for sending order updates
  • EA unique ID: Unique identifier
  • Clean stop: Use to trigger a clean closure of all positions.
  • Profit target: EA will trigger a stop on reaching this profit (in account currency).

Current version 2.22