Skip to content

Module 01 · How an EA works · Lesson 01

What an Expert Advisor is — and is not

A program that follows your written rules inside MetaTrader. It adds discipline and speed; it does not add an edge.

4 minute read

A robot that does exactly what it is told

An Expert Advisor (EA) is a program attached to a chart in MetaTrader 4 or MetaTrader 5. Every time the price changes it can read data, check conditions and send orders to your broker — without you clicking anything.

That is all it is. An EA is your rules, written so precisely that a computer can follow them. If the rules have no edge, the EA executes a rule set without an edge — faster, and without getting tired.

What an EA is good at

Consistency: it never skips a rule because it is bored or frightened. Speed: it reacts in milliseconds. Testability: because the rules are exact, you can replay them over years of history and measure what would have happened.

What it cannot do: know the future, adapt to a market it was not designed for, or notice that your broker changed its spreads. Those stay your job.

MT4 or MT5?

MetaTrader 4 uses the MQL4 language; MetaTrader 5 uses MQL5. They look similar but are not interchangeable: order handling is different, and MQL5 code will not compile in MT4. Everything in EA World, including the builder, uses MQL5 and its standard trade library.

Our position, plainly

MarketPanda teaches the craft. It does not supply strategies, settings that "work", or signals. Any rules you build here are yours, and every test result you see describes the past, not the future.

Takeaways

  • An EA executes rules; it does not create an edge.
  • Exact rules make honest testing possible.
  • MQL5 (MT5) and MQL4 (MT4) code are not interchangeable.
Check your understanding

One-question check

Your manual rules have lost money for six months. What will turning them into an EA most likely do?

Your rules, our teaching. MarketPanda provides no strategy, no settings that “work” and no signals. Everything here is education; nothing is a recommendation to trade.

Content source: Bundled MarketPanda content.