Guides

EA Setup Guide: Installing and Configuring a Trading Robot on MT4/MT5 for Prop Firms

Installing a trading robot on MT4 or MT5 sounds simple until you lose a funded account because one setting was wrong. This guide walks you through every step, from placing the .ex4/.ex5 file to the critical prop-firm-specific settings most traders overlook.

PraxAI Editorial TeamNov 24, 2026 · 8 min read
EA Setup Guide: Installing and Configuring a Trading Robot on MT4/MT5 for Prop Firms
On this page
  1. 01MT4 vs MT5: Which One Do Prop Firms Actually Use?
  2. 02Installing the EA File: Where the File Goes and Why It Matters
  3. 03Attaching the EA to a Chart: The Settings That Matter for Prop Firms
  4. 04Testing on Demo Before Going Live
  5. 05Common Errors and How to Fix Them
  6. 06Using PraxAI: An EA Already Configured for Prop Firms
  7. 07Frequently asked questions

Key takeaways

  • MT5 is the dominant platform at most prop firms in 2026; prefer it when you have the choice.
  • The .ex5 file goes inside the MQL5/Experts folder of your MT5 data directory, not the installation folder.
  • Always attach the EA to the exact chart symbol and timeframe it was built for.
  • Set a unique magic number so the EA only manages its own trades.
  • Verify lot size limits against your firm's rules before switching from demo to live.
  • Run the EA on a demo of the same prop firm broker for at least one week before the funded account.
  • An EA that cannot flatten positions automatically before a daily breach is a liability on a prop challenge.

MT4 vs MT5: Which One Do Prop Firms Actually Use?

If you are starting a prop challenge in 2026, the answer is almost always MT5. FTMO, MyForexFunds successors, The Funded Trader, Apex Futures, and most newer firms have moved their challenge accounts to MT5. MT4 is still offered at a handful of brokers as a legacy option, but new firms rarely build on it.

From a purely technical standpoint, MT5 handles more asset classes (forex, stocks, futures, indices), runs a more modern execution model, and supports both hedging and netting account modes. For automated trading, MT5 also gives you a richer standard library and compiled files that cannot be decompiled as easily.

MT4 EAs use the .ex4 extension; MT5 EAs use .ex5. The two are not interchangeable. If you purchased or downloaded an EA, confirm which platform the compiled file targets before you spend time on installation.

One practical difference matters a lot for prop firms: MT4 uses a pure hedging model where every buy and every sell open independently. MT5 on a netting account merges positions on the same symbol. If your EA was coded for MT4 hedging and your MT5 prop account is in netting mode, the trade logic can break in unexpected ways. Always check your account type in the terminal before attaching anything.

Installing the EA File: Where the File Goes and Why It Matters

The most common installation mistake is placing the file in the wrong folder. MT4 and MT5 each have two separate directories: the installation folder (where the program lives) and the data folder (where your files and settings live). EAs belong in the data folder.

To find your data folder in MT4: open the platform, go to File > Open Data Folder. In MT5 the path is the same: File > Open Data Folder. This opens Windows Explorer or Finder directly at the right location.

For MT4, place your .ex4 file inside: MQL4 > Experts

For MT5, place your .ex5 file inside: MQL5 > Experts

If the developer also provided a .set file (preset inputs) or a .dll file (external library), place those in the correct subfolders. Set files go in MQL4/Profiles/Templates or the same Experts folder depending on how you load them. DLL files go in MQL4/Libraries (or MQL5/Libraries). Missing a .dll that the EA requires is one of the top reasons an EA loads but throws an error on the first tick.

After placing the file, right-click the Navigator panel inside the platform and select Refresh. Your EA should now appear under Expert Advisors. If it does not, double-check the folder and that the file extension matches the platform version.

Attaching the EA to a Chart: The Settings That Matter for Prop Firms

Double-click the EA in the Navigator (or drag it onto the chart). A settings window opens with three tabs: Common, Inputs, and Dependencies.

On the Common tab, enable "Allow live trading" and, if the EA uses external DLLs, enable "Allow DLL imports." Without these, the EA loads visually but will not place orders.

The Inputs tab is where most prop firm mistakes happen. Walk through every parameter before clicking OK.

**Magic Number.** This is an integer that tags every order the EA opens. Set a unique number so that if you run multiple EAs or if you place manual trades, they do not interfere with each other. If two EAs share the same magic number, one may close the other's trades. Any number works; many traders use the account number.

**Lot Size.** Most EAs let you choose between fixed lot and risk-percentage mode. For a prop challenge, risk-percentage mode is safer because it scales automatically as your balance changes. But verify that the resulting lot size stays within the firm's minimum and maximum. Some firms cap position size per trade; exceeding it can flag the account even if you are profitable.

**Stop Loss and Take Profit.** If your EA sets dynamic SL/TP in code, you may not see these as inputs. If they are inputs, confirm that the SL is wide enough to survive normal spreads and not so tight that the firm flags it as scalping if that style is restricted.

