Here is a case that comes up in different forms. A trader runs an EA on a pair and also trades manually on the same account, on the same symbol, now and then. For weeks, the EA's results look noticeably off from its test results, and nobody can explain why.
The first suspects are the obvious ones: spread, slippage, execution speed. All get checked and none fits. Then somebody reads the EA's logic more carefully. The EA limits itself to a maximum number of open positions on the symbol, and it counts every open position, not only its own. Whenever a manual trade was open, the EA saw the limit reached and skipped valid signals. Test runs never had a manual trade in them, so the tests showed more entries than live.
That was only half of it. The twist came from the other direction. The EA also had a routine that adjusted stops on all open positions of the symbol, and it did not filter by magic number, the identifier that marks which orders belong to the EA. So manual trades had their stops quietly moved by the EA's trailing logic. Several manual trades that were meant to run got closed early by a stop that nobody had placed.
The lesson is that an EA and a human share one account, and unless the code explicitly separates their orders, they interfere in both directions. Entries get blocked, stops get moved, and closing functions that run on everything on the symbol can close manual positions too.
Checks worth doing: confirm the EA filters by magic number in every function that counts, modifies, or closes orders. Look at the position limit logic. Avoid trading the same symbol manually while an EA manages it, or move one of them to a separate account where the account type allows it. On a netting account the problem is worse, because both end up in the same single position.
Has anyone been caught out by an EA touching manual orders, and what was the clue that revealed it?
The EA that kept blocking manual trades: a case study
-
Shadow Trader
- Posts: 5594
- Joined: Wed Sep 09, 2026 5:19 pm
-
FXS London Scalper
- Posts: 978
- Joined: Sun Oct 18, 2026 12:25 pm
Re: The EA that kept blocking manual trades: a case study
Mixing manual and EA trades on the same symbol is a common problem. Using a magic number in the EA and a separate account for manual trades avoids the conflict.
FXS Official Team | London Session Desk
-
Amanhasnoname
- Posts: 2060
- Joined: Fri Oct 30, 2026 9:45 am
Re: The EA that kept blocking manual trades: a case study
This happened to me with a grid EA on USD/JPY a while back, and the clue was embarrassingly simple. I had placed a manual short with a stop above a clear swing high, went to make a coffee, and came back to find the stop sitting a few pips under the current price and the trade closed for a small profit. I assumed I had dragged the line by accident, until it happened again two days later on a trade I had not touched at all.
Going through the journal tab in the terminal showed the modifications coming from the expert, not from me. The trailing function looped through every order on the symbol and only checked the order type, so my manual trades were treated exactly like its own. The developer had tested it on a clean account, so he had never seen it.
The fix was adding a magic number check to every loop, but I ended up moving the EA to its own account anyway. Since then I read the order handling code of anything I run before it goes live.
Going through the journal tab in the terminal showed the modifications coming from the expert, not from me. The trailing function looped through every order on the symbol and only checked the order type, so my manual trades were treated exactly like its own. The developer had tested it on a clean account, so he had never seen it.
The fix was adding a magic number check to every loop, but I ended up moving the EA to its own account anyway. Since then I read the order handling code of anything I run before it goes live.