PROP FIRMS · 8 MIN READ

FIFO and netting rules, and what they break in a trading bot

US-regulated MT5 accounts run netting with FIFO: one position per symbol, and the oldest lots close first. Most EAs were written for offshore brokers in hedging mode, so moving one to a US account changes the position model underneath it without any warning.

Hedging, netting and FIFO in one paragraph each

Hedging mode lets several positions on one symbol exist separately, including opposite ones. Each has its own ticket, stop and target. MetaTrader 4 always worked this way, and so do most offshore MT5 accounts.

Netting mode allows exactly one position per symbol. A second buy adds to the existing position at a blended entry price, and no second position is created. The two tickets you thought you had are one position at the broker.

FIFO (first in, first out) means that where several lots exist, the oldest must be closed first. You cannot choose to close the newer, more profitable leg and leave the older one running.

What netting and FIFO break in an EA

You will not spot these failures by reading the code, because nothing throws an error at compile time. They show up at runtime on a live account, usually in the same conditions that made the strategy want two positions in the first place.

EA behaviourWhat netting/FIFO does to it
Opens a second position on the same symbolMerges into one position at a blended entry. The EA still tracks two.
Sets a separate stop and target per ticketThere is one position, so there is one stop. Per-ticket modification may fail.
Closes a specific ticketFIFO may force the oldest closed instead, which is a different trade from the one intended.
Hedges by opening the opposite directionReduces or closes the existing position instead of adding one.
Grid or martingale layeringEvery layer merges. The position-management model stops describing reality.

The failure that leaves a position with no stop

Take an EA that opens with no stop attached and adds protection straight afterwards as a separate modification. That is 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 and 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" does not answer that.
  • 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 name gold differently (`XAUUSD`, `XAUUSDm`, `XAU_USD`, `GOLD`), and a hard-coded symbol does nothing on a broker that names it otherwise.
  • Test the failure path on purpose on demo: force a rejected modification and confirm the EA closes or protects the position instead of leaving it without a stop.
  • Confirm the firm's own rules on automation and on forbidden practices before you pay the fee.

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. US-regulated accounts enforce it, so an automated system cannot close a specific newer position and leave an older one open.

Does FIFO break Expert Advisors?

It breaks EAs that manage positions per ticket, hedge, or layer grid and martingale positions, which is a large share of them. An EA that holds one position at a time on a symbol is usually unaffected. Nothing errors at compile time, so the problems show up on a live account instead of in testing.

What is the difference between netting and hedging accounts?

Hedging allows several independent positions on one symbol, each with its own ticket, stop and target. Netting allows exactly one position per symbol, so extra orders increase or reduce it at a blended entry instead of opening a second position. US-regulated MT5 accounts run netting.

Keep reading

Further reading

Prop firm bot — and our real drawdowns →Prop firm drawdown calculator

Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-11-11.