Ready to go further
Next: size a trade from your stop
Enter your balance, the percent you will risk and the stop distance to see the lot an EA should use.
What is included
- How the bot works, step by step
- The arithmetic of the ladder or grid, with tables
- How it fails and how to test it honestly
- The tools that check the numbers
Who it is for
- People thinking of using this kind of bot
- People already running one and wanting a stress test
- Readers comparing bot types before buying
- Not advice, and not a recommendation to use one
Key facts
- An expert advisor, or EA, is a program that runs inside a trading platform and places, changes and closes trades by rules. On the MetaTrader platforms they are written in MQL4 or MQL5.
- An EA is a bot with a platform wrapped round it. The same risks apply as for any bot: costs, overfitting and the worst case, not the average.
- Lot size sets the real risk. In the made-up example below, one fixed 0.10 lot EA risks 4.0% of a $500 account per stopped trade and 0.04% of a $50,000 account (calculated by us on 28 Oct 2026, exact).
- An EA that doubles its lot after a loss turns five losses in a row into a $620 loss from a $20 first loss, in the made-up ladder.
- A good backtest of an EA shows that it ran on past data. It does not show how it will meet real spreads, slippage and a market that has changed.
What an expert advisor is
A trading platform shows prices and lets you place orders by hand. An expert advisor is a small program that does that for you, inside the platform. It reads prices and indicators, applies its rules and sends orders. Because it lives in the platform it can use the platform's own data, charts and strategy tester. People also call EAs forex robots, trading robots or simply bots. What separates one from another is the rules inside, not the name.
The rules can be anything: a moving average cross, a grid, a martingale ladder, a breakout. So an EA is not a strategy. It is a delivery method for a strategy, and it can be as safe or as dangerous as the strategy it carries.
Lot size is the real risk setting
Many EAs use a fixed lot size set by the user. A fixed lot means a fixed dollar loss per stopped trade, whatever the account holds. Take a made-up pair quoted in dollars, where one pip on a standard lot is about $10. A 0.10 lot with a 20 pip stop loses 20 x $10 x 0.1 = $20 when stopped. What that means depends entirely on the account.
| Account | Loss when stopped | Percent of account | Lot that risks 1% |
|---|---|---|---|
| $500 | $20 | 4.0% | 0.025 |
| $2,000 | $20 | 1.0% | 0.100 |
| $10,000 | $20 | 0.20% | 0.500 |
| $50,000 | $20 | 0.04% | 2.500 |
The same EA with the same settings risks 4.0% of the small account and 0.04% of the large one. A setting that was safe on the account the author tested is not safe on yours. The lot size calculator and the position size calculator turn a percent risk into a lot for your stop.
How an EA fails
- Costs. Spread, commission and swap are paid on every trade. An EA that trades often with a small average gain can be wiped out by them. See spread and slippage.
- A backtest that was too kind. A strategy tester builds prices from stored data, and how it does so differs by platform and setting. Check what yours uses, since coarse data can fill trades that would not have filled. This is the testing problem in backtesting.
- Overfitting. Many EAs are tuned until the backtest curve is smooth. A smooth curve on tuned data often means overfitting.
- Ladders and averaging. A martingale or grid EA wins often and loses rarely and large. It can look perfect for months, then fail in one move. The martingale calculator shows the exposure. After five losses in the made-up ladder the total is $620, which is 31% of a $2,000 account.
- Running conditions. An EA only works while the platform runs. A dropped connection, a restart or a time change can leave trades unmanaged.
How to check an EA before it touches money
Read what it does in plain words, including how it sizes. Find its worst case: the largest position it can hold and the loss if the stop is missed. Run a backtest with pessimistic costs and keep a later part of the data untouched. Then run it on a demo or paper account, and after that a small live trial. A sales page showing a rising curve is not a test.
What this page does not tell you
It does not say that any EA makes money, or that they do not. It shows how lot size and ladders set the risk and where the failures hide. It does not describe the behaviour of any named product.
Keep Going
Related Tools and Guides
Keep exploring
FAQ
Frequently Asked Questions
What is an expert advisor?
A program that runs inside a trading platform and trades by rules. On the MetaTrader platforms they are written in MQL4 or MQL5. People also call them forex robots or trading robots.
Is an EA the same as a trading bot?
In practice yes. An EA is a bot that runs inside a trading platform. The same risks and tests apply to it as to any other bot.
Why does lot size matter so much?
It sets the dollar loss on each stopped trade. The same fixed lot risks a far larger share of a small account than of a large one, so a setting that is safe for one may not be for another.
Can a backtest show whether an EA will work?
It can show whether the idea was obviously broken on that data after the costs you included. It cannot show the future, and a tuned backtest is often overfitted.
What is the danger of a martingale EA?
It wins often and loses rarely and large. The lot doubles after each loss, so a short run of losses can take a large share of the account.
Are the numbers on this page real?
Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.
Can I use this to decide whether to run a bot?
It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.
Is this financial advice?
No. It is general education. The numbers are made up and your platform, pair and costs will differ.
Know the Risk Before You Run It
Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.
Trading carries a risk of loss