YoForex AI educational guides

What is an expert advisor (EA)? Meaning, types and forex robots

An expert advisor (EA) is a program that runs inside a trading platform such as MetaTrader 5 and follows coded rules. Depending on its design and permissions, it can analyze prices, send alerts, place orders, or manage open positions. Forex robot is a popular name for an EA. The label does not reveal the strategy or the results.

Published · Updated · By YoForex AI Editorial Team

Expert advisor meaning: what does an EA do?

The expert advisor meaning in MetaTrader is narrower than the marketing around it. An EA is software built to operate inside a compatible MetaTrader terminal. It reads the data and account state made available to it, applies its programmed conditions, and takes only the actions its code and permissions allow. One EA may only display information; another may open and close orders; another may manage stops, baskets, or exposure after a person opens a position. The label Expert Advisor does not reveal the strategy, risk, or quality of a particular program.

MetaQuotes classifies Expert Advisors as trading applications and distinguishes them from indicators, which analyze prices, and scripts, which normally perform one requested action. Its official guide to creating Expert Advisors and indicators states that indicators cannot place trades and that scripts run once on request. The official running-an-EA guide shows that automated trading must be permitted at both the platform and application levels before an EA can trade.

Comparison matrix of an Expert Advisor, indicator, script and signal. Rows ask whether each reads price data, can place orders, runs continuously on its chart, and needs a person to decide.
Four columns, four questions. A program name alone does not answer them. Swipe sideways to see the whole diagram.Open full-size diagram

EA, indicator, script, signal, or trading bot: what is the difference?

Difference between an Expert Advisor, indicator, script, signal, and trading bot
TermUsual meaning in an MT5 workflowDoes the name prove it trades?
Expert AdvisorAn event-driven MQL5 application attached to a chart; its code may analyze, trade, or manage positions.No. Check the product's documented functions and permissions.
Custom indicatorA program that calculates or displays analysis from price data.No. MetaQuotes states that indicators cannot place trades or access charts.
ScriptA program normally run on demand for a single task.No. A script can perform a trading task, but it is not a continuously running EA.
SignalAn analysis, alert, or proposed trade that may require human review or a separate copying workflow.No. A signal can remain informational.
Trading bot or forex robotA broad marketing or technical term for automated software.No. Identify the actual platform, code, permissions, custody, and execution path.

These terms are often blended in advertising. Ask what concrete action occurs after the software produces a condition. The forex signals versus Expert Advisors comparison separates a signal that a person reviews from software that can execute or manage trades.

How does an MT5 Expert Advisor work?

An EA responds to events inside the terminal. A new price tick, a timer, a trade event, or a user action can cause its code to run. The exact logic is private to that program unless source code and documentation are supplied. A typical automated workflow can be understood as five separate stages:

Typical workflow and checks for a MetaTrader 5 Expert Advisor
StagePossible EA activityWhat the user should verify
ObserveRead prices, indicators, time, open positions, or account values.Correct symbol, timeframe, data, account, and terminal connection.
DecideCompare the current state with fixed entry, exit, or management rules.Documented strategy, active inputs, filters, and supported market conditions.
RequestSend an order, modification, cancellation, alert, or internal instruction.Trade permission, requested volume, stop levels, margin, and broker rules.
ReceiveProcess the broker or platform response.Experts and Journal messages, rejections, fills, slippage, and partial execution.
MonitorContinue managing the state while the terminal and EA are active.Open exposure, equity, free margin, connection, version, and stop procedure.

Automation makes the rules repeatable, but it does not make the assumptions correct. An EA can repeat an unsuitable rule faster and for longer than a person would. Its decision may also be valid under its code while the resulting trade loses because prices changed, costs widened, or the broker executed differently from the test environment.

What kinds of work can a forex EA automate?

  • Entry and exit automation: open or close positions when its coded market conditions are met.
  • Trade management: modify stops or targets, apply a trailing rule, or manage positions opened through another workflow.
  • Basket or grid management: track several orders and apply collective rules. This can increase open exposure and requires a tested account-level boundary.
  • Hedging logic: open or manage an opposite position on a compatible hedging account. Costs and residual directional exposure still matter.
  • Alerts and analysis: calculate a condition and notify a user without placing a trade.

Grid and martingale EAs deserve extra care. A grid places orders at set price distances, and a martingale rule increases size after losses. Both can grow open exposure quickly, and both can keep losing positions open for a long time. The name alone does not show the maximum exposure, so check the input limits and the worst case in your own test.

A product can combine several categories, so category names are not evidence of its exact behavior. Read its input definitions and observe what it actually does in Strategy Tester and a demo account. Do not infer a hard loss limit from a label such as recovery, protection, hedger, or risk control unless the implementation and failure conditions are documented.

