An MT4 account can contain trades from several Expert Advisors alongside positions you open manually. If you want an MT5 account to follow just one of those strategies, copying everything on the source account may not match your plan.
Local Trade Copier EA MT4/5© lets you select source trades using receiver-side Magic Number filters. You can keep an existing EA running on MT4 while copying its eligible trades to MT5, with separate receiver sizing and protection settings.
This tutorial explains how to identify the intended strategy, configure the filter, and test that both wanted and unwanted trades are handled correctly.
Identify the Magic Number used by that EA's source trades, then enter it in Magic Numbers to Copy in the MT5 receiver's Local Trade Copier EA settings.
For example, if the intended source EA uses 10101, enter:
Magic Numbers to Copy: 10101
Do not confuse this with the separate Magic Number input. That identifies trades opened by the copier itself; it does not select which source strategy to copy.
The filter works only if the number reliably identifies the intended source trades. Verify the actual order information rather than assume every EA has a unique number.
A Magic Number is an identifier that an Expert Advisor can assign when submitting a trade. It is commonly used to distinguish a strategy's trades from other activity on the same account.
Consider this illustrative MT4 source account:
Trading activity
Source Magic Number
Should this MT5 receiver copy it?
EA Strategy A
10101
Yes
EA Strategy B
20202
No
Oedinary manually places trades
0
No
Both EAs could trade EURUSD. A symbol filter alone would then select trades from both strategies. The Magic Number is the useful distinction in this example.
A number is not inherently unique. Two EAs can use the same identifier, and an EA or trading utility can use 0. Consequently, selecting 0 is not universal proof that every copied trade was entered by a human.
These three inputs have different purposes:
Input
Purpose
Magic Numbers to Copy
Select source trades carrying the listed identifiers
Magic Numbers Not to Copy
Exclude source trades carrying the listed identifiers
Magic Number
Identify the receiver trades opened by Local Trade Copier EA
For the one-EA example, enter 10101 in Magic Numbers to Copy. Leave the copier's own Magic Number at its existing suitable non-zero value for the test.
Setting the copier's own identifier to 10101 is not a substitute for configuring the source filter. Likewise, the receiver's copied trade does not have to carry the same identifier as the original MT4 EA to demonstrate that filtering worked.
See the complete Settings Documentation for all selection and identification inputs.
Check the source EA's Inputs and documentation for its Magic Number or equivalent identifier. Verify that the number matches an actual trade from the intended strategy.
As described in our troubleshooting guide, hovering over a source trade's ticket in the Trade or Account History area can display its Expert ID. Where available, that is a practical way to inspect the trade's Magic Number. If your terminal does not show it, use the EA's documented identification method or ask its developer to confirm it.
Record whether the EA uses one number or several. Some strategies assign different identifiers to different symbols or operating modes.
Avoid changing a live EA's identifier simply for this tutorial. Its own trade management may depend on that value. Use the identifiers already present, and make any strategy changes separately in a controlled demo environment.
For MT4-to-MT5 copying, use:
An MT4 transmitter account where the original strategy runs.
A separate MT5 receiver account.
Both terminals running on the same Windows computer or regular Windows VPS.
The MT4 copier version in MT4 and the MT5 copier version in MT5.
Keep the source trading EA on its existing MT4 chart. Attach Local Trade Copier EA MT4© to a separate chart in that same terminal and set its Account Mode to Transmitter.
MetaTrader permits only one EA per chart. Attaching the copier to the strategy's chart would replace the EA already attached there. A separate chart lets the trading EA continue operating while the copier monitors account activity.
On the MT5 receiver, attach Local Trade Copier EA MT5© to a chart and select Account Mode: Receiver. Enter the source account number in Transmitter Account Number.
For installation details, follow the Getting Started Guide.
On a fresh demo setup, use the following example:
MT5 receiver input
Example value
Account Mode
Receiver
Transmitter Account Number
Your MT4 demo transmitter account number
Magic Numbers to Copy
10101
Magic Numbers Not to Copy
Empty for this simple inclusion test
Copy Current Trades
false
Copy New Trades
true
Copy Market Trades
true
With Copy Current Trades = false, the initial test focuses on newly opened source trades rather than immediately copying an existing portfolio. Place or wait for fresh strategy trades after configuring the test.
Keep other demo filters non-conflicting, configure valid symbol mapping, and choose a small permitted receiver lot size. A matching Magic Number does not override trading permissions, risk controls or broker requirements.
These selection inputs belong on the Receiver, not on the transmitter. Each receiver can therefore decide which source trades it accepts independently.
A filter test should verify exclusions as well as successful copying.
Use two compatible demo accounts and test:
A fresh Strategy A trade with Magic Number 10101: it should be eligible for copying, subject to the other settings.
A fresh Strategy B trade with Magic Number 20202: it should not be selected by the 10101 inclusion filter.
An ordinary manual trade with Magic Number 0: it should not be selected either.
A Stop Loss or Take Profit change on the selected trade: check the receiver's configured synchronization.
Closure of the selected source trade: verify the result against Synchronized Trade Closure and any independent receiver-management settings.
Where possible, test both EAs on the same symbol. That makes it easier to establish that the strategy identifier, rather than a symbol difference, determined selection.
Let the EAs generate their normal demo trades, or use their documented demo test controls. Opening an ordinary manual trade does not automatically give it an EA's Magic Number and is not a valid substitute for testing that EA's identifier.
Record the source ticket, source Magic Number, symbol and receiver result. The receiver's Experts and Journal messages can help explain a missing or rejected copy.
The same approach can be extended using comma-separated identifiers:
Intended selection
Example Magic Numbers to Copy
Strategy A only
10101
Strategy A and Strategy B
10101,20202
Strategy A plus trades carrying 0
10101,0
Trades carrying 0 only
0
The meaning of 0 depends on the actual source activity, as explained above.
Another MT5 receiver could use 20202 to follow Strategy B independently. Each receiver can then apply its own sizing and protection policy. For that separate decision, see MT4-to-MT5 receiver lot sizing.
For this tutorial, use exact numbers. The documentation also supports ranges and partial matching, but those intentionally select a broader group and should be tested separately.
A Magic Number filter cannot distinguish two sources that share the same value by that value alone.
If the strategies trade different instruments, a symbol filter may provide the additional distinction you need. LTC's Symbols to Copy input uses the exact receiver symbol names, including any suffix.
For example, a receiver symbol named EURUSD.r must be entered as EURUSD.r in that symbol filter. This selects the receiver instrument; it does not replace the separate source-to-receiver symbol-mapping configuration.
If source comments genuinely differ, review Comments to Copy as another selection option. Verify actual comments first: brokers can modify comment text, and a friendly receiver label does not identify the original strategy automatically.
If strategies share the same number, symbol and usable comment, there may be no reliable distinction for these filters. Separate source accounts or properly documented strategy identifiers may then provide a clearer workflow.
For naming differences, use the cross-broker symbol-mapping guide.
The filter contains the copier's identifier instead of the source EA's identifier. Check which Magic Number is attached to the original MT4 trade.
An inclusion and exclusion conflict. Avoid listing the intended source in both fields; do not assume a precedence rule will produce your desired result.
The EA uses multiple identifiers. Verify every relevant source trade rather than checking only its main input label.
The receiver rejects an otherwise eligible trade. Check symbol mapping, lot sizing, margin, trading permissions, copying hours and protection controls.
The test uses an existing position or a manual trade. Confirm what you actually tested against Copy Current Trades and the source identifier.
For more help, see the Troubleshooting Center.
No. The original EA continues running in MT4. The copier transfers eligible trading activity to MT5; it does not convert the strategy's source code or executable file.
Yes. Identify the source strategy's trades and configure the appropriate receiver filters. Install the version corresponding to each terminal and verify the reverse workflow on demo. See the MT5-to-MT4 copying guide.
No. Receiver volume, protective levels, contracts, prices and execution can differ. Selecting the intended strategy is one part of configuring the overall trading workflow.
Local Trade Copier EA MT4/5© lets you decide which trading activity reaches each receiver, then manage its sizing and protection independently. A correctly tested source filter can help you follow an existing MT4 strategy on MT5 without copying every other trade on the account.
Start with the downloadable MT4 and MT5 demos, which are fully functional on demo accounts for four hours at a time. For a cross-platform test, install the MT4 demo in the source MT4 terminal and the MT5 demo in the MT5 receiver. These files provide the practical two-terminal trial, unlike the Market's built-in Strategy Tester demo.
Once the intended trades copy and the unwanted trades remain excluded, review the full licenses:
Both versions are required for MT4 ↔ MT5 cross-platform copying. See purchase plans for current options.
Send us a message via the contact page and we’ll get back to you promptly.