**Trading Hours and News Filter.** Some EAs have an input to block trading during news events or outside certain hours. For prop firms that prohibit trading during high-impact news, enable this filter if available. If your EA has no such filter, you are responsible for monitoring the economic calendar manually. See our post on trading news events on a funded account for the full breakdown of firm policies.

**EOD Flat.** Many prop firms require all positions to be closed before the trading day ends (or before the weekend). Check whether your EA closes trades automatically at a set time. If it does not, you need either a separate management script or the discipline to close manually every session end.

On the chart itself, confirm that the symbol and timeframe match what the EA was designed for. An EA coded for EURUSD on H1 placed on a GBPUSD M15 chart will either trade incorrectly or not trade at all, depending on how the developer coded the symbol check.

Testing on Demo Before Going Live

No prop firm requires you to test on demo first, but every experienced automated trader does it anyway. The goal is not to see profits; the goal is to confirm the EA behaves as expected under real market conditions on the specific broker infrastructure the prop firm uses.

If your prop firm offers a free practice account or a demo on the same server, use that. Broker infrastructure varies: spread profiles, swap rates, execution speed, and slippage all differ between brokers. An EA that runs cleanly on one demo server may behave differently on the prop firm's live server.

Run the demo for a minimum of one full trading week. Watch for: orders opening at unexpected times, lot sizes that do not match your inputs, error messages in the Experts tab at the bottom of the terminal, and any trades that open and close within seconds (a sign of a logic bug or a spread issue).

During demo, also test what happens during the highest-impact news events on your traded pairs. Some EAs have timeout logic that prevents entries within a window around news. Verify that window is working before you trust it on a funded account.

Common Errors and How to Fix Them

**EA loads but no trades open.** Check the Experts tab for error messages. The most common causes: live trading is disabled in the terminal (Tools > Options > Expert Advisors > Allow automated trading), the market is closed, or the EA has a logic condition that the current chart does not meet (wrong symbol, wrong session).

**'DLL not allowed' error.** The EA requires a .dll and the platform setting blocks it. Enable DLL imports in both the EA properties (Inputs tab) and the global terminal settings (Tools > Options > Expert Advisors).

**Orders open with wrong lot size.** The EA may be reading balance from a demo that is different from what you expected. Check if the EA uses a fixed lot or a percentage of balance, and re-read the input that controls it.

**Trades do not close at EOD.** The EA either does not have an EOD flat feature or the input time is set to the wrong timezone. MT4 and MT5 use broker server time, which may differ from your local time by several hours. Convert your desired close time to the server timezone shown in the bottom-right of the terminal.

**EA suddenly stops trading mid-challenge.** Some EAs have a maximum drawdown input that disables trading if the account drops by a set amount. If you hit a losing streak, the EA may have silently shut itself off. Check for a "disable after DD" type input and confirm whether that threshold was crossed.

Using PraxAI: An EA Already Configured for Prop Firms

If the process above sounds like a lot of configuration to get right before risking a challenge fee, that is exactly the gap PraxAI is built to close.

PraxAI runs on MT5 and was designed from the start for prop firm rules. It includes PraxAI PROP, a challenge manager that tracks your firm's daily loss and max drawdown limits in real time, and PraxAI GUARD, which flattens all positions automatically before a breach happens. You do not need to code an EOD timer or a manual news check; the protection layer is built in.

The Elite Optimizer generates a custom configuration for your specific firm, account size, and risk tolerance in 60 seconds. Instead of manually tuning every input across four tabs, you answer a few questions and receive a ready config.

Setup takes around 5 minutes. If you run into anything, a real person from the support team responds within 12 hours. The EA does not use HFT strategies or latency arbitrage, which are the two styles most likely to get flagged or banned at major prop firms.

PraxAI is available for $997 by card or $497 by crypto, with a 7-day money-back guarantee.

Frequently asked questions

Can I use the same EA on MT4 and MT5?

No. MT4 EAs compile to .ex4 files and MT5 EAs compile to .ex5 files. They use different programming versions of MQL and cannot run on the opposite platform. If you have source code (.mq4 or .mq5), a developer can port it. If you only have the compiled file, you need to purchase or obtain the version built for your platform.

Do prop firms allow EAs at all?

Most prop firms allow trading robots as long as the EA does not use prohibited strategies. The commonly banned styles are HFT, latency arbitrage, tick scalping under one second, and any strategy that exploits the firm's pricing feed rather than trading the market. Standard trend-following, breakout, and mean-reversion EAs are generally permitted. Always read the firm's terms before attaching any automation.

What happens if I attach the EA to the wrong timeframe?

It depends on how the EA is coded. Some EAs have a hard check and will display an error message and stop trading if the chart timeframe does not match the expected one. Others will run silently but produce no trades because all entry conditions are evaluated on the wrong bar data. A few may trade actively but with completely wrong logic. Always attach the EA to the exact chart symbol and timeframe specified in the documentation.

How do I know if my EA is actually running?

Look for the EA name and a smiley face icon in the top-right corner of the chart. A frowning face means the EA is loaded but not trading (usually because live trading is disabled). Check the Experts tab at the bottom of the terminal for log messages. If the EA is working, you should see initialization messages and periodic status updates on each new bar.