Where does an MT5 EA run?

A manually installed MT5 EA normally appears under the terminal's MQL5/Experts data folder. MQL5 source commonly uses the .mq5 extension, while compilation produces an executable .ex5 file. MetaQuotes' guide to creating Expert Advisors and indicators describes these folders and the F7 compile step. A vendor installer or the MQL5 Market can use a licensed installation workflow instead, so follow the delivery channel rather than moving licensed files between terminals.

The EA must run in the intended broker's desktop terminal or a compatible hosted terminal. It does not run merely because the account is visible in a phone app or browser. If the execution environment must continue after a local computer sleeps or turns off, read the MT5 VPS guide before migrating the setup. A hosted environment improves availability only when it is configured, connected, licensed, and monitored correctly.

Which permissions control an Expert Advisor?

MT5 has a platform-wide automated-trading control and an EA-level permission. Both affect whether a locally attached EA can submit trading operations. Protective settings can also disable automation after an account, profile, chart symbol, or timeframe change. MetaQuotes describes these controls in its Expert Advisor operations documentation, which also notes that only one Expert Advisor can run on one chart.

Treat DLL imports and WebRequest access as separate capabilities, not as routine troubleshooting switches. Enable them only when the trusted, current product documentation identifies the exact dependency or domain and explains its purpose. Record every allowed URL and permission so the configuration can be reviewed after an update or migration.

Why do the broker, symbol, and account type matter?

The broker defines the tradable symbol, contract size, volume range and step, execution mode, sessions, stop levels, margin, and account permissions. Similar labels can still describe different contracts. An EA configured for one broker's XAUUSD symbol is not automatically suitable for GOLD, XAUUSD.a, or another broker's contract.

Position accounting also changes behavior. MetaQuotes explains in its trading operations documentation that a netting account keeps only one common position for a symbol, while a hedging account allows multiple open positions of the same symbol, including opposite positions. An EA that expects independent tickets, baskets, or opposite positions must match the account mode. A hedge can add spread, commission, financing, and margin use; it does not erase an economic loss.

How should you test an MT5 Expert Advisor?

  1. Record the EA name, file, version, source, license, preset, symbol, timeframe, broker server, and account mode.
  2. Run one fixed-input Strategy Tester pass before optimization. Include available costs, execution delay, and account settings.
  3. Inspect orders, balance, equity, drawdown, margin, trade count, consecutive losses, logs, and transaction assumptions rather than final balance alone.
  4. Repeat the same configuration over a later period that was not used to choose the settings.
  5. Observe the same version and inputs on a comparable demo account through entries, exits, restarts, rejected orders, and changing spreads.
  6. Define maximum permitted exposure, equity loss, margin use, unattended time, and the exact procedure for stopping new automated actions. See how to set forex risk limits.

MetaQuotes' Strategy Tester documentation describes the tester as a way to run an EA on historical data before live use. Its settings include tick-generation modes, execution delay modes, commissions, margin, trading limits, and forward-test periods. The MT5 EA installation and testing guide provides the full setup sequence, while the EA evaluation checklist explains out-of-sample evidence, drawdown, costs, and result selection.

A backtest is not a forward test

A backtest uses past data and the modeling choices you select. It can look strong because of curve fitting, optimistic costs, a favorable period, or a setting chosen after many attempts. A forward test on a demo account shows how the same version and inputs behave on data that was not used to choose them, with live spreads and execution. Neither result proves a future live outcome. Treat both as evidence to examine, not as a promise.

What should you monitor while an EA is running?

Check the account and server, terminal connection, EA version, chart symbol and timeframe, active preset, automated-trading state, open and pending orders, balance, equity, free margin, and recent errors. Review both the Experts and Journal tabs. MetaQuotes' platform logs reference explains that the Experts log records application activity while the Journal records wider platform and trade events.

Keep a change log for terminal builds, EA versions, presets, broker symbols, account mode, and hosting changes. After a reconnect, terminal update, VPS migration, profile change, or broker specification change, verify the environment again. If the EA is active but no order appears, follow the MT5 EA not trading checklist before changing its strategy inputs.

Which forex robot claims should you distrust?

Treat guaranteed profit, fixed win-rate, no-loss, risk-free, and effortless-income claims as warning signs. See the red flags in Telegram signal offers. A screenshot, selected trade list, demo balance, or one favorable backtest is not enough to establish a repeatable result. Ask for the complete test conditions, complete equity path, costs, losing periods, current software version, and an explanation of how the program can fail.

