December 3, 2026
The best automated forex trading software for a US account is the one whose position model matches US rules, not the one with the longest feature list. US retail forex dealers must offset positions on a first-in, first-out (FIFO) basis and may not carry offsetting long and short positions in the same customer account (NFA Compliance Rule 2-43(b)), and the CFTC sets minimum security deposits of 2% of notional value for major currency pairs and 5% for all others (17 CFR 5.9). An Expert Advisor or API bot written for a "hedging" account can therefore close the wrong trade, have orders rejected or end up with a different net position than its developer expected. Before you choose MetaTrader 5, cTrader or a broker API, confirm the account's position-accounting mode, test in that same mode and decide how the bot handles FIFO rejections.
This guide is documentation research based on NFA's rulebook, the eCFR, the MetaTrader 5 Help, the cTrader Algo documentation and the OANDA v20 API reference, checked on December 3, 2026. We did not run these platforms on live accounts and make no claims about fills, speed or profitability. For forex strategy basics, see our guide to forex trading bots; for realistic return expectations, read are forex trading bots profitable?

Most retail forex automation falls into three groups:
All three groups hit the same US account rules, because the rules apply to the dealer that carries your account, not to the software.
NFA Compliance Rule 2-43(b) says Forex Dealer Members "may not carry offsetting positions in a customer account but must offset them on a first-in, first-out basis." At the customer's request, a dealer may offset same-size transactions even when there are older transactions of a different size, but it must offset against the oldest transaction of that size. In practice:
The CFTC rule requires a minimum security deposit per retail forex transaction of 2% of notional value for major currency pairs and 5% for all other pairs. That works out to maximum leverage of 50:1 and 20:1. These are floors: the rule says NFA's requirement cannot be lower, and NFA designates which currencies count as "major" and reviews those designations at least annually. Your dealer can require more, and must collect additional deposits or liquidate positions if your deposits fall short.
Dealers may not cancel or re-price an executed customer order except in narrow cases, such as a favorable adjustment to settle a complaint or a straight-through-processing case where the dealer's unaffiliated counterparty adjusts the price. In that second case the dealer must notify the customer in writing within 15 minutes. If your bot keeps its own trade log, reconcile it against the dealer's statements so an adjusted fill doesn't silently corrupt your performance data.
| Software | How bots are built | Where the position model shows up | What to check for a US account |
|---|---|---|---|
| MetaTrader 5 | Expert Advisors in MQL5, tested in the built-in Strategy Tester | Two position-accounting systems: netting (one position per symbol) and hedging (several positions per symbol, including opposite ones). The broker sets which one the account uses. | Confirm the live account's mode, and use the Strategy Tester's advanced margin settings to test in the same netting or hedging model before trusting a backtest. |
| cTrader | cBots in C# or Python through cTrader Algo | Depends on the broker account and the cBot's own position handling | Check whether a US-regulated dealer offers cTrader to you at all, then test how the cBot closes trades when it holds several positions on one symbol. |
| OANDA v20 API | Your own code calling the REST API | The account object has a hedgingEnabled flag. Orders take a positionFill setting; DEFAULT means REDUCE_FIRST on non-hedging accounts. | Read hedgingEnabled at startup, and handle the FIFO_VIOLATION reject reason instead of retrying in a loop. |
Platform availability changes, and a platform being available in general doesn't mean a US dealer offers it. Confirm the dealer's registration and offering before you build around a platform.
Some EAs vary lot sizes slightly so each trade can be closed independently under the same-size exception. That changes your risk on every trade and depends on how your dealer applies the rule, so treat it as a design trade-off to test, not a loophole.
Suppose a $10,000 account trades EUR/USD at 1.0800. One standard lot is 100,000 euros, about $108,000 of notional value. At the 2% minimum for a major pair, that lot needs at least $2,160 of security deposit, so the regulatory ceiling is roughly 4.6 standard lots across the account. That ceiling is not a sizing rule. If the bot risks 1% of the account ($100) with a 30-pip stop, and one pip on a standard EUR/USD lot is worth $10, the position should be about 0.33 lots, roughly a fourteenth of what the leverage cap allows. For a pair NFA doesn't designate as major, the 5% minimum cuts the ceiling to 20:1. Read more in position sizing for trading bots.
| Pair type | Minimum security deposit (17 CFR 5.9) | Maximum leverage | Deposit for $108,000 notional |
|---|---|---|---|
| Major currency pair (as designated by NFA) | 2% of notional | 50:1 | $2,160 |
| All other pairs | 5% of notional | 20:1 | $5,400 |
hedgingEnabled flag.Vague answers, guaranteed returns or pressure to fund an account quickly are warning signs. See how to avoid trading bot scams.
FIFO_VIOLATION when filling an order would break FIFO, and its account object exposes a hedgingEnabled flag your bot can check at startup.Educational research based on NFA Compliance Rule 2-43, 17 CFR 5.9, MetaTrader 5 Help, cTrader Algo documentation and the OANDA v20 API reference, checked on December 3, 2026. Rules, platform features and dealer offerings change, so confirm them with your dealer. We did not run hands-on tests, and this article contains no sponsored or affiliate links. Nothing here is trading or legal advice. Leveraged forex trading carries substantial risk, and you can lose more than you expect very quickly.
Get our free Top 5 Bots for Early Retirement report plus The Bot Report newsletter — the bots we'd actually trust to compound over the long term.