What is a magic number and do I really need to set one?

A magic number is an integer the EA stamps on every order it opens. It is how the EA identifies which trades are its own when it goes to manage or close them. If you run two EAs simultaneously without unique magic numbers, they can close each other's trades or double-manage positions. On a prop challenge where unexpected behavior can breach rules, using a unique magic number for every EA is non-negotiable.

How long should I run a demo test before going live on a prop challenge?

At least one full trading week. This covers a Monday open, mid-week volatility, Thursday news clusters, and Friday rollover. If the EA trades around news events, verify the news filter is working. If the EA flattens at EOD, watch it do so at least twice. For EAs you have not used before, two weeks is a safer baseline.

Educational content, not financial advice. Trading leveraged products carries a high risk of loss, and no strategy or software guarantees a pass or a payout. Prop firm rules differ by account type and change over time, so check the current terms on the firm's own site before you trade.

Keep reading

Want the bot that runs this discipline for you?

PraxAIPraxAI™

The AI trading system that passes prop firm challenges and protects your funded accounts, hands free. Join 2,000+ traders running it today.

7-Day Money-Back
Secure Payment
Instant Delivery

Legal Disclaimer

PraxAI is not a broker and not a prop firm, and we do not open or provide trading accounts. Our software is not affiliated with, endorsed by, or sponsored by any of the prop firms named on this site; those names appear for compatibility reference only. Trading forex and leveraged products carries significant risk and is not suitable for every investor, so weigh your financial situation and risk tolerance carefully before trading. The bot and all material on this site are provided for educational and informational purposes only and do not constitute financial, investment, or trading advice. PraxAI is not a licensed financial advisor and does not provide advisory services.

Not Affiliated With Meta / Facebook

This site is not part of the Facebook or Meta websites and is not endorsed by Meta Platforms in any way. FACEBOOK is a trademark of Meta Platforms, Inc.

Earnings & Risk Disclaimer (U.S. Government Required)

Trading forex on margin offers large potential rewards but also a high level of risk. You must be aware of those risks and willing to accept them before trading the forex markets. Do not trade with money you cannot afford to lose. No representation is made that any account will, or is likely to, achieve profits or losses similar to anything discussed on this site. The past performance of any system or methodology is not necessarily indicative of future results.

CFTC Rule 4.41(b)(1) / NFA Rule 2-29

SIMULATED OR HYPOTHETICAL PERFORMANCE RESULTS HAVE INHERENT LIMITATIONS. UNLIKE AN ACTUAL TRACK RECORD, THESE RESULTS DO NOT REPRESENT REAL TRADING, AND BECAUSE THE TRADES WERE NOT ACTUALLY EXECUTED THEY MAY HAVE UNDER OR OVER COMPENSATED FOR MARKET FACTORS SUCH AS LACK OF LIQUIDITY. HYPOTHETICAL PROGRAMS ARE ALSO DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFITS OR LOSSES LIKE THOSE SHOWN. IN PRACTICE THERE ARE OFTEN SHARP DIFFERENCES BETWEEN HYPOTHETICAL RESULTS AND THE ACTUAL RESULTS LATER ACHIEVED BY ANY TRADING PROGRAM. HYPOTHETICAL TRADING ALSO INVOLVES NO FINANCIAL RISK, AND NO HYPOTHETICAL RECORD CAN FULLY ACCOUNT FOR THE IMPACT OF FINANCIAL RISK IN REAL TRADING.

Trading on a live account can lose real money, and the owners of PraxAI (praxai.io) cannot be held accountable for any losses that may occur, including losses arising from possible software bugs, glitches, or malfunctions.

PraxAI and its owners assume no responsibility for errors, inaccuracies, or omissions in these materials and do not warrant the accuracy or completeness of any information, text, graphics, links, or other items contained in them. PraxAI and its owners are not liable for any special, indirect, incidental, or consequential damages, including lost revenue or lost profits, that may result from these materials.

We assume you are legally permitted to purchase and use our products. Following the global and local laws and regulations that apply to you is your responsibility, and we cannot be held responsible for any damages or legal action against you arising from those regulations.

All information on this website, and any software or guide purchased from it, is for educational purposes only and is not intended as financial advice. Any statement about profit or income, express or implied, is not a guarantee. Your own trading may result in losses, as no trading system is guaranteed. You accept full responsibility for your actions, trades, and any profit or loss, and you agree to hold PraxAI (praxai.io) and any authorized distributors of this information harmless.

Important Notices

Risk of loss: forex trading carries a high level of risk and may result in the loss of your entire investment. No guarantees: past performance does not indicate future results, and there is no assurance you will achieve the same outcomes. Liability: we are not responsible for any losses incurred from using this bot, and by using it you agree to hold us harmless from any and all liabilities or damages. None of our services or information should be considered financial advice. All rights reserved. Using this website or its contents means you accept this disclaimer.

© 2025 PraxAI™ · All rights reserved.