PROP FIRMS · 8 MIN READ
FIFO and netting rules, and what they break in a trading bot
Most EA documentation assumes hedging mode, because most EAs were written for offshore brokers. Move the same software to a US-regulated account and the position model changes underneath it.
Hedging, netting and FIFO in one paragraph each
[Hedging](/learn/glossary/hedging) mode lets several positions on one symbol exist independently, including opposing ones. Each has its own ticket, its own stop and its own target. This is what MetaTrader 4 always did and what most offshore MT5 accounts do.
Netting mode allows exactly one position per symbol. A second buy does not create a second position — it increases the size of the existing one, at a blended entry price. The two tickets you thought you had are one position at the broker.
FIFO — first in, first out — requires that where multiple lots exist, the oldest is closed first. You cannot choose to close the newer, more profitable leg and leave the older one running.
What actually breaks
The failures are not obvious from reading the code, because nothing throws an error at compile time. They appear at runtime, on a live account, usually during the exact conditions that made the strategy want two positions in the first place.
| EA behaviour | What netting/FIFO does to it |
|---|---|
| Opens a second position on the same symbol | Merges into one position at a blended entry. The EA still tracks two. |
| Sets a separate stop and target per ticket | There is one position, so there is one stop. Per-ticket modification may fail. |
| Closes a specific ticket | FIFO may force the oldest closed instead — a different trade than intended. |
| Hedges by opening the opposite direction | Reduces or closes the existing position rather than adding one. |
| Grid or martingale layering | Every layer merges. The position-management model stops describing reality. |
The failure mode worth taking seriously
Consider an EA that opens with no stop attached and adds protection immediately afterwards as a separate modification — a common pattern, and a required one on some ECN brokers that reject orders carrying stops.
On a netting account, if the position has already merged, that follow-up modification can be rejected. The order filled. The protection did not attach. The result is a live leveraged position with no stop on it, and nothing in the log necessarily looks like an error.
What to check before running any EA on a US prop account
- Ask the vendor directly whether the EA has been tested on a netting account with FIFO enforced. "It supports MT5" is not an answer to that question.
- Check whether it ever holds more than one position per symbol. If it does, netting changes its behaviour and the vendor should be able to say how.
- Check the symbol name. Brokers suffix gold differently — `XAUUSD`, `XAUUSDm`, `XAU_USD`, `GOLD` — and a hard-coded symbol simply does nothing on a broker that names it otherwise.
- Test the failure path deliberately on demo: force a rejected modification and confirm the EA closes or protects the position rather than leaving it naked.
- Confirm the firm's own rules on automation and on forbidden practices before the fee is paid.
None of this is exotic. It is the difference between software written for one account and software tested across several, and it is worth an hour on a demo account before it is worth a challenge fee.
Common questions
What is the FIFO rule in trading?
First in, first out — where several lots exist on the same symbol, the oldest must be closed first. It is enforced on US-regulated accounts, and it means an automated system cannot choose to close a specific newer position while leaving an older one open.
Does FIFO break Expert Advisors?
It breaks EAs that manage positions per ticket, hedge, or run grid and martingale layering — which is a large share of them. An EA holding one position at a time on a symbol is usually unaffected. Nothing errors at compile time, so the problems appear on a live account rather than in testing.
What is the difference between netting and hedging accounts?
Hedging allows multiple independent positions on one symbol, each with its own ticket, stop and target. Netting allows exactly one position per symbol, so additional orders increase or reduce it at a blended entry rather than creating a second position. US-regulated MT5 accounts run netting.
Keep reading
- Prop firm rules explainedDaily drawdown, trailing drawdown, profit targets and consistency rules decide whether an ac…
- Passing a prop firm challenge with an automated systemThe challenge tests survival, not profitability. Here is how to configure an EA against a fi…
- FTMO in the US: simulated capital, not a funded accountFTMO returned to the US through OANDA in 2025. The US product is structured differently from…
- FTMO for US traders
- Prop firm trading bot
Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-08-11.