Trading rules

Is EA allowed in trading? Check the rules before you run one

Is EA allowed in trading? It depends on three things: your broker’s terms, your account type and, for a funded account, the rules of the firm that provides the funds. Automated trading also has to be switched on in MetaTrader 5. Get the answer in writing before you run an expert advisor on a live or funded account.

Trading forex and CFDs involves substantial risk of loss. Automation applies rules; it does not remove trading risk. Read our risk disclosure.

Key takeaways

Is EA allowed in trading? Three layers decide

Permission comes from several layers, and all of them have to agree. Your broker sets the terms on which automated trading is accepted. Your account type or trading server can add conditions. If you trade a funded account, the firm that provides it can add its own rules on top. Inside MetaTrader 5, automated trading can still be switched off by a setting.

A decision path that starts at broker terms, passes through account type and any funding firm rules, and then checks the automated trading switch in MT5. It ends in one of two outcomes: allowed, so test on demo first, or unclear, so ask support in writing.
Concept diagram, not an app screenshot.

Where to find the rules

Start with the documents that bind your account, not with forum posts or marketing pages. Most answers are in four places.

  1. The broker’s client agreement or terms of business, especially any section on automated or algorithmic trading.
  2. The account type and server notes, which may say whether automated trading is enabled on that account.
  3. The funding firm’s rules pages, if you trade a funded or evaluation account. Each firm sets its own rules, and you must read them.
  4. Written support. Ask a specific question and keep the reply, rather than relying on a call or a chat message.

Ask about the exact behaviour you plan to run: the EA type, how long it holds trades, how many accounts it runs on and whether it trades during news. A general question about whether EAs are allowed usually gets a general answer.

Questions to put to support in writing
QuestionWhy it matters
Is automated trading allowed on this account type and server?Account types and servers can differ for the same broker.
Does a funded account allow EAs, and under what conditions?Firm rules can be stricter than the broker’s.
Are news trading, scalping or copying restricted?These are common restriction categories.
Does the account use netting or hedging?It changes how positions close.

Check the automated trading switches in MT5

MetaTrader 5 has two levels of control, and both must allow trading before an EA can place orders. Menu names can vary slightly between builds, so check the wording in your own version.

  1. Check the Algo Trading button on the toolbar (AutoTrading in some versions and in the MT5 help). The help describes it as the platform-wide switch: when it is off, no EA can trade, even if an EA’s own setting is on.
  2. Open Tools → Options → Expert Advisors and check that Allow Algo Trading is ticked (Allow Auto Trading in some versions). This is the global setting for all EAs and scripts.
  3. When you attach an EA, its properties window opens. On the Common tab, check the Allow Algo Trading option for that EA.
  4. Look at the EA’s name and icon in the upper right corner of the chart. An icon that shows trading is not allowed means one of the switches is still off.

The Navigator window lists running EAs with an icon that shows whether each one may trade. Its context menu can enable or disable trading for an individual EA.

Two settings need extra care. The Expert Advisors tab includes an option to disable automated trading when you switch accounts, which helps when you move from a demo account to a live one, so check that it is set the way you want. Leave Allow DLL imports off unless the EA needs it and you trust its source. The MT5 help warns that programs from unknown sources may cause damage through third-party DLLs.

Menu names and settings can vary by MT5 build. Check the current MetaTrader 5 help before you change anything.

Restrictions some firms set on EA trading

Some funding firms and brokers restrict particular trading styles, even where EAs are otherwise allowed. The categories below are common examples. They are not a list that every firm uses, and the definitions differ from firm to firm.

If your strategy touches one of these, do not assume it is allowed or banned. Find the firm’s exact definition, then ask for a written answer about your specific EA.

Netting and hedging accounts

MetaTrader 5 supports two position accounting systems, and the broker sets which one applies to your account. The difference matters for EA logic, because it changes how a position closes and whether several positions on one symbol can be open at the same time.

Netting and hedging in MT5
FeatureNettingHedging
How a position closesAn opposite trade for the same symbol and volume closes it.Select Close Position in the position’s context menu.
Reversing a positionAn opposite trade changes the single net position for that symbol.A position cannot be reversed. It closes, and a new one opens with the remaining volume.

Check the account’s system before you test. An EA that expects one position per symbol may behave differently on a hedging account. The MT5 help on basic trading principles sets out both systems in detail.

Checklist before you run an expert advisor

Passing this checklist does not make an EA allowed in every case, and it does not make it profitable. It covers the checks that are easy to skip. Backtests and demo results are not proof of live results. The guide on how to verify a trading bot explains what the evidence does and does not show.

Where YO4X fits, and what it does not do

YO4X is a Windows desktop workspace for supported MetaTrader 5 strategies, bot configuration and trading journals. It runs on 64-bit Windows 10 and Windows 11. The current desktop workflow is gated to supported MT5 demo accounts, and live-money trading is not released.

Some limits matter for this question. The staged release allows one active strategy per MT5 account. Local operation needs the PC awake, YO4X open and the connection active. YO4X does not execute EX5 files or arbitrary uploaded code, and MQ5 source can be submitted only for restricted compatibility analysis. YO4X is software, not a broker, so the account and funds stay with your broker.

Using YO4X does not change any of the rules above. Your broker and funding firm still decide what is allowed on your account. See the download page for the Windows app, and keep your records in the trading journal.

General information, not legal or financial advice. Rules change, so check the current terms before you act.

Frequently asked questions

Is EA allowed in trading on a demo account?

Demo accounts often allow automated trading, but that is a broker setting, not a guarantee. Check the demo account’s terms as you would for a live one, because some rules apply only to specific account types. A demo run also cannot tell you whether the EA suits a live account. Treat it as a test, not as proof of permission.

Does my broker allowing EAs mean the EA is safe?

No. Permission to automate trades says nothing about the quality, risk or behaviour of a strategy. An EA can still lose money, trade badly around news or behave differently on another symbol. Read its documentation, test it, and understand its risk before you run it.

Can a prop firm ban expert advisors?

Some funding firms restrict EAs or particular trading styles, and some allow them with conditions. Each firm sets its own rules, and a rule from one firm does not apply to another. Read the firm’s written rules, and ask for a written answer about your specific EA before you run it on a funded account.

What is the difference between netting and hedging in MT5?

On a netting account, an opposite trade for the same symbol and volume closes the position. On a hedging account, you select Close Position on each position, and several positions on one symbol can be open at once. The broker sets which system your account uses, so check it before you test an EA.

Why does my EA say it is not allowed to trade?

One of the switches is probably still off. Check the Algo Trading button on the toolbar, Tools → Options → Expert Advisors, and Allow Algo Trading in the EA’s properties. Then look in the Experts tab for the reason. Account or firm restrictions can also block trading even when every MT5 switch is on.

Keep reading

Sources: Expert Advisors and Custom Indicators - Algorithmic Trading, Trading Robots - MetaTrader 5 Help · Platform Settings - Getting Started - MetaTrader 5 Help · Basic Principles - Trading Operations - MetaTrader 5 Help

Trading forex and CFDs involves substantial risk of loss. Past performance and backtests do not guarantee future results. Read our risk disclosure before you trade.