The U.S. Commodity Futures Trading Commission warns that generative technology makes it easier than ever to create false images, videos and malicious websites designed to look like financial trading platforms. A polished site, a professional video, or a fast-growing equity curve is a starting point for verification, not evidence of a sound product. Verify the seller, the company, and the software before you pay or install anything.

Forex robot buyer's checklist

  • What exact tasks does this version perform, and which tasks remain manual?
  • Which MT5 terminal, account mode, symbols, timeframes, broker specifications, and permissions does it require?
  • Can it add positions or volume after a loss, and what observed condition stops that behavior?
  • Where are protective orders held: at the broker, in the terminal, or only inside the EA?
  • What happens to open positions and pending orders if the EA, terminal, network, or VPS stops?
  • Can the settings and reported tests be reproduced with the same version and complete costs?
  • What are the total costs, including subscription, spread, commission, swap, and hosting?
  • What are the refund and cancellation terms, and who is the seller named on the invoice?
  • How are updates delivered, documented, tested, and rolled back?
  • Which support evidence is safe to share? Passwords, API keys, private keys, and remote-desktop credentials should never be sent.

When is an EA the wrong tool?

An EA is a poor fit when you cannot describe its rules in writing, cannot monitor it during the hours it trades, or cannot absorb the worst drawdown in your own tests. It is also a poor fit when the strategy depends on news you cannot anticipate and you have no plan for that. Manual analysis or a period of paper trading may suit you better. If you are still learning how orders, margin, and sessions work, read how to start forex trading and what paper trading is before running any automation with real money.

Which YoForex pages describe the available EA products?

YoForex publishes separate product information because the software does not share one universal strategy or configuration. Private EA V1.16 documents a gold-focused XAUUSD workflow and fixed grid spacing. Private EA V3.21 documents its current basket and control settings. The Private EA version comparison lists their visible differences. Dynamic Hedger EA describes a separate position-management and hedging workflow.

Those are first-party descriptions of software behavior, not independent evidence of a future trading result. Match the guide to the exact version, verify the account requirements, and test the observed behavior before considering live use. Use the public resource library to find the current setup and troubleshooting material.

What are the risks?

Leveraged forex and automated trading can lose money quickly. Depending on your broker's terms and your country, losses can exceed the amount you deposited. A backtest or demo result does not guarantee live results. This page is general information, not personal financial advice.

Key takeaways

  • An expert advisor is a program that runs inside a platform such as MetaTrader 5 and follows coded rules.
  • Indicators analyze and display. An EA can trade only when the platform, the EA, and the account all allow it.
  • A forex robot is marketing language for an EA. Its name does not reveal the strategy or the risk.
  • Test on historical data, then forward test on a demo account. Neither result guarantees a live outcome.
  • Be most careful with guaranteed returns, unverifiable track records, and any product that will not explain how it fails.

Frequently asked questions

Is an Expert Advisor the same as AI?

No. An EA is an application category in MetaTrader. It can use fixed rules, indicators, statistical logic, an external service, machine learning, or another method, but the term EA does not prove that artificial intelligence is involved. Ask what inputs and methods the specific program uses.

Is a forex robot the same as an Expert Advisor?

Often, but not always. Forex robot is a broad marketing label. It may refer to an MT5 EA, a bot connected to another platform, or a signal service. Check the actual software, where it runs, and which step places the order.

Can an EA guarantee profitable automated forex trading?

No. A program can enforce its rules, but it cannot guarantee prices, liquidity, spreads, fills, connectivity, broker behavior, or the validity of its strategy. Historical and demo results do not guarantee a future live result.

Does disabling or removing an EA close its trades?

Do not assume it does. Disabling automated trading, removing an EA, closing its chart, or shutting down its terminal can stop future terminal-side management while existing broker positions and pending orders remain. Review the exposure and the product's stop procedure before changing the environment.

Can several Expert Advisors run in one MT5 terminal?

MetaQuotes states that one EA runs on one chart. Multiple EAs can therefore use separate charts, but they can still interact through the same account, symbols, margin, or order identifiers. Test the combined exposure and prevent duplicate copies of the same EA from managing the same trades.

Sources and verification

Primary-source links used for the platform behavior and risk statements in this guide. Sources reviewed 7 November 2026.

  1. MetaQuotes: How to Create an Expert Advisor or an Indicator · Reviewed
  2. MetaQuotes: Expert Advisors and Custom Indicators · Reviewed
  3. MetaQuotes: Basic Principles of Trading Operations · Reviewed
  4. MetaQuotes: Strategy Testing · Reviewed
  5. MetaQuotes: Testing Report · Reviewed
  6. MetaQuotes: Platform Logs · Reviewed
  7. U.S. Commodity Futures Trading Commission: Criminals Increasing Use of Generative SI to Commit Fraud · Reviewed