Skip to content
← All posts

Grid and Martingale EAs

What Is a Martingale EA? Lot Doubling Explained with Numbers

EABuild Team · · 9 min read

What Is a Martingale EA? Lot Doubling Explained with Numbers – EABuild

A martingale EA is an expert advisor (a program that places and manages trades inside MetaTrader) that makes its next trade larger after a losing one. This post explains the idea in plain terms, follows one losing streak with real arithmetic, and lists what to read in the inputs before you attach such an EA to a live account.

What a martingale EA does after a losing trade

Martingale means increasing the lot size (the trade volume) after a loss. The name comes from an old betting system in which a player doubles the stake after each lost bet. An EA applies the same rule to trades: lose at 0.10 lots, then open the next position at a larger size, often with a fixed multiplier.

The thinking behind it is simple. If the larger trade wins, its profit is meant to cover the earlier loss and leave a small gain. The rule has no memory of the market, so it does not make a win more likely. It only changes how much is at stake each time.

Two points are worth keeping apart from the start. First, martingale is about trade size. A grid is about trade placement. Second, a martingale EA needs no special trade signal: any entry rule can be paired with a growing lot.

Doubling lots through a losing streak: the arithmetic

Here is an illustration, not a setting from any product. Assume a USD account trading EURUSD, where one pip is worth about $10 per standard lot. The EA starts at 0.10 lots, so one pip is worth about $1. Every trade has a stop loss and a take profit of 20 pips, and the lot size doubles after each loss.

Losing tradeLot sizeLoss at 20 pipsTotal lost so far
10.10$20$20
20.20$40$60
30.40$80$140
40.80$160$300
51.60$320$620
63.20$640$1,260
76.40$1,280$2,540

After seven losses in a row the account has lost $2,540. The eighth trade would be 12.80 lots. If it wins its 20 pips, it earns $2,560 and the whole sequence ends with a net gain of $20, which is the profit of the very first stake.

What the table shows

  • Each step costs more than all the steps before it. With doubling, the next loss is always larger than the total of the earlier ones.
  • The reward stays small. A completed sequence returns about the first stake, however long it ran.
  • The exposure is lopsided. Here, risking $2,540 is the price of a $20 outcome. A longer losing run only widens that gap.

A smaller multiplier slows the growth

A multiplier of 1.5 or 1.3 grows more slowly than 2. The sequence takes more losing trades to reach the same size. But the shape is the same: each trade is larger than the last, and the growth compounds. Slower growth buys time, it does not change the direction.

Why the first lot matters most

The whole table scales with the starting lot. Start at 0.01 lots instead of 0.10 and every dollar figure falls to a tenth, though the doubling pattern stays the same. This is why the starting lot, the multiplier and the number of allowed steps together decide how deep a sequence can go. Changing only one of them tells you little.

Margin, broker limits and drawdown in a long losing run

Lot size is only half of the picture. Margin (the deposit your broker holds against open positions) rises with every lot. The same run needs the most margin at the moment the balance has fallen furthest. How much margin one lot needs depends on your leverage and the symbol, so check your own account rather than rely on the example.

Three things can end a martingale sequence before a win arrives:

  1. Margin runs out. The broker may close positions automatically when the account can no longer carry them. That closes the sequence at its deepest loss.
  2. The broker's maximum lot size. Brokers set a limit on the volume of a single order. A sequence that wants a larger trade than the limit allows cannot place it.
  3. Market conditions. A wide spread or a price jump past your stop can make a loss larger than the 20 pips in the example.

