Execution & tools

Expert Advisor (EA)

A programme used in MetaTrader to automate analysis or trading according to coded rules. Automation can make execution consistent, but does not establish profitability. Test data, order simulation, costs, position sizing and failure handling all matter; a smooth backtest or claimed modelling-quality percentage is not proof of a safe strategy.
Example. An EA may reproduce a rule exactly and still lose because the rule has no durable edge, trading costs rose, or live fills differ from the simulator. Treat a backtest as a model to investigate, not a promise.

Test the implementation as well as the idea

Check the specific platform and tester version, tick or bar modelling, spread, commission, financing, order rules and available history. Simulated intrabar paths and missing data can change results. A claimed modelling-quality percentage does not establish realistic execution.

Operational safeguards

Test rejected orders, disconnects, duplicate signals, restart state and position limits. Record the EA version and inputs so results can be reproduced. Performance-dependent sizing, including martingale or grid variants, needs explicit stress testing; no finite account can support unlimited escalation.

Unseen data remains essential

Keep final validation data separate from optimisation. Demo or small-scale forward observation can expose implementation problems, but neither a demo nor a historical track record guarantees future returns. Capital requirements cannot be inferred from a fixed multiple of the worst historical loss.

FAQ

Does a high modelling-quality score prove an EA is profitable?

No. It does not validate the rule, costs, executable path or performance on unseen data.

What should happen after an EA restarts?

It should reconcile orders and positions, restore its documented state and prevent duplicate entries before resuming.

← Back to the full glossary

Jarosław Wasiński

Editor-in-chief, ForexMechanics.com • Macro & FX analyst

Independent analyst and practitioner with over 20 years of experience in financial markets. Actively involved in Forex since 2007, with a focus on fundamental analysis, OTC market structure, and disciplined capital risk management.

  • Creator and editor-in-chief of MyBank.pl, providing reliable financial education since 2004.
  • Author of hundreds of in-depth market commentaries, structural analyses, and educational materials for traders and investors.
  • Advocate for market transparency, promoting education grounded in hard data and institutional reports (BIS, ESMA, CFTC).

All content is educational and informational only – it does not constitute investment advice or a recommendation. Remember: leveraged trading (Forex/CFD) carries a high risk of rapid capital loss.