MT4 Expert Advisor: How to Install, Test and Choose One
To run an MT4 expert advisor, copy its .ex4 file into the MQL4/Experts folder, test it in the Strategy Tester and on a demo account, then attach it to your account's chart with AutoTrading switched on. An MT4 expert advisor (EA) is a compiled program that trades by its coded rules while the terminal is open and connected. On a prop-firm account, the EA worth running is one your firm's product permits and whose loss controls match that account's limits; an EA's name, preset or backtest proves neither.
What an expert advisor on MT4 does, and what it does not
An expert advisor on MT4 reacts to each new price tick on its chart: it reads prices and indicator values, checks its conditions and sends order requests to the broker to open, modify or close trades. EAs are written in MQL4, the MetaTrader 4 programming language, and commercial ones usually come as the compiled .ex4 only, without the .mq4 source.
Three limits matter before you pay for one. It works only while the terminal is open and connected. The broker can fill any order at a different price, delay it or reject it, so a coded stop or daily loss guard is an instruction, not a guaranteed maximum loss. And no expert advisor produces consistent forex trading results on its own: someone still chooses the strategy, the settings and when it runs, and the EA applies the same rules in good conditions and bad.
How to install and run an expert advisor on MT4
- Get the files from the vendor: the .ex4 (or an .mq4 to compile in MetaEditor), the .set file and any custom indicator the EA calls. Never run a file of unknown origin on a funded or real account.
- Open the data folder. Choose File, then Open Data Folder. Copy the EA into MQL4/Experts, indicators into MQL4/Indicators and .set files into MQL4/Presets.
- Refresh. Right-click Expert Advisors in the Navigator and choose Refresh, or restart MT4.
- Allow automated trading. Under Tools, Options, Expert Advisors, tick Allow automated trading. Tick Allow DLL imports only if the vendor documents why the EA needs it.
- Attach it to the right chart. Drag the EA onto the symbol and timeframe it is built for. In the Common tab tick Allow live trading; in the Inputs tab load the .set file or enter the values.
- Switch AutoTrading on. With the toolbar button active, the EA's name shows in the chart's top right corner with an icon that tells you whether it may trade.
- Read the logs. The Experts and Journal tabs of the Terminal window (Ctrl+T) show start-up messages, errors and rejected orders.
MT4 runs one expert advisor per chart, so open one chart per symbol. If it places no trades, check AutoTrading, the symbol name the EA expects, market hours and any input that blocks entries.
PC or VPS: where the terminal runs
The EA lives inside your terminal: when MT4 closes or the computer sleeps, it stops, and open positions keep only the stops and targets already placed with the broker. A reliable PC can stay on; a VPS keeps MT4 running when your own computer is off, and on a prop account you check that the firm accepts the setup. Our comparison of a VPS and a home PC for EA trading covers the choice.
How to test an MT4 expert advisor before it trades
Open the MT4 Strategy Tester with Ctrl+R, select the EA, symbol, timeframe, dates and model, and set the deposit and inputs, or load the .set file, under Expert properties. Download the symbol's history first under Tools, History Center. Use Every tick for an EA with tight stops or an equity guard and Open prices only for one that works strictly on completed bars; Control points is a rough estimate. Every tick is generated from bar data, not your broker's real ticks, so a high modelling quality figure does not prove real prices or fills. The tester also uses one spread for the whole run: set it at or above what your account pays, include commission, and save the report, EA version and settings together. Our comparison of EA backtesting software covers the tools beyond the built-in tester.
What a backtest cannot show
- The daily loss on equity. The report does not show your firm's daily floor at its reset time. An illustrative case: on a 100,000 account with a 95,000 equity floor for the day, open trades that take equity to 94,500 breach it, even if they later close at 98,000. Check each day's lowest equity against the firm's formula, or treat that rule as untested.
- Parts the tester does not run. In the MT4 tester an EA trades only the tested symbol, and web requests such as a live news calendar are not executed, so a multi-symbol or news-feed EA needs separate evidence.
- The future. Inputs tuned until the curve looks smooth fit the past. Judge the EA on a period you never used for tuning.
Then a demo run with the same file
Run the same .ex4 and settings on demo under the conditions you will trade, long enough to include a high-impact news day and a Monday open. Compare the signals you expected with the orders sent, the fills and the log messages. A demo shows real-time behaviour; it does not reproduce every fill or prove future results.
Which MT4 EA is best for a prop-firm account?
The best MT4 EA for your prop account is the one that passes five checks, in this order. A top 10 list cannot run them for you, because it does not know your firm, product, account size or setfile.
- Permission for your exact product and size. Rules differ by firm, product, account size and platform. As of October 2026, FTMO allows EAs and algorithmic trading as long as the trading could be replicated on a live account, forbids EAs that make an account hyperactive with more than 2,000 server requests a day, and warns that using a third-party EA can put the FTMO Account at risk of being denied if you exceed its maximum capital allocation rule. Our overview of which prop firms allow EAs covers the other firms.
- Loss logic that matches the account's formula. As of October 2026, FTMO's rules set a 5% daily and a 10% static maximum loss on the 2-Step, and 3% daily with a 10% maximum that trails at end of day on the 1-Step. A preset written for a 5% day leaves no margin on a 3% day. Ask how the EA measures the day (balance or equity, open trades included or not) and at what server time it resets.
- A strategy type the rules can live with. See the table below. Frequency matters too: as of October 2026 FTMO sets no time limit, but its 2-Step needs at least 4 trading days in each phase, while the 1-Step has no minimum. An EA that trades a few times a month still has to reach those days.
- Evidence for that exact file. The version, setfile, symbol, dates, costs and drawdown on equity, from a backtest you can repeat and a demo record. A screenshot, or figures from another product or account, say nothing about this file.
- Failure handling. What the EA does after a restart, a disconnection, a rejected order or a renamed symbol, and whether it logs each of those.
| EA type | Where it clashes with prop limits | What to check |
|---|---|---|
| Grid or martingale | Adds positions while price moves against it, so open equity can reach the daily floor in one move | Maximum open lots and the equity stop, tested on the worst days in the history |
| Scalping | Profit per trade is close to spread plus commission | Results with a wider spread and full commission, and your product's rules on holding time and execution |
| News trading | Releases can bring gaps and slippage past the stop | The EA's news filter, its data source and time zone, and your product's news rule |
| Trend following | Long losing runs and few trades a month | The longest losing run against the daily and maximum limits, and the trading days required |
| Mean reversion | Losses grow in strong trends when stops are wide | Stop placement and the trend filter |
One common piece of advice is plainly wrong: buying an EA because it is sold as a challenge passer. As of October 2026, FundedNext bans EAs built to pass challenges on its Stellar accounts. The best expert advisor for your trading strategy is one whose rules you understand and whose evidence covers the file you will run.
Which brokers still support MT4 for expert advisors?
Many brokers still support MT4, but availability varies by broker, account type and the legal entity you sign with, so check the broker's current platform list rather than a ranking. Prop firms that support MT4 for forex trading list their platforms per product, so check the product you will buy. A broker is compatible with EAs when:
- MT4 is offered on your account type, not only MetaTrader 5.
- Its client terms allow expert advisors and your style, such as scalping, high trade frequency or hedging.
- The symbols match what the EA reads: suffixes such as EURUSD.r, digits, the contract size of gold, minimum lot, lot step and minimum stop distance.
- Spread, commission per lot and swap are close to what your backtest assumed.
- You know the server time zone, which drives the EA's session filters, news filters and daily resets.
In the UK the best MT4 broker for forex trading with expert advisor support is found the same way, with one extra check: confirm that the broker's UK entity offers MT4 and EA trading on your account type, since platform lists can differ between a broker's entities.
How do I move my MT4 expert advisor to a new broker?
- Back up the files: the EA from MQL4/Experts, its .set files from MQL4/Presets, indicators from MQL4/Indicators and any library files the vendor supplied.
- Check the licence. Commercial EAs are often tied to an account number, so register the new account with the vendor before you switch.
- Install the new broker's MT4, copy the files into the same folders and refresh the Navigator. If Disable automated trading when the account has been changed is ticked under Tools, Options, Expert Advisors, switch AutoTrading back on after your checks.
- Compare symbols and server time. Right-click the symbol in Market Watch, choose Specification, and check it against the broker points above; update any symbol or suffix input. A server in another time zone moves the EA's daily loss reset with it.
- Deal with open trades first. An EA on the new account does not see positions on the old one.
- Run it on demo with the new broker and watch the Experts and Journal tabs before it trades a funded or real account.
EA development services or a ready-made licence
If no ready-made EA fits, expert advisor development services are the other route. Give the developer the account's loss formula and reset time, the symbol specifications and the behaviour you want after a restart or a rejected order, and agree whether you receive the source code or only the .ex4. Order a separate build for each MT platform, because an MT4 file does not run on MT5, which uses .ex5 files. A custom build needs the same tests as any EA.
The ready-made route is a licence such as the JPTC EA Hub: an MT4/MT5 expert advisor licence with configurable setfiles that you download and run on your own terminal, on a reliable PC or a VPS. It is built around prop-firm risk rules; its enabled limits can stop new entries and request closure of open positions, but they cannot guarantee an execution price or prevent every breach. A firm preset or name is not proof of compatibility or approval, and no EA can guarantee a pass, a payout or profit.
It suits a trader on an MT4 or MT5 prop account whose product permits EAs, who keeps failing on the loss limits rather than on the strategy, and who will test the file on demo and monitor the terminal. It is not for Topstep, Apex or The5ers accounts. On FundedNext, the EA Hub is only a candidate on Stellar accounts below $50K, and only where FundedNext does not treat it as an EA built to pass challenges; it has no role on FundedNext Futures accounts such as Flex. As of October 2026, a third-party EA on a Stellar account also needs FundedNext's paid EA add-on.
If you would rather not run an EA at all, the challenge passing service starts at 100K and runs until the challenge is passed; most pass within two to six weeks, but nobody can guarantee a pass. As of October 2026, FTMO and The5ers prohibit third parties trading your account, and passing services operate in that grey area. Read the firm's terms on account access before you buy. The account stays in your name, so the risk of a review sits with you.
For your own capital rather than a prop account, JPTC's hosted Algo runs on JPTC's infrastructure on your own broker account, with nothing to install and no VPS; it is not offered for prop-firm evaluations. Its monthly figures on the results page come from JPTC's broker statement and are company-published, not independently audited.
Want an MT4 EA with prop-firm setfiles you can install and test the way this guide shows? See the JPTC EA Hub
How much should an EA risk per trade on a prop account?
Can I run several EAs on one MT4 account?
Do I need to know MQL4 to use an MT4 EA?
Related Articles
- Apex Trader Funding vs TopStep: Which Futures Prop Firm Is Best in 2026? · Read more →
- How to Choose the Right Prop Firm in 2026: Complete Selection Guide · Read more →
- Discord Trading Communities: Why Serious Traders Use Them · Read more →
- Can a Trading Bot Pass Gold EA Prop Firm Challenges? · Read more →
- Mastering MT4 EA Source Code: A Prop Firm Edge · Read more →
- MT4 vs MT5 for Prop Firm Trading: Which Platform to Choose? · Read more →
- Best MT5 Expert Advisor in 2026: Pass Prop Firms Fast · Read more →
- Prop Firm EA Success: 5 Proven Strategies for Passing Challenges · Read more →
Automated forex and gold trading
Runs on your own account at your own broker. We host and set it up, so there is nothing to install and no VPS. No profit share, no monthly fee.
See how it works