Drawdown (the drop from an account's peak balance) can therefore rise quickly. A martingale EA may show a run of small wins for a long time, and then one streak removes a large share of the account. Past calm periods do not tell you when that streak arrives.

Martingale versus grid: reading the labels on an EA listing

A grid strategy is one that opens extra orders at set price steps. Many grid EAs also raise the lot at each step, and listings often file the two together as grid/martingale. When a listing says grid and marks grid/martingale as yes, it is flagging that lot growth or step-by-step averaging may be part of the logic. It does not tell you the multiplier or how many orders the EA may hold.

That detail sits in the EA's inputs window, so treat the listing as a starting point and read the inputs. For a side-by-side look at both mechanics, see the grid vs martingale comparison.

Three listings in this shop that state grid or martingale logic

These descriptions follow the listings. They describe files and settings, not results, and none of the listings gives the lot multiplier, so read each EA's inputs.

Market Master EA for MT5 is an MT5 expert advisor for the H1 timeframe. The listing names EURUSD, NZDCAD and AUDCAD as its symbols. It states grid, hedging and mean reversion, and marks grid/martingale as yes. The recommended minimum deposit is $200, and the download holds one compiled EA file and a PDF guide. The listing also states unlimited live and demo accounts.

Full Margin EA for MT4 is a grid EA for MetaTrader 4 build 1471 or later. It lists EURUSD, GBPUSD, GBPJPY and XAUUSD on M1 and M5, with grid/martingale marked as yes and a recommended minimum deposit of $500. The download includes the compiled EA file and one set file (a saved list of input settings you load in MetaTrader).

FX PRO Silver Robot for MT4 is a grid EA for MetaTrader 4 build 1471 or later, listed for AUDUSD and EURUSD. Its listing marks grid/martingale as yes, gives a recommended minimum deposit of $500, and the download is a single compiled EA file. The listing states no timeframe, so check the chart timeframe in the EA's settings.

Compare the three on their strategy lines and symbols, then compare the minimum deposits with the sizing arithmetic above. A higher or lower figure on a listing does not change how fast exposure grows once a streak starts.

What to read in the inputs before trading live

Work through this list in the inputs window before the EA touches a live chart. It frames the checks as limits you set yourself.

  1. Find the starting lot size and the multiplier, if there is one. Write them down.
  2. Find any cap on the maximum lot, the maximum number of open orders or the maximum number of steps in a sequence.
  3. Find any stop loss or equity stop, and see whether it can close the whole sequence.
  4. Build your own table as above: lots and money lost after five, seven and ten steps, using the pip value of the symbol you trade.
  5. Compare that total with your balance and your broker's margin rules. Decide in advance how much of the account you will let one sequence use.
  6. Check whether your broker and account type allow hedging, if the listing states hedging.

The guide to limiting grid EA risk covers how to set these caps step by step. A limit narrows how far one sequence can go. It does not remove the chance of a loss, and a sequence that is stopped out has still lost money.

For wider background on averaging baskets and how they fail, the grid and martingale EA guide is the pillar post for this topic.

FAQ

Does martingale sizing make a winning trade more likely?

No, martingale sizing does not make a winning trade more likely, because the rule has no memory of the market and only changes how much is at stake. In the post's example, a completed sequence returns about the first stake, $20, after $2,540 was lost across seven losing trades in a row.

Does a martingale EA need a special entry signal?

A martingale EA needs no special entry signal, because martingale is about trade size and any entry rule can be paired with a growing lot. A grid, by contrast, is about trade placement. Many listings file the two together, but the lot multiplier is a separate input from the entry logic.

What can end a martingale sequence before a winning trade arrives?

Three things can end a martingale sequence before a win arrives. Margin can run out, so the broker closes positions at the deepest loss. The broker's maximum lot size can block a larger order. Market conditions, such as a wide spread or a price jump past the stop, can make a loss bigger than the planned 20 pips.

What does grid/martingale marked yes on an EA listing tell me?

Grid/martingale marked yes on an EA listing flags that lot growth or step-by-step averaging may be part of the logic. It does not give the lot multiplier or how many orders the EA may hold. Those details sit in the EA's inputs window, so treat the listing as a starting point and read the inputs.

Testing on a demo account this week

Attach the EA to a demo account (a practice account that uses virtual money) and let it run through a trending period, not only a quiet one. Note the largest lot it reaches, the deepest drawdown and how many orders were open at the peak. The demo vs live testing guide explains what a demo run can and cannot show.

Every product in the shop is a digital download, and all of them are included in the membership. Check the settings before you trade live.

Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results; only trade with money you can afford to lose.

Tags: Grid and Martingale EAs

← All posts

Get every EA with membership

882 products · from $10.75/month

See plans

More in Grid and Martingale EAs

Fixed Lot vs Martingale Lot Sizing in an EA: Risk Compared – EABuild

Grid and Martingale EAs

Fixed Lot vs Martingale Lot Sizing in an EA: Risk Compared

Two ways an EA can choose its lot size, set side by side: how a fixed lot and a martingale lot behave through a losing run, how drawdown and margin differ, and what to check in the inputs.

· 10 min read

Grid EA Risk: How to Limit Drawdown When Running One – EABuild

Grid and Martingale EAs

Grid EA Risk: How to Limit Drawdown When Running One

Grid EA risk cannot be removed, but you can put limits around it. Follow five steps: cap open orders, check the lot step, set an equity stop, size the account and test on demo.

· 11 min read

Offer ends inhm$249 lifetime →