
Broker Restrictions on Expert Advisors: Scalping Bans, Hedging Rules and What to Check Before You Deploy
An Expert Advisor is a set of assumptions about what the platform will allow. It assumes orders will be accepted, positions held in the structure the code expects, and exits available whenever the strategy says so. Broker account rules, rather than platform software, can violate any of those assumptions, and when they do, a strategy that works perfectly on one account fails on another. This article sets out the restrictions that matter, where they hide, and how to test an account before you deploy. The same checks apply whichever EA you run, including those on our best Expert Advisors list.
Why broker rules can break a working EA
Broker rules attach to the account, not to the platform. An EA sends orders in a stream of buy, sell, close and modify instructions, and every one of those instructions has to pass against the account’s terms before it reaches the market. A minimum holding period, a limit on open positions, or a rule about how opposite positions behave can reject an order the EA considers routine.
The practical result is familiar to anyone who has run automation: the EA behaves on one account, and on another it floods the journal with rejection messages or silently skips actions. The code is the same; the rulebook is different. It is why checking the broker's terms is one of the steps in our guide to choosing a broker for an Expert Advisor.
The restrictions that matter most for automated trading
The restrictions that matter are the ones that touch order behaviour rather than fees. A minimum hold time, sometimes called a scalping rule, rejects closes executed too soon after opening. An account type that does not allow hedging turns opposite-direction trades into netting events instead of separate positions. Limits on maximum open orders or positions stall an EA that scales in gradually. A minimum stop distance rejects any order carrying a stop too close to the market. A first-in-first-out close rule, where it applies, dictates which position is closed first, overriding the EA’s own exit logic. Order-frequency limits can reject bursts of orders inside a short window. Netting versus hedging behaviour is often tied to the account model, which our comparison of ECN and market maker accounts covers.
Each of these is a mechanism, not a judgement: the account terms set the values, and the EA either fits them or it does not. The table below lists the main restrictions and the mechanism by which each one can break an EA.
Terminal permissions are not the same as broker rules
A separate layer of controls lives in the terminal itself. MetaTrader allows you to disable automated trading globally, and the platform’s settings include an Expert Advisors permissions tab that controls whether EAs can run at all and whether they may trade. The effect can look identical to a broker restriction — orders do not fire — but the cause is local, on your own machine or VPS.
The difference matters for troubleshooting. The MetaTrader 5 platform settings help page documents the Expert Advisors permissions tab. If an EA silently does nothing, check terminal permissions before blaming the broker, and remember that many demo terminals have automated trading disabled by default.
Where restrictions hide in account terms
Restrictions rarely sit under a heading that says ‘Expert Advisors’. They are spread across the account agreement, the product disclosure and the summary of order-execution terms, phrased as holding periods, position limits, close rules and order-frequency clauses. Trade-specific values, such as the minimum stop distance or the minimum lot, usually live in each instrument’s specification.
Read the account documents before funding, and search them for the terms that matter to your strategy: scalping, hedging, close-only, holding period, maximum positions, FIFO. If a clause exists, write down how it affects your EA’s order behaviour — that list becomes your pre-deployment checklist. Trade-specific values belong on the same checklist. The minimum lot, the lot step and the leverage available on each instrument determine whether the EA’s intended sizes can be expressed at all, and the minimum stop distance decides whether the strategy’s protective stops can be attached where the code wants them. Values that look similar across brokers are not identical, and the specification is the only reliable source. Reading the documents is unavoidable, but our vetted broker comparison is a reasonable place to start the shortlist.
How to test an account for restrictions before going live
Test the mechanics on a demo account of the same account type you intend to use, with the same instrument set. Open and close a position quickly to test minimum hold times; open opposite positions to see how hedging behaves; run the EA in its fastest phase and watch the journal for rejections; send orders both with and without stops to check the minimum stop distance.
The results will show whether the account mechanics fit the strategy. What a short test cannot do is prove the rulebook, because some rules are enforced in monitoring rather than in order acceptance — which is why the final check belongs on a small live account before full capital is deployed. None of these checks is a guarantee. Keep the test results in the same file as the account terms you collected, so that evidence and rulebook sit side by side when you decide how much capital the live deployment should carry. This is the same kind of mechanical testing described in how we test Expert Advisors, applied to the account rather than the robot.
FAQs
Is scalping banned at most brokers?
Practice varies by account type and entity. Some accounts carry a minimum hold time and others do not, and the terms of the account you actually open are the only reliable statement. There is no meaningful global answer.
What does a hedging restriction do to a grid or martingale EA?
A grid or martingale EA depends on holding multiple positions in both directions. On an account that nets opposite positions, the first opposite-direction order closes or reduces the existing exposure instead of adding a new layer, so the strategy’s core assumption stops holding.
Can a broker cancel trades that broke its rules?
Account agreements commonly reserve the right to reject or close positions that do not comply with the stated rules. Where that right exists, it is a term of the contract, and the remedy is to trade within the rules rather than rely on leniency.
Does a demo account have the same restrictions as a live one?
Often similar, because the same account engine applies, but not identical — monitoring and enforcement can differ, and demo terms are not the live contract. Test on demo for mechanics, then confirm on a small live account.
Trading foreign exchange and CFDs on margin carries a high level of risk and may not be suitable for all investors. This article is for educational purposes only and does not constitute financial advice.

