MT5 Expert Advisors: Copying EA Trades to Futures and Prop Firm Accounts
Risk warning. Trading futures, forex and CFDs carries substantial risk of loss and is not suitable for every investor. You can lose more than your initial deposit. An automated strategy copied to several accounts multiplies whatever the source does, including its losses, and past performance of an expert advisor is not a guide to future results. This article is general information about software behaviour, it is not trading advice, and prop firm rules change without notice, so always confirm the current terms with your firm directly. Test any new software or strategy on a demo or evaluation account before letting it place orders on funded capital.
TL;DR
- Check which platform your firm gives you first. Plenty of prop firms do offer MetaTrader 5, and on one of those your EA simply runs. This article is about the accounts that are not MetaTrader.
- You do not port the EA, you copy its fills. MQL5 only runs inside MetaTrader, so the strategy stays where it works and the trades travel instead.
- Nothing in your EA changes. The bridge listens to the account, not to your code, so it works with a compiled robot you have no source for.
- Four things decide whether it works: symbol mapping, price translation, position sizing and how the destination expresses a stop and target.
- A magic number filter lets you copy one EA out of several running on the same account, and leave the rest alone.
You have an expert advisor that works. It has a year of forward results on MetaTrader 5, it trades NAS100 or gold or EURUSD, and you would like it to trade a funded account instead of only your own.
Then you buy the evaluation and discover the problem. The account is a futures account, it runs on TopstepX or Rithmic or Tradovate or NinjaTrader, and not one of those platforms can execute a line of MQL5. Topstep, Apex Trader Funding, MyFundedFutures, Alpha Futures, Tradeify and TakeProfit Trader all sit in that category. Your robot is written in a language their platforms do not speak.
Rewriting the strategy in C# for NinjaTrader is one answer, and it is a long one. You would be re-testing a new codebase and hoping it behaves like the old one. If you bought the EA as a compiled file, it is not an answer at all.
The other answer is to stop trying to move the strategy and move the trades instead. This article covers what that actually involves: how a copier sees your EA's orders in the first place, why a CFD symbol and a futures contract need mapping, what price translation does to a copied stop loss, how a lot size becomes a contract count, and what happens to the bracket your EA attached to its entry.
Can you run an MT5 expert advisor on a prop firm account?
Often, yes, and it is worth getting this straight before anything else. The answer is a property of the platform your firm puts you on, not of the firm being a prop firm.
A great many prop firms are MetaTrader firms. FTMO, FundedNext, The 5%ers and FXIFY all issue MetaTrader 5 accounts, and on one of those your expert advisor attaches to a chart and trades natively, exactly as it does on your own broker. No bridge, no copier, nothing to map. If that describes your firm then the technical question is already answered, and the only thing left to check is the firm's own rules on automation, which is a separate matter and the next thing in this section.
What cannot run your EA is a platform that is not MetaTrader. MQL5 programs are executed by the MetaTrader client terminal and nowhere else, so a futures platform such as TopstepX, Rithmic, Tradovate or NinjaTrader has no MQL5 runtime and there is nothing for your file to run on. The same is true of the web platforms many CFD firms now issue, including TradeLocker, DXtrade and Match-Trader, and of crypto perpetuals venues. That is the situation this article is about, and the practical approach is to leave the EA running on MetaTrader 5, where it already works, and copy each fill across to the funded account as it happens.
So there are really two separate questions, and they get tangled together constantly:
- Can the platform run my EA? A technical question, and the answer belongs to the platform rather than to the firm. MetaTrader yes, anything else no.
- Does the firm allow automated trading at all? A rules question, and a different one. Policies vary on bots, on copying between your own accounts, and on how many accounts may hold the same position. We keep a separate guide to prop firms that allow algorithmic trading, and another on using a copier without getting flagged.
Get the second answer from your firm in writing before you build anything. A technically perfect setup on an account that forbids it is still a failed account.
How does a trade copier see your expert advisor's trades?
Through a small bridge program on one MetaTrader chart that listens to the trading account rather than to your strategy. It reacts to MetaTrader's own trade transaction events, so it sees every fill on that account no matter what produced it: your EA, a second EA, a signal service or your own mouse.
That detail matters more than it sounds. Because the bridge watches the account, your expert advisor needs no changes whatsoever. No library to include, no function to call, no recompile, and critically no source code. A compiled .ex5 you bought from a vendor and cannot read is copied exactly as well as one you wrote yourself.
There is a naming collision here that confuses almost everyone, so let us clear it up. Trade Dispensary's bridge is itself an expert advisor, because on MetaTrader that is simply what a program on a chart is called. So two different things are both called an EA:
- Your strategy EA. The robot that decides when to buy and sell. It stays on its own chart, configured exactly as it is now.
- The bridge EA. Trade Dispensary's own file, which places no trades and makes no decisions. It sits on a separate chart and reports fills over a local connection.
They run side by side on the same terminal and do not interact. The install itself is a few minutes of work and we cover it step by step in the MetaTrader 5 copy trading setup guide.
Each fill the bridge reports carries the symbol, direction, volume, fill price, any stop loss and take profit on the position, the position identifier, and the magic number of the order. That last field is what makes the next section possible.
Can you copy one expert advisor and ignore the others?
Yes. Every MetaTrader position carries a magic number stamped on it by whatever placed it, and manual trades carry zero. The bridge EA has a magic number filter with three modes: off, copy only the magic numbers you list, or copy everything except the numbers you list. So you can run four EAs on one account and copy only the one your funded account is for.
This is the feature EA traders ask for most, usually after a bad surprise. A single MT5 account is often doing several jobs at once: a long-term robot on gold, a scalper on an index, and your own discretionary trades on top. Copying all of it to a funded account means the funded account inherits three strategies and their combined drawdown, when you only wanted one.
The filter is set in the bridge EA's own inputs, as a mode plus a comma separated list. A few of the ways it gets used:
- One robot only. Set the filter to copy only that EA's magic number. Everything else on the account is ignored.
- Manual trades only. List
0, which is the magic number MetaTrader gives a trade you placed by hand. - Everything except the experiment. Use the except mode and list the magic number of the strategy you are still testing.
One design detail is worth knowing, because it prevents a nasty class of bug. Exits are not filtered by magic number. When a broker's server closes a position on its stop loss, the resulting deal does not reliably carry the magic number of the EA that opened the trade, so filtering exits on magic would eventually strand a position open on your funded account with nothing left to close it. Instead the bridge remembers which positions it copied, and suppresses the exit only for positions it filtered on the way in. Entry decides, and the exit follows the entry.
There is a separate asset filter alongside it, which limits copying to a list of symbols. The two combine, so "only this EA, and only when it trades gold" is a valid configuration.
Symbol mapping: NAS100 is not MNQ
Your EA trades a symbol name that exists on your broker's server. The destination has never heard of it. A CFD broker might call the Nasdaq index NAS100, USTEC, US100 or NDX100 depending entirely on which broker you opened the account with, while the futures contract is MNQ or NQ. Gold is XAUUSD on MetaTrader and GC or MGC on the CME. EURUSD becomes 6E.
So each copy rule carries its own symbol mapping: this source symbol goes to that destination symbol. For futures destinations you can instead point the mapping at a managed contract, which keeps the front month current for you rather than making you edit a contract code every quarter.
There is deliberately no built-in table that guesses these for you. It is tempting, and it is the kind of convenience that costs someone real money the first time it guesses wrong. XAUUSD could reasonably map to GC or to MGC, which differ by a factor of ten in contract size. NAS100 could be NQ or MNQ, same ratio. A wrong guess there is not a cosmetic error, it is a position ten times the size you intended. If no mapping is set, the symbol passes through unchanged and the destination simply rejects a name it does not recognise, which is a loud, harmless failure rather than a quiet, expensive one.
Contract sizes, tick values and session hours all differ between the two markets, and those differences shape everything downstream in this article. We go through them properly in forex versus futures copy trading.
What is price translation, and why does a copied stop fail without it?
Price translation handles the gap between two venues quoting the same market at different absolute levels. A NAS100 CFD and a Micro E-mini Nasdaq future track the same index, but they are not the same instrument and their quotes can sit a few hundred points apart. Copying a stop loss as an absolute price would put it on the wrong side of the market.
Here is the failure in numbers. Your EA goes long NAS100 at 24,850 on your CFD broker and sets a stop at 24,790, which is 60 points of risk. The copier buys MNQ on your funded account and it fills at 25,140, because the future is trading three hundred points above the CFD. Now it tries to place the stop at 24,790. That is not a stop any more, it is 350 points below the market, so your 60 point risk has become a 350 point risk on the account you cannot afford to lose. Reverse the direction and the same arithmetic puts the stop on the wrong side of price entirely, where the venue either rejects it or fills it instantly.
With price translation enabled on the copy rule, the copier records the difference between the source price and the destination's actual fill, then rebases the brackets by distance from entry rather than by absolute price. Your 60 point stop is placed 60 points below the real fill at 25,080, and your target keeps its real distance too. Because it works in distances, the same logic is correct for longs and shorts with no special case.
Three practical notes on it:
- The offset comes from the fill, not from a quote. It is measured against the price the destination actually gave you, so slippage on entry is already inside the number.
- It persists for the life of the position. Every later stop move from your EA is translated through the same offset, so a trailing stop stays the right distance away rather than drifting.
- A rebased stop that lands through the market is refused, not sent. If translation would produce a stop more than half a percent on the wrong side of current price, the copier declines the modification and says so instead of letting a venue fill it as a market order.
One trade-off to be aware of: price translation and resting entry orders do not mix. A pending limit or stop entry can only be placed at a meaningful price if the two venues agree on what that price means, so resting entries are honoured when translation is off. Market entries, which is what most EAs send, are unaffected.
Position sizing: 0.10 lots is not a contract count
A lot is not a contract and nothing can make it one. Your EA risks 0.10 lots of NAS100, which on a CFD broker might be one dollar a point. The smallest thing you can trade on the futures side is one MNQ contract at two dollars a point. There is no fractional contract and there never will be, so the conversion is a decision about risk, not an arithmetic one.
Trade Dispensary therefore asks you to make that decision rather than guessing on your behalf. Each copy rule picks a sizing mode:
- Multiplier. Source size times a factor. Good when both ends measure size the same way.
- Fixed. Always send the same size, whatever the source did. For a CFD robot driving a futures account this is usually the honest answer: one contract per signal, chosen by you.
- Risk percent. Sizes the position so the entry to stop distance costs a set percentage of the destination balance. It needs a stop loss on the signal to work, and it is available on MetaTrader 5 destinations only, because MT5 is the one platform that hands over the exact contract size, tick value and lot step for the symbol being traded. Anywhere else the figure would be a guess wearing a percentage sign.
- Fixed margin. Sizes from margin committed, on Bybit destinations.
On top of the mode there is a rounding step, and one rule inside it is worth calling out. Futures destinations need whole contracts, so a computed size of 0.4 contracts has to become something. Trade Dispensary rounds half up, and if the result would be zero it refuses the entry rather than sending nothing, because an order silently dropped is worse than an order declined with a reason. Exits are the deliberate exception: an exit always rounds to at least one contract, since a position that is open must always be closeable.
What happens to the stop loss and take profit your EA attached?
They travel with the trade and are then expressed in whatever the destination platform supports, which is not the same thing everywhere. The bridge reads the stop and target off the position and sends them with the fill. What happens next falls into three tiers, and knowing which tier your account is in tells you what to expect when one leg fills.
Tier one, a genuine OCO group. On NinjaTrader the stop and the target are submitted as a linked order pair. The platform itself guarantees that one filling cancels the other. This is the strongest form, because the cancellation is the venue's job and happens even if your computer is switched off.
Tier two, brackets on the entry. Most API platforms accept a stop and a target attached to the entry order, and manage the pair themselves from there. MetaTrader 5, cTrader, TradeLocker, Bybit and TopstepX in its bracket mode all work this way. Functionally it is as safe as tier one.
Tier three, emulated. Some venues accept protective orders but offer no way to link two of them together. There the copier places both legs as separate orders and takes responsibility for the cancellation itself, with a watch that runs every fifteen seconds looking for a bracket whose sibling has filled.
That third tier exists because of a specific and expensive failure. On a netting account, if your target fills and the stop is left resting, that stop is no longer protecting anything. It is now an entry order. The position it was guarding is closed, so when price comes back and the stop triggers, it opens a brand new position in the opposite direction, on a funded account, unattended, with no stop of its own. We have watched exactly that sequence on a live futures account: the first leg filled in eleven seconds, the second filled eighty six seconds later, and the platform reported the account as opening a position rather than closing one.
If you want the full detail on bracket behaviour per platform, there is a dedicated article on automated bracket orders and OCO, and the NinjaTrader specifics are in the NinjaTrader 8 integration guide.
Does a trailing stop get copied?
Yes. The bridge checks the stop loss and take profit on every tracked position every five seconds, and when one changes it sends the new level through. The destination's stop is then moved to the translated equivalent, so the distance your EA intended is preserved rather than the raw number it typed.
Two caveats, both about honesty rather than capability. The check is a poll, not an instant event, so a stop that moves several times inside five seconds is forwarded as wherever it ended up rather than as every step along the way. For a trailing stop that is the correct outcome anyway. And a handful of destinations cannot accept a stop modification at all, in which case the original bracket stands as placed. The platform notes tell you which ones, and it is worth checking before you commit a strategy whose edge depends on trailing.
Pending orders are the other thing to know about. Your EA's limit and stop orders are not copied while they sit unfilled, because nothing has happened yet. The copy is triggered by the fill. For most strategies this is invisible and arguably better, since a resting order on two venues at two different prices is a source of surprises. For a strategy whose whole behaviour is about queue position it is a real limitation, and you should know that before you start.
What actually breaks, and what to check first
Four things account for nearly every setup that fails in its first week, and none of them are subtle once you know to look.
Symbol mapping is not set. The destination rejects an instrument name it has never heard of. This is the most common one by a distance, and the log says so clearly.
The market is shut. CFD and forex markets run almost continuously through the week, while futures have a daily maintenance break and their own session boundaries. An EA that fires at five past five in the afternoon New York time is sending a signal into a closed market, and the venue rejects it. Nothing is wrong with the copier, and nothing can be done about it other than knowing your strategy's clock.
The bridge went quiet and nobody noticed. This is the dangerous one, because there is no error to see. Your EA keeps trading, your MT5 account keeps producing results, and the funded account simply stops receiving anything. We learned this the hard way on our own setup, where a wedged bridge went unnoticed for forty four hours and everything on screen looked healthy throughout. The fix was to make silence itself the alarm: the bridge now checks in once a minute, and you can set an alert on a source that has gone quiet for as little as fifteen minutes. If you take one operational habit from this article, take that one.
The destination has no limits of its own. A copied strategy inherits the source's risk appetite, which was tuned for a different account size and a different rulebook. Set per destination limits so the funded account can defend itself: a daily loss cap, a trailing drawdown guard, a maximum open position count, and a consecutive loss cut-out. Three browser-driven destinations cannot be guarded this way and are documented as such, and the honest table of what works where is in what multi-platform really means.
Beyond the futures firms, the same mechanics carry an MT5 robot into the CFD prop ecosystem on TradeLocker, where FunderPro, Blue Guardian, E8 Markets and GOAT Funded Trader all operate, and into perpetuals venues such as Vest Capital, MyFundedPerps, Propr and Breakout. The symbol mapping and sizing questions change shape in each case, but they are the same four questions.
Putting it together
The useful reframing is this. If your firm hands you a MetaTrader 5 account, put the EA on it and you are finished before you start. If it hands you anything else, you are not looking for a different firm. You are keeping your EA exactly where it already works, and giving it reach into accounts it could never execute on directly.
What that costs you is four decisions, made once per copy rule: which symbol maps to which, whether the two venues need price translation between them, how a lot becomes a contract count, and what the destination does with a bracket. Make those four deliberately and the setup is dull in the best possible way.
Trade Dispensary runs locally on your own Windows machine, reads from MetaTrader 5 alongside eight other sources, and writes to futures, CFD and perpetuals destinations with per account risk limits you set yourself. There is no monthly fee and no cloud relay, so your strategy and your credentials never leave your computer. You can see the full feature list or check current pricing, and we would always suggest proving the whole chain on a demo or evaluation account, with one contract, before any of it goes near funded capital.
Frequently asked questions
Can I run an MT5 expert advisor on a prop firm account?
It depends on the platform the firm gives you, not on it being a prop firm. Many prop firms do issue MetaTrader 5 accounts, including FTMO, FundedNext, The 5%ers and FXIFY, and on one of those the EA runs natively with no copier involved. What cannot run it is a platform that is not MetaTrader: MQL5 only executes inside the MetaTrader terminal, so a futures account on TopstepX, Rithmic, Tradovate or NinjaTrader has no runtime for it, and nor do web platforms such as TradeLocker, DXtrade and Match-Trader. For those, leave the EA on MetaTrader 5 where it already works and copy its fills across to the funded account as they happen. Always confirm the firm's own rules on automated trading separately, because that is a policy question rather than a technical one.
Do I need to modify my expert advisor to copy its trades?
No. The bridge sits on its own chart and listens to the account rather than to your strategy, so it sees every fill regardless of which EA produced it. That means it works with a compiled .ex5 you bought from a vendor and have no source code for. You do not add any code, include any library or recompile anything.
Can I copy trades from one expert advisor and ignore the others?
Yes, using the magic number filter in the bridge EA. Every MT5 order carries a magic number set by the EA that placed it, and manual trades carry zero. The filter has three modes: off, copy only the magic numbers you list, or copy everything except the ones you list. So you can run four EAs on one account and copy only the one you have a funded account for.
What is price translation in a trade copier?
Price translation handles the case where the source and destination quote the same market at different absolute levels. A NAS100 CFD and a Micro E-mini Nasdaq future track the same index but can sit a few hundred points apart. Copying a stop loss as an absolute price would place it on the wrong side of the market. With price translation on, the copier records the gap between the source price and the actual destination fill, then rebases every stop and target by distance from entry instead of by absolute price.
Are the stop loss and take profit from my EA copied too?
Yes, when the EA attaches them to its order. They are then expressed in whatever the destination platform supports. NinjaTrader gets a genuine OCO group, so one leg filling cancels the other. Most API platforms accept the stop and target on the entry order itself. Where a venue offers no linkage between the two orders, Trade Dispensary places them separately and runs its own watch that cancels the surviving leg once one of them fills.
Tags:
Share this post
Related Posts
Continue learning about copy trading with these related articles: