What Is an Expert Advisor? EA Trading Explained for MT4 and MT5
What is an expert advisor? A plain-English 2026 guide to EA trading: how EAs work tick by tick, MT4/MT5 install, buying vs commissioning, selling on MQL5.

By Jakub Rož · Founder & CEO, For Traders
An expert advisor (EA) is a compiled MQL4 or MQL5 program attached to a single MetaTrader chart with permission to send orders on your behalf. It reads price on every incoming tick and can open, modify and close positions without you clicking anything. In trading, "EA" simply stands for expert advisor — MetaQuotes' name for an automated trading robot.
Key takeaways
- EA means expert advisor: a compiled .ex4/.ex5 program that runs on one chart and can send orders without your input — the one-question test is whether it can trade while you sleep.
- Indicators draw, scripts run once, EAs trade continuously — all three share the same file extensions, which is why traders mix them up.
- An EA runs on the OnInit / OnTick / OnDeinit lifecycle, and on roughly 99% of ticks the correct action is to do nothing.
- You can buy an EA on the MQL5 Market, commission a custom one via MQL5 Freelance (roughly $150 for a single-rule bot up to $2,000+ for a multi-filter system), or code it yourself.
- Selling your own EA on the MQL5 Market means passing MetaQuotes validation, offering a free demo for the Strategy Tester, and giving up a commission share (around 20%) on each sale.
- On a prop evaluation, a daily loss limit and max drawdown apply to a bot exactly as they apply to your hands — so the EA needs a hard-coded kill switch, a spread cap and a news blackout window, all tested on simulated capital.
Watch: related video
What is an expert advisor (and what does EA mean in trading)?
An expert advisor is a compiled MQL4 or MQL5 program attached to one chart on MetaTrader, with permission to send orders on your behalf. That's the full definition — no more, no less. It sits on a single chart, reads every incoming tick, and if its logic fires, it opens, modifies or closes a position without you touching the mouse. That's what EA means in trading: expert advisor, nothing more mysterious than that.
EA stands for expert advisor — the MetaQuotes naming
MetaQuotes, the company behind MT4 and MT5, coined "expert advisor" back when the platform first shipped MQL — and the name stuck for a reason: it framed the program as a hired specialist reading the chart for you, not a black box replacing your judgment. Every other platform calls the same idea something else. cTrader users build a cTrader cBot in C#. NinjaTrader users write a NinjaTrader NinjaScript strategy. TradingView has Pine strategies. Outside any specific platform, the industry-wide catch-all is "trading robot" or "algo." An expert advisor forex trader on MT4 and a cBot trader on cTrader are doing the exact same job — automated order execution based on coded rules — just with different vendor branding attached to it.
The one-question test: can it send an order without you clicking?
Here's the test that separates an EA from every other chart add-on, and it's the only one you need: can it place, modify or close an order while you're asleep? If yes, it's an EA. If it only draws lines, flashes an alert, or paints a dashboard — but never touches the trade ticket itself — it's an indicator, not an EA. That single order-sending permission is the whole distinction. A custom RSI overlay that pings your phone at 3am is not an EA. A script that reads that same RSI value and fires a market order into XAUUSD at 3am while you're asleep is.
Is "MyExpertAdvisor" the same thing as an expert advisor?
No — and this trips people up in search results. MyExpertAdvisor (sometimes written myexpertadvisor) is a third-party vendor brand that sells packaged EA products — a company name, not a generic term for the software category. Searching "my expert advisor" lands you on a specific seller's product page; searching "what is an expert advisor" lands you on the concept itself, which covers thousands of EAs from hundreds of vendors, free and paid, good and bad. Worth knowing the difference before you go shopping — one is a search for a category, the other is a search for one specific storefront inside it.
Expert advisor vs indicator vs script vs copy trading
An expert advisor trades for you, an indicator only draws on your chart, a script runs one command and exits, and copy trading mirrors someone else's orders without any code running on your machine at all. Four different tools, four different risk profiles — and MetaTrader's file structure does almost nothing to warn you which one you're looking at.
Same file extension, completely different jobs
Open your MetaTrader Navigator and you'll see indicators, scripts and expert advisors sitting in separate folders — but all three compile down to the same .ex4 or .ex5 file format. An MQL4 script, an MQL5 indicator, and a full trading robot are indistinguishable by extension alone. The file tells you nothing about what the program is allowed to do. Permissions and folder placement tell you everything.
A script executes once, top to bottom, then dies. Drag it onto the chart and it runs a single job — close all positions, set breakeven on every open trade, delete pending orders — and then it's done. No loop, no persistence, no reaction to the next tick. An indicator is the opposite of dangerous: it calculates and draws (moving averages, RSI, custom arrows) but has zero order-sending permission no matter how "smart" it looks. It can flash a signal; it cannot pull the trigger. An expert advisor is the only one of the three built to loop indefinitely — attached to a chart, it processes every incoming tick for as long as it's running, and unlike a script, it can open, modify and close positions on its own without you touching the mouse. That's the expert advisor vs indicator distinction in one line: indicators inform, EAs act.
| Type | What it does | Runtime | Sends orders? | Navigator folder | Typical use |
|---|---|---|---|---|---|
| Indicator | Calculates & draws on chart | Persistent, redraws each tick | No | Indicators | Trend/momentum visualization |
| Script | Runs one command, then exits | Single execution | Yes, once | Scripts | Close-all, breakeven, cleanup tasks |
| Expert Advisor | Reads ticks, manages trades continuously | Runs until removed | Yes, repeatedly | Expert Advisors | Automated trading robot / full strategy |
| Copy trading / signal | Mirrors another account's trades | Continuous, server-side | Yes, via provider's account | N/A — not a local file | Following a trader without coding |
Where copy trading and signal services sit
Copy trading and signal subscriptions don't belong in this table by file type because there's no local .ex4 or .ex5 file at all — the logic runs on someone else's server or terminal, and your account just receives mirrored orders. That's the core of copy trading vs expert advisor: an EA is code you attach, inspect and control on your own chart; copy trading hands execution to a person or system you can't see inside. Same outcome on your equity curve — positions open and close — but a completely different risk category. You're exposed to that provider's downtime, slippage on the copy, and their risk management, not your own.
Prop firms treat the two very differently for exactly this reason. A self-hosted trading robot running on your own VPS or terminal is auditable — the firm can see the EA's behavior against its own rules. Copy trading and third-party signal services introduce a black box, which is why many evaluation rulebooks restrict or flag them separately from standard EA use. Know which category your automation actually falls into before you assume the rules that apply to one apply to the other.
How an EA actually works: OnInit, OnTick and OnDeinit
Every MQL5 expert advisor is built around three event handlers, and understanding what fires when is the difference between debugging your logic and staring at a black box. OnInit runs once, the moment you attach the EA to a chart. OnTick runs every single time a new price quote arrives — dozens of times a second on XAUUSD during active hours. OnDeinit runs once, when you remove the EA or close the terminal. That's the entire skeleton of an MQL5 expert advisor code structure — everything else is decision logic slotted into those three buckets.
The three functions that define an EA's life
OnInit is where the EA validates its inputs, checks that the symbol matches what it was designed for, and sets up any indicator handles it needs — a bad OnInit throws an error and the EA never trades, which is exactly the failure you want on the chart, not three losing trades in. OnTick is where the real work happens: it checks the current price, runs the strategy conditions, and decides whether to send an order, modify a stop, or do nothing. OnDeinit cleans up — releasing indicator handles, logging a shutdown reason, closing files. Skip it and the terminal usually forgives you; skip proper checks in OnInit and OnTick and the market won't.
Why on 99% of ticks the right action is nothing
An EA that fires on every tick isn't a trading system, it's a slippage generator. On the overwhelming majority of incoming ticks, the correct output of OnTick is literally nothing — no new order, no modification, just an evaluation that concludes "conditions not met, wait for the next one." A breakout rule tuned on the XAUUSD London/New York overlap, where spread is tight and volume is real, gets shredded if it's allowed to fire on a thin Asian-session tick stream where the same price move might be three ticks of noise instead of genuine order flow. Discipline in an EA isn't the code that sends orders — it's the code that refuses to.
Input parameters: risk %, SL/TP, trailing, spread cap, session filter
- Risk % per trade — position size calculated from account equity, not a fixed lot.
- Stop loss / take profit — set in points or as an ATR multiple, so a stop loss adapts to XAUUSD volatility instead of using a static 200-point value that's too tight in a news spike and too loose on a quiet Tuesday.
- Trailing stop start and step — the trailing stop EA logic locks in gains once price moves a defined distance in your favor.
- Max spread filter — refuses entries when spread widens past a cap, which matters a lot around rollover and thin liquidity windows.
- Session filter — restricts trading to defined hours, non-negotiable on gold given how differently it behaves inside versus outside the London/New York overlap.
Magic numbers and why two EAs on one account need them
A magic number is an integer tag attached to every order an EA sends. MetaTrader uses it so the EA can tell its own positions apart from manual trades or a second robot running on the same account — without it, one EA might modify or close a position that actually belongs to another strategy entirely. If you're stacking a gold breakout system alongside an index mean-reversion EA on one funded account, unique magic numbers aren't a nice-to-have, they're the only thing keeping the two from stepping on each other.
How to install and run an EA in MT4 or MT5
Installing an expert advisor takes five minutes, but the two-level permission model — a per-EA checkbox and a global toolbar toggle — is where most first-timers get stuck watching a chart that just won't trade. Here's the sequence that actually works, every time, on both MT4 and MT5.
Step by step: Data Folder → MQL4/MQL5 → Experts
- Open your terminal, go to File → Open Data Folder. This opens the platform's working directory, not your Windows install folder — don't go hunting in Program Files.
- Navigate to MQL4/Experts (MT4) or MQL5/Experts (MT5). This is the only folder MetaTrader scans for expert advisors.
- Drop your compiled file in: .ex4 for MT4, .ex5 for MT5. If you've only got the source — .mq4 or .mq5 — open it in MetaEditor (F4 from the terminal) and hit compile. A clean compile with zero errors produces the .ex4/.ex5 file you actually need.
- Right-click Expert Advisors in the Navigator panel and choose Refresh, or just restart the terminal. The EA won't show up until you do this.
- Drag the EA from the Navigator onto the chart you want it running on — the symbol and timeframe of that chart is what the EA will see.
- In the dialog that opens, tick Allow Algo Trading (MT5) or Allow live trading (MT4) for this specific EA instance, then click OK.
Auto Trading, DLL and WebRequest permissions
Here's the trap: ticking the box in the attach dialog only grants permission at the EA level. There's a second, global switch — the Auto Trading button on the main toolbar — that has to be enabled too. Miss either one and the EA sits on the chart doing nothing, no errors, no trades, just silence. The tell is the smiley face in the chart's top-right corner: a green smiley means the EA is live and armed; a sad face means it's loaded but blocked from trading. Check that face before you walk away from the screen.
Allow DLL imports is a separate checkbox, and it's a genuine security question, not a formality. Legitimate EAs almost never need it — DLL access lets code reach outside the sandboxed MQL environment into your operating system. Unless you're running a strategy that explicitly documents why it needs a DLL (some latency-sensitive execution tools do), leave it unchecked. Same logic for WebRequest URLs: only whitelist a domain if you know exactly what the EA is calling out to and why — a news-based EA pulling a calendar feed is reasonable, an EA asking for a random URL with no explanation is a red flag, not a feature.
Why a VPS beats a laptop that goes to sleep
An EA only trades while the terminal is open, logged in, and connected — full stop. A laptop lid closing, a Wi-Fi drop during NFP, or a Windows update forcing a restart mid-London-session doesn't pause your EA gracefully; it leaves whatever position you're in unmanaged, with no one adjusting stops or closing out. A VPS (virtual private server) hosted near your broker's trade server keeps the terminal running 24/5 regardless of what your home internet or hardware does, and as a side benefit it typically cuts execution latency since the server-to-server hop is shorter than home-to-broker. If you're running an EA on a funded account, the VPS isn't a luxury — it's the thing standing between a normal drawdown day and a breached daily loss limit because your position sat unmanaged for three hours.
Where EAs come from: buy, commission or build
You get an expert advisor three ways: buy one off the shelf, pay a developer to build one for you, or write it yourself. Each route trades cost against control, and the honest answer is that most traders underestimate what they're giving up with the cheap option and overestimate what they'll get from the expensive one.
Buying off the shelf: MQL5 Market and private vendors
The MQL5 Market is MetaQuotes' own storefront — every mql5 market expert advisor listed there runs through a validation check, ships with a free demo you can test in Strategy Tester before paying, and settles through an escrow-style purchase system so you're not wiring money to a stranger on a forum. Prices run from $30 to a few hundred dollars. The catch: you're buying a black box. You get the compiled .ex4/.ex5 file, not the source, and thousands of other traders can run the exact same logic on the exact same pairs — which matters when a broker or prop firm starts watching for identical entry timestamps across accounts.
Private vendors selling outside the Market — Telegram channels, standalone websites, forum signatures — skip that validation layer entirely. No escrow, no guaranteed demo, no MetaQuotes review. Some are legitimate and offer better support than the Market allows. Some are re-skinned free EAs with a martingale bolted on. If you buy this way, you carry 100% of the due-diligence risk yourself.
Commissioning a developer
MQL5 Freelance — the job-board side of the same platform — connects you with a custom expert advisor developer who codes to your spec. You describe the logic, agree a price and milestones, and typically walk away owning the source code, meaning you can audit, modify or hand it to another coder later without starting over. Expect 10 to 50 times the cost of a Market product — simple rule-based EAs start around $300-$500, anything with multi-timeframe logic or custom risk management climbs into four figures. What you're paying for is exclusivity: nobody else is running your exact ruleset on your exact instrument.
Coding it yourself in MQL4/MQL5
Free in cash, expensive in time. If you already trade a rules-based strategy, learning MQL5 — MetaQuotes' current language, largely backward-compatible with MQL4 syntax — gets you full control and zero licensing fees. Realistically, budget several months of evenings before you have a robot you'd trust with a funded account, and longer still before it survives a live expert advisor forex session without throwing a runtime error at the worst possible tick.
Decision table: cost, control, source code, maintenance
| Route | Upfront cost | Ongoing cost | Source code | Can modify? | MT update maintenance | Who carries the risk |
|---|---|---|---|---|---|---|
| MQL5 Market EA | $30–$300 | Low (updates included) | No | No | Vendor's job | Shared — vendor patches, you monitor |
| Private vendor EA | $50–$500+ | Unpredictable | Rarely | No | Depends on vendor goodwill | Entirely yours |
| Commissioned build | $300–$5,000+ | Negotiated support | Usually yes | Yes | Your developer or you | Mostly yours, contract-dependent |
| Self-coded | $0 cash / months of time | Your time | Yes | Yes | You | Entirely yours |
How to commission a custom MQL4 or MQL5 expert advisor
You order a custom expert advisor the same way you'd hire any freelance engineer: post a spec, review bids, fund escrow, and pay on delivery. The dominant marketplace for this is MQL5 Freelance, MetaQuotes' own platform, and it's where most serious traders go when they want to engineer an MT4 advisor built to their exact rules instead of buying something off a shelf.
The MQL5 Freelance workflow and escrow
You post a job description, developers bid with a price and delivery date, and you pick one based on completed-jobs count and rating — not the lowest number. Those two metrics are the only meaningful filters on the platform; anyone can write a slick profile, but a developer with 200+ closed jobs and a 4.8+ rating has survived 200 clients checking their work. Once you accept a bid, your payment sits in escrow. The developer doesn't get paid until you approve delivery, which gives you real leverage to demand fixes before funds release.
What a custom EA actually costs in 2026
Price scales with logic complexity, not lines of code. A single-rule entry/exit system — say, EMA cross with a fixed stop — runs low hundreds of dollars. Add session filters, spread caps, a news blackout window and trailing logic, and you're in the mid hundreds to low thousands. A portfolio EA with prop-firm guard rails (daily loss cutoffs, max drawdown locks) plus a dashboard interface starts north of that. Be blunt with yourself about cheap bids: a $50 quote almost always means no error handling, no requote logic, and no support when it breaks during a news spike.
| EA complexity | Typical 2026 price | What's usually missing at the low end |
|---|---|---|
| Single-rule entry/exit | $100–$300 | Error handling, logging |
| Multi-filter (sessions, spread cap, news, trailing) | $400–$1,500 | Revision rounds, source docs |
| Portfolio EA with prop guard rails + dashboard | $1,500–$5,000+ | N/A at this tier if vendor is reputable |
The spec brief checklist to send before you pay
Vague briefs produce vague code. Send this as a bulleted list before anyone bids:
- Entry logic (exact conditions, indicators, timeframes)
- Exit logic (take-profit rule, opposite signal, time-based close)
- Position sizing method (fixed lot, percent risk, ATR-based)
- Stop and target definition (pips, ATR multiple, structure-based)
- Trailing rules (step size, activation trigger)
- Max spread allowed before entry is skipped
- Session filter (which hours/sessions it's allowed to trade)
- News filter (blackout window around high-impact releases)
- Magic number (so it doesn't clash with other EAs on the account)
- Max concurrent positions
- Error/requote handling behaviour
- Logging (what gets written to file, for later audit)
- Prop-rule guard rails (daily loss limit, max drawdown lock)
Source-code ownership, milestones and revisions
Before you fund escrow, get three things in writing: who owns the source code after delivery, how many revision rounds are included, and whether you receive the raw .mq4/.mq5 file or only a compiled .ex4/.ex5. Full source ownership matters most if you'll want another developer to modify the EA later — a compiled-only handoff locks you to the original vendor forever. For anything above a few hundred dollars, split payment into milestones: a deposit to start, a middle payment after you've tested on demo, and the balance only after live-forward verification confirms it behaves as specced.
Ready to trade funded capital?
Choose your path — Instant Accounts, One-Step or Two-Step Challenges — from just $23, with up to $300,000 in funded capital.
Choose your challengeHow to sell an expert advisor on the MQL5 Market
Selling an EA on the MQL5 Market means running a gauntlet of automated validation, a public Strategy Tester demo, and a MetaQuotes commission cut before a single dollar reaches your account. Here's the actual publishing sequence, in order.
- Register an account at MQL5.community — this is separate from your broker login and becomes your seller identity across the marketplace.
- Verify your seller profile and payment details, including the withdrawal method MetaQuotes will use to pay out your share.
- Upload the compiled product (and optionally source) to the Market section from within MetaEditor or the MQL5.community product page.
- Write the product description and add screenshots — chart examples, input parameter lists, backtest equity curves.
- Submit for automated validation.
- Fix any compile errors or behaviour flags the validator returns — this loop can run multiple times before approval.
- Set your price, any rental tiers, and the activation limit per license.
- Publish.
Seller account setup and product submission
Your MQL5 seller account is tied to your MQL5.community profile, not your trading account — you can be a seller without ever running the EA live yourself. Submission happens through MetaEditor's built-in publishing wizard, which packages your .ex4/.ex5 binary along with any documentation you attach. Sellers who skip proper input descriptions or leave default parameter names ("Input1", "Input2") get bounced in review far more often than those who document every setting.
Validation, demo versions and the Strategy Tester signal
Product validation MQL5 runs an automated check for compile integrity, banned functions (like direct DLL calls without disclosure) and basic stability. Once approved, your EA must run as a free demo in the Strategy Tester — this is not optional. Buyers pull up your product page, load the demo version, and run their own backtest before reading a word of your description. That tester run is the entire pitch. A demo that produces a flat or erratic equity curve on a buyer's own symbol and timeframe kills the sale regardless of how good your written copy is.
Pricing, rentals, activations and the MetaQuotes commission
MetaQuotes retains a commission of roughly 20% on each sale, with additional withdrawal fees layered on depending on your payout method — plan your pricing knowing your real take-home is meaningfully below the sticker price. You choose between outright purchase, monthly rental, or both, and you set an activation limit — the number of live terminals (usually a low number like 1-5) a single license can run on simultaneously. Tight activation limits reduce license sharing but increase support tickets from legitimate buyers switching brokers or VPS providers.
The first ten reviews effectively decide a listing's life on the MQL5 Market — a product buried on page four with three stars rarely recovers momentum, no matter how the strategy performs later. Every new MetaTrader build can also break compatibility, meaning published sellers carry an ongoing update and support burden for as long as the product stays listed — something to weigh before committing a strategy you'd rather keep private to the marketplace.
How to vet an EA before you pay — and why backtests die forward
The short version: if a sales page shows you a beautiful equity curve and nothing else, walk away — and if it does pass the smell test, you still need to forward-test it yourself on demo before risking a cent, because an EA backtest vs forward test are two different animals and the gap between them is where most sellers hide the truth.
Red flags in a sales page
- Backtest-only equity curves. No live or forward-test track record, just a simulated run over cherry-picked years.
- No maximum drawdown figure. If the seller won't publish max DD, assume it's worse than you'd accept.
- No trade count or profit factor. A curve built from 40 trades tells you nothing statistically. You want hundreds, minimum, with the profit factor stated plainly.
- Recovery logic buried in the inputs. Look for parameters named "Multiplier," "Recovery Mode," or "Lot Increase" — that's a martingale EA or grid trading robot wearing a trend-following costume.
- Any claim with the words "no loss." There is no such strategy. Full stop.
The four reasons a perfect backtest falls apart live
- Curve fitting. The strategy was tuned to a specific historical window until it looked flawless — then it meets a market regime it's never seen and stalls.
- Unrealistic execution assumptions. Backtests run on tight spreads and zero slippage. Live, your broker's real spread and fill delay eat the edge, especially on gold where spread and slippage widen fast during volatility.
- No news filter. Without an NFP or FOMC news filter, the EA takes the print head-on — and a five-second spike can wipe out a week of grind trades.
- No drawdown governor. Nothing stops a losing sequence from compounding. A martingale-style recovery module can turn one bad stretch into a max-DD breach overnight.
Your 30-day forward-test protocol
Run the EA on a demo account, at the exact risk per trade you intend to use live — not a scaled-down test size. Trade the actual instrument you plan to run it on, whether that's XAUUSD or an index like NSDQ, not a proxy pair. The window has to include at least one NFP release and one FOMC decision, since that's where fragile logic breaks first. Log the Strategy Tester's output for those same calendar dates side by side with your forward-test results. If the two curves track closely, the strategy has some substance. If they diverge sharply — the backtest was fiction, and you just saved yourself from funding it with real risk.
Running an expert advisor on a prop firm challenge
A daily loss limit and a max drawdown apply to an EA exactly as they apply to your own clicking finger — the difference is the bot doesn't feel the dread that makes a human stop trading at -3% and walk away. That's precisely why an unsupervised EA can breach a limit in a single session: it has no fear response, no fatigue, no "that's enough for today." It just keeps executing the logic until the account tells it to stop, and if nothing tells it to stop, it finds out the hard way.
Daily loss limit and max drawdown apply to bots too
Under most automated trading prop firm rules, including the For Traders Challenge, the daily loss limit and max drawdown are account-level constraints — they don't care whether the order came from your mouse click or an MQL5 OrderSend() call. Size risk per trade so your worst realistic losing streak — five to seven consecutive stopped-out trades on XAUUSD or US100, not two — still lands inside the daily limit with headroom left over. If your daily allowance is 5%, don't design an EA that can theoretically lose 4.8% in one bad sequence; that's a bot that passes backtesting and fails funding.
Hard-coding a kill switch and news blackout windows
Cap max concurrent open positions in the code itself, not just in your head — grid and martingale-style logic loves to stack exposure quietly. Add an equity-based kill switch that disables new order entry for the rest of the day once floating loss hits a set percentage of your daily allowance, say 60-70% of it, leaving a buffer before the hard limit. Build in news trading restrictions as calendar blackouts: no new entries in the ten minutes before and after NFP or an FOMC decision, since that's where spread widens, slippage spikes and stops get run through on both gold and index CFDs.
Where grid, martingale and copy trading sit in the rules
Self-hosted EAs, grid/martingale recovery systems and external copy trading services sit in different categories across the industry — some firms ban martingale outright, some allow self-hosted EAs but restrict copy trading between accounts, some treat grid systems as a drawdown-management question rather than a ban. Read the specific rule set for your EA prop firm challenge rather than assuming your strategy is fine because it worked at a different firm.
What automation actually runs on the platform in 2026
On the For Traders platform, XAUUSD is the single most-traded instrument and US indices are the second-biggest cluster — which is exactly where most automated setups get pointed, since both offer the volatility and liquidity EAs are built to exploit. All of this runs on simulated capital during the challenge; performance rewards are paid on simulated profits once you're funded, whether through a standard Challenge or Instant Funding.
| Parameter | Conservative setting | Why |
|---|---|---|
| Risk per trade | 0.5%-1% of equity | Keeps a 5-7 trade losing run inside daily limit |
| Max concurrent positions | 2-3 | Prevents stacked correlated exposure on XAUUSD/US100 |
| Kill switch trigger | 60-70% of daily loss limit | Stops trading before the hard breach |
| News blackout | ±10 min around NFP/FOMC | Avoids slippage and spread-spike fills |
Ready to trade funded capital?
Choose your path — Instant Accounts, One-Step or Two-Step Challenges — from just $23, with up to $300,000 in funded capital.
Choose your challengeExpert advisors: the honest trade-offs
Pros
- Executes the plan identically at 3am and after three losses — no moved stops, no revenge entry
- Reacts to a tick in milliseconds, which matters on gold breakouts and index opens
- Enforces position sizing and a spread cap mechanically instead of by willpower
- Can be tested over years of data in the Strategy Tester before a single cent of risk
- Frees you from screen time so you can trade sessions you'd otherwise sleep through
Cons / risks
- Optimises beautifully on history and can fall apart on the first unseen regime
- Keeps executing a broken edge with perfect discipline until you intervene
- Needs a VPS, monitoring and re-testing after every MetaTrader or broker-side change
- Black-box purchases give you no way to audit the logic you're risking capital on
- Can breach a daily loss limit in a single session faster than a human ever would
Frequently Asked Questions
What is an expert advisor and what does EA mean in trading?+
An expert advisor (EA) is an automated trading program written for MT4 or MT5 that opens, manages, and closes trades based on coded rules, without you clicking the buttons yourself. EA is just shorthand traders use for the same thing. It runs on the MetaTrader platform using MQL4 or MQL5 code, reacting to price ticks, indicator values, or time events. Some EAs are simple set-and-forget systems; others manage multiple pairs, gold, and indices with dynamic risk. It's still your account and your risk — the EA just executes faster and without emotion.
How does an EA actually work on every price tick?+
An EA runs through three core functions: OnInit fires once when you attach it to a chart, setting up variables and indicator handles; OnTick fires every time a new price quote arrives, which is where entry/exit logic and trade management live; OnDeinit fires when you remove the EA or close the terminal, cleaning up objects. Between ticks the EA does nothing — it's not constantly scanning, it's reacting. This matters for backtesting accuracy: an EA coded to check conditions only on tick can behave differently on illiquid pairs versus fast-moving XAUUSD.
What's the difference between an EA, an indicator, and a script?+
An expert advisor trades for you automatically; an indicator only displays information on the chart (like a moving average or RSI) and never places trades on its own; a script runs once when dragged onto a chart and then stops, often used for one-off tasks like closing all positions. Copy trading is different again — it mirrors another trader's live positions onto your account rather than running independent code. All four can coexist on the same chart, but only the EA opens and closes orders continuously based on its own logic.
Is 'MyExpertAdvisor' the same as an expert advisor?+
MyExpertAdvisor is just a placeholder or default file name — MetaTrader labels a newly created template 'MyExpertAdvisor' or similar in the MetaEditor wizard, it's not a distinct product or brand. Any EA you build, buy, or download is still fundamentally the same thing: an automated MQL4/MQL5 program attached to a chart. Don't confuse a generic file name with a specific tool — if you're searching for 'my expert advisor' because you're setting one up, you're really asking how to name, compile, and attach your own EA, which works the same way regardless of what you call the file.
Where can you get an expert advisor for MT4 or MT5?+
Three main routes: buy a finished EA from the MQL5 Market or a private vendor, commission a custom build from an MQL4/MQL5 developer, or code it yourself in MetaEditor. Marketplace EAs are cheapest but generic — you can't verify the exact logic. A commissioned EA costs more but matches your specific strategy and risk rules. Building it yourself takes the longest but gives full control and no ongoing vendor dependency. Whichever route you pick, insist on the strategy tester report and forward-test results before risking real capital or a funded challenge on it.
How much does it cost to order a custom MQL4 expert advisor?+
Custom EA commissions typically range from a few hundred dollars for a simple single-pair strategy to several thousand for multi-symbol systems with dynamic risk management, news filters, and dashboard interfaces. Price depends on complexity, whether the developer needs to reverse-engineer your manual strategy from scratch, and how much testing/optimization is included. Freelance MQL4/MQL5 developers on marketplaces like MQL5's Freelance section quote per-project; expect to pay a deposit upfront and the balance on delivery after you've reviewed backtest results against your written spec.
What should be in the spec brief before you pay an EA developer?+
Write down exact entry and exit conditions, position sizing rules, stop-loss and take-profit logic, which symbols and timeframes it trades, and how it should behave around news events or weekends. Vague briefs like 'trade breakouts' produce EAs that don't match what's in your head. Include edge cases: what happens on a disconnect, how it handles slippage, whether it trails stops, and any prop firm rule constraints like daily loss limits. A clear brief also protects you if the delivered EA doesn't match spec — you have something concrete to hold the developer to.
How do you sell an EA on the MQL5 Marketplace and what's the commission?+
You submit your compiled EA through the MQL5.community seller account, pass MetaQuotes' code and safety review, then list it with a price and description on the Market. MetaQuotes takes a commission on each sale — historically around 30-40% depending on payout method, with the exact rate published in MQL5's seller agreement, so check current terms before listing. You also need to maintain the product with updates, since broken EAs after platform updates generate refund requests and hurt your rating, which directly affects future sales visibility.
Why do profitable EA backtests fail in live or forward trading?+
Backtests overfit to historical price data that will never repeat exactly, while real trading adds spread widening, slippage, requotes, and broker-specific execution the tester can't fully model. An EA curve-fitted to five years of one gold dataset often falls apart the moment volatility regime shifts — a classic failure mode on XAUUSD around FOMC or NFP. Always forward-test on demo for weeks before going live, and be suspicious of backtests with unrealistically smooth equity curves — real trading is never that clean.
Can you run an expert advisor during a prop firm challenge?+
Most prop firms, including For Traders, allow expert advisors during the Challenge as long as the EA respects the same daily loss limit, max drawdown, and any trading-style restrictions that apply to manual traders. Check the specific rules before deploying one — some firms restrict high-frequency scalping EAs or require minimum trading days regardless of automation. A VPS is strongly recommended so the EA keeps running if your home connection or terminal drops, since a disconnect mid-trade can leave a position unmanaged right when a stop should have moved.
Written by
Jakub Rož
Founder & CEO, For Traders
Jakub founded For Traders to build a prop trading firm with multi-asset coverage — Forex, Gold, Crypto and Futures — under a single funded-trader framework. He writes about how the prop industry actually works, what drives long-term trader performance, and where Gold and Forex strategies intersect with disciplined risk.
Follow on LinkedInReady to trade funded capital?
Choose your path — Instant Accounts, One-Step or Two-Step Challenges — from just $49, with up to $300,000 in funded capital.
Choose your challengeTrade up to $300,000
Choose challenge