GLOSSARY · METATRADER

What is magic number?

A magic number is an integer an EA stamps onto every order it places, allowing it to identify its own positions and ignore trades opened manually or by other robots.

What it means

Without one, an EA managing "all open positions on this symbol" would also manage your manual trades, and two EAs on the same symbol would fight over each other's positions. The magic number is what makes several systems able to share an account safely.

Why it matters

It must be unique per EA per account. Running two copies of the same EA on different symbols with the same magic number is a common misconfiguration, and the symptom is bizarre — positions being closed by an instance that did not open them.

What this changes in practice

Ours is 202401, and it is the mechanism by which the engine detects which of its own trades have closed and records the result to the performance tracker. That tracker is what drives strategy selection, so a magic number collision would corrupt the tournament rather than merely confusing the trade list.

Related terms

Full glossarySee the gold bot →

Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-08-11.