Setup guide & input reference

Install the Supervisor. Tune the inputs. Trust it in stages.

The complete AI Agents Supervisor v1.0 setup manual. The Supervisor is a portfolio risk guardian — it watches your other EAs and steps in to protect the account; it does not open its own trades. Part 0 gets you from "I just downloaded the EA" to "running on a chart" — MT5 install, WebRequest whitelist, first-run check. Part 1 explains how it works: the Shadow → Approve → Live trust ladder, what it watches, the risk guardrails, and the control actions it can take. Part 2 documents every one of the 15 inputs across 4 groups. The same text also lives inline inside the MT5 input dialog.

~10 min setup Getting started + how it works 15 inputs · 4 groups Default mode: Shadow One instance · whole account
Part 0 · A

Install the Supervisor in MT5

From "I just downloaded AI Agents Supervisor.ex5" to "watching the account" in a few small moves. You only ever need one instance — it supervises every EA on the account, not just the chart it sits on.

  1. Open the MT5 Data Folder

    In MetaTrader 5: File → Open Data Folder. A Windows Explorer window opens at %APPDATA%\MetaQuotes\Terminal\<hash>\.

  2. Drop the .ex5 into MQL5\Experts

    Copy AI Agents Supervisor.ex5 into MQL5\Experts. Upgrading? Overwrite the old file — MT5 uses the new binary on the next chart attach.

  3. Restart MT5 (or refresh the Navigator)

    Close and reopen MT5, OR right-click Navigator → Expert Advisors and pick Refresh. AI Agents Supervisor should now appear.

  4. Drag it onto any one chart

    Open any chart — the symbol and timeframe don't matter, because the Supervisor watches the whole account, not the chart. A spare EURUSD H1 chart is fine. Drag the EA on; the Inputs dialog opens. Paste your AI key (Group 2), pick your model (Group 1), and leave Execution mode on Shadow for now (Group 3). See Part 2 for every field.

    • Tick Allow Algo Trading on the Common tab.
    • Leave WebRequest URLs empty for now — the next step adds them.
  5. Turn on AutoTrading

    Click the AutoTrading button in the toolbar (it turns green). In Shadow mode the Supervisor still won't touch the broker — AutoTrading only matters once you graduate to Approve or Live.

  6. Check the Experts tab

    Open Toolbox → Experts (Ctrl+T). On a healthy first run you should see the Supervisor list the magics it discovered on the account and confirm its mode. Anything starting with SETUP INCOMPLETE or ERROR — jump to First-run check.

i

One Supervisor per account. Do not attach it to multiple charts. With Target mode on Whole account (the default) it auto-discovers every magic number trading on the account — a second instance would just duplicate the work and the alerts.

Part 0 · B

Allow these websites in MT5 (WebRequest)

MT5 blocks every outbound HTTP request by default. The Supervisor calls your AI provider to reason about each EA, so MT5 needs an explicit allowlist before that works. One-time setup, ~60 seconds.

  • Where MT5 → Tools → Options → Expert Advisors tab.
  • Tick "Allow WebRequest for listed URL", then add the endpoint for every provider you actually use:
  • https://api.openai.com — if any agent runs on GPT (Group 1).
  • https://api.anthropic.com — if any agent runs on Claude.
  • https://generativelanguage.googleapis.com — if any agent runs on Gemini.
  • https://api.deepseek.com — if any agent runs on DeepSeek.
  • https://api.x.ai — if any agent runs on Grok (xAI).
i

Only the providers you selected in Group 1 need to be whitelisted. If all your agents run on one provider, you only add one URL. You can come back and add more later if you switch models.

Part 0 · C

First-run check

Two quick signals tell you the Supervisor is alive and watching.

  1. The Experts tab lists your EAs

    On a healthy start the Supervisor prints the magic numbers it discovered on the account and the execution mode it's running in. If you see your other EAs listed and the mode reads SHADOW, it's working.

  2. The on-chart status panel

    The Supervisor draws a status comment in the chart's top-left corner so you can confirm at a glance that it's running and which mode it's in. This is your quick health check between log reads.

SETUP INCOMPLETE in the Experts tab means a model you picked in Group 1 has no matching key in Group 2. Paste the key for that provider and re-attach the EA. Nothing runs until every selected model has its key.

Part 0 · D

API Setting — get your keys in five minutes

The Supervisor is BYOK — bring your own key. Your two model picks in Group 1 decide which providers you need; if both sit on the same provider, one key is all you fill.

  1. Check which providers your models use

    Open the EA inputs → Group 1. The Main AI model (1.1) and the Decision model (1.2) each belong to one provider. Same provider on both → one key. Different providers → one key each.

  2. Create the key at the provider

    Each one takes about two minutes: sign up, open the key page, click create, copy the key immediately (most providers show it only once).

  3. Paste it into Group 2

    Inputs dialog → Group 2 "API Keys" → paste the key into the field matching its provider — no spaces, no line breaks.

    See Group 2 — every key field explained
  4. Allow the provider URL, then verify

    Whitelist the endpoint in Tools → Options → Expert Advisors — the URL list is in Part 0 · B above. Then run the First-run check: once every selected model has its key, the SETUP INCOMPLETE message is gone and the Supervisor starts its watch cycle.

i

Your keys stay with you. They live in the EA's input fields inside your MT5 terminal and are sent only to the provider endpoint you whitelisted — they are not uploaded to eatrading.ai.

Part 1 · 01

The Shadow → Approve → Live ladder

The single most important setting is Execution mode. It is a trust ladder, not a switch — you climb it only after the Supervisor has earned it on your account.

  1. Shadow — watch only (start here)

    The Supervisor runs the full analysis and logs exactly what it would do, but never touches the broker. Leave it here for at least a week. Read the log against what your EAs actually did — this is how you learn to trust (or distrust) its judgement at zero risk.

  2. Approve — ask first

    The Supervisor proposes an action and waits for your manual approval before anything reaches the broker. Good for the middle phase: you stay in control of every intervention while the Supervisor does the watching and the thinking.

  3. Live — auto-execute (must be earned)

    The Supervisor acts on its own decisions in real time. Only move here once Shadow and Approve have given you weeks of evidence that its interventions help rather than hurt. AutoTrading must be on.

i

There is no shortcut. Shadow costs you nothing but the API calls and gives you the complete decision trail. Treat the climb as mandatory — an unsupervised "Live from day one" defeats the entire point of a guardian.

Part 1 · 02

What it watches — and how it controls

By default the Supervisor watches every EA on the account. How firmly it can intervene depends on whether the target speaks its control protocol.

Whole account vs. specific magics

With Target mode on Whole account (default), it auto-discovers every magic number trading on the account — no list to maintain. Switch to Specific magics only when you want it to ignore everything except the EAs you name.

Cooperative vs. broker-side control

Cooperative — gentle, in-EA

Magics you list in AI Gold EA magics are EAs that understand the Supervisor's commands. Here it can act gently: pause new entries, scale lot size down, lock direction — the EA keeps managing its open trades, it just follows the Supervisor's risk lead.

Broker-side — blunt, last resort

Magics you list in Other EA magics are third-party EAs that don't speak the protocol. The Supervisor can only act at the broker level — close positions or tighten stops. It cannot stop the other EA's logic, so a force-close may simply be re-opened. Use this for EAs you want a hard safety net around, and watch the result.

Part 1 · 03

Risk guardrails

The guardrails in Group 4 are account-wide hard limits. They apply across every watched EA at once, regardless of execution mode — even in Shadow the Supervisor measures the account against them and logs every breach.

  • Daily loss cap — once the account is down this % on the day, the Supervisor moves to protect (pause entries / close, depending on mode). Default 3%.
  • Weekly loss cap — the same idea over the rolling week. Default 6%.
  • Equity floor — a hard line. Below this % of your starting equity the Supervisor stops the account trading. Default 80%.
  • News blackout — pauses around high-impact news so an EA doesn't get caught in a spike. On by default.
i

A monthly cap and a margin-level guard run as always-on internal backstops underneath these visible knobs. The four inputs above are the ones you tune; the deeper safeties stay on.

Part 1 · 04

The control actions

When the AI decides an EA needs reining in, it issues one of a small, fixed vocabulary of commands. Knowing them makes the Shadow-mode log easy to read.

  • Pause — stop the target opening new entries; existing trades keep running.
  • Resume — lift a pause.
  • Scale lot — multiply the target's lot size (e.g. cut to 0.5× in elevated risk).
  • Direction lock — restrict the target to long-only, short-only, or release back to both.
  • Force close — close all of the target's open positions. The blunt instrument — the only one available for broker-side (third-party) EAs.
  • Tighten SL — pull stops in to a tighter ATR distance to cap downside on open trades.

Read the log first. In Shadow mode every one of these appears as "would have" lines with the AI's reasoning attached. That trail is your evidence base before you ever climb to Approve or Live.

Part 1 · 05

Common errors

Six symptoms cover most "it's not working" reports. The Experts tab (Ctrl+T) tells you which one you hit.

Symptom Cause Fix
Log: SETUP INCOMPLETE A model selected in Group 1 has no matching key in Group 2. Paste the missing key and re-attach. Part 0 · D walks through getting each key.
Log: error 4014 on WebRequest The provider's URL is not whitelisted in MT5. Tools → Options → Expert Advisors → add the URLs from Part 0 · B, then re-attach.
HTTP 401 / 403 from the provider Key invalid, revoked, or pasted with stray spaces / line breaks. Re-copy the key from the provider console into the matching Group 2 field.
HTTP 429 — rate limit Too many calls on one key: a free-tier limit, or other apps sharing the key. Drop Analysis depth to Fast, step up the provider tier, or move one seat to another provider.
Experts tab lists no magics No EAs are currently trading, or Target mode is on specific magics with a wrong list. Confirm your other EAs are running, then check What it watches — switch to Whole account or fix the magic list.
Actions never fire in Approve / Live AutoTrading toolbar button is off, or Allow Algo Trading is unticked on the Common tab. Enable both, then re-check. In Shadow mode this is expected — Shadow never touches the broker.
Part 2

Settings reference — all 15 inputs across 4 groups

Type, default, when to change, and what to watch out for — every Supervisor input in v1.0. The same info also lives inline inside the MT5 input dialog.

Quick start — for a first run you only need to touch three fields: paste your AI key into 2.x matching the model in 1.1, keep 3.1 Execution mode on Shadow, and set your loss caps in Group 4. Everything else auto-discovers.
Difficulty
15 of 15
No inputs match your filters.

Try clearing the search or switching the difficulty chip back to All.

Group 1

AI Engine — the models that do the reasoning

The Supervisor runs a small panel of AI agents — a Technical Analyst, a Bull, a Bear, and a Research Manager that arbitrates — plus a Portfolio Manager that makes the final call. One pick (1.1) drives the analysis panel; a separate pick (1.2) seats the decision-maker, so you can keep analysis cheap and spend on the seat that matters. Depth (1.3) is your cost-vs-thoroughness lever.

1.1 Main AI model enum GPT-4o mini

Drives all of the analysis agents (Technical Analyst, Bull, Bear, Research Manager). One pick sets them all. Options span OpenAI (GPT-5.5 down to GPT-4o mini), Anthropic (Claude Sonnet / Opus 4.6), Google (Gemini 3 Pro / Flash), plus optional DeepSeek and xAI tiers. A value-tier model is fine here — these agents describe and debate, they don't carry final authority.

When to change

Keep a value-tier model (GPT-4o mini, Gemini 3 Flash) for everyday watching. Promote to a frontier model only if you find the analysis is misreading your EAs' situations. Whatever you pick, whitelist its provider URL (Part 0·B).

1.2 Decision model (Portfolio Manager) enum GPT-4o mini

The only seat whose output becomes a control action. It reads the analysis panel and the live account state, then decides whether to pause, scale, lock, close, or do nothing. A flagship model is recommended here — this is the judgement call that protects your account.

Watch out

This is the highest-leverage model choice. Leaving it on a value tier to save cost is the riskiest cut you can make — the decision seat is exactly where you want the strongest reasoning. Consider GPT-5.5, Claude Opus 4.6, or Gemini 3 Pro.

1.3 Analysis depth enum Balanced

One beginner-friendly knob for how hard the panel thinks each cycle. Fast = 3 agents, no debate (cheapest). Balanced = 5 agents (recommended). Thorough = 5 agents plus a Bull-vs-Bear debate round (deepest, most tokens).

When to change

Stay on Balanced for most accounts. Drop to Fast if you're cost-sensitive and watching simple EAs; raise to Thorough when you supervise high-stakes or correlated EAs where nuance pays for itself.

Group 2

API Keys — fill the one you use

One key per provider you actually selected in Group 1. The Supervisor inspects your model picks at startup and refuses to run if a selected model's matching key is empty — the Experts tab prints SETUP INCOMPLETE until you paste it. If both your models are on the same provider, you only fill one field.

2.1 OpenAI key string empty

Required when an agent in Group 1 runs on a GPT model. The key starts with sk-.

Get key https://platform.openai.com/api-keys
Whitelist https://api.openai.com
2.2 Anthropic key string empty

Required when an agent runs on a Claude model.

Get key https://console.anthropic.com/settings/keys
Whitelist https://api.anthropic.com
2.3 Google key string empty

Required when an agent runs on a Gemini model.

Get key https://aistudio.google.com/app/apikey
Whitelist https://generativelanguage.googleapis.com
i

Other models in the dropdown. Group 1 also lists DeepSeek (Chat · Reasoner), xAI Grok (4 · Fast) and Custom. They call real endpoints — https://api.deepseek.com (key at platform.deepseek.com), https://api.x.ai (key at console.x.ai), or any OpenAI-compatible URL for Custom — but their key fields are hidden in this build. Picking one of those models needs its key enabled in the EA source first; the three fields above (OpenAI / Anthropic / Google) are the ones exposed in the MT5 panel.

Group 3

Supervisor Mode — what it does and who it watches

This group decides how much authority the Supervisor has (3.1), which EAs it watches (3.2), and how firmly it can act on each (3.3 / 3.4). Start conservative: Shadow mode, whole-account watch, no magics listed. Add specifics only once you know what you want.

3.1 Execution mode enum Shadow

The trust ladder. Shadow = log only, never touches the broker (start here). Approve = proposes actions and waits for your manual OK. Live = auto-executes its own decisions. See Part 1·01 for the full progression.

Watch out

Do not start on Live. Run Shadow for at least a week and read the decision log before granting any real authority — Live "must be earned" on your own account, not assumed.

3.2 Target mode enum Whole account

Whole account auto-discovers every magic number trading on the account — no list to maintain (recommended). Specific magics tells it to watch only the EAs you name in 3.3 / 3.4 and ignore everything else.

When to change

Switch to Specific magics only if you run EAs on this account that you deliberately want the Supervisor to leave alone.

3.3 AI Gold EA magics string empty

A comma-separated list of magic numbers for EAs that speak the Supervisor's control protocol (the eatrading.ai AI Gold family). On these it can act gently — pause entries, scale lot, lock direction — while the EA keeps managing its own trades. See Part 1·02.

When to change

Leave empty if you only run third-party EAs. Fill it with the magics of your cooperative EAs to unlock the gentle, in-EA controls instead of blunt broker-side ones.

3.4 Other EA magics string empty

A comma-separated list of magic numbers for third-party EAs that don't understand the protocol. The Supervisor can only act broker-side here — close positions or tighten stops. It cannot stop the other EA's logic, so a force-close can be re-opened.

Watch out

Broker-side control is a safety net, not a leash. After a force-close, confirm in Shadow that the target doesn't immediately re-enter — if it does, the net only holds for a moment.

3.5 Magic number int 202605

The Supervisor's own identifier, used to tag its actions and avoid confusing itself with the EAs it watches. The default is fine for almost everyone.

When to change

Only change it if it happens to collide with a magic already used by one of your other EAs on the same account.

Group 4

Risk Protection — the account-wide guardrails

Hard limits the Supervisor enforces across every watched EA at once. They are measured in every mode — even Shadow logs each breach — so you can calibrate them safely before granting real authority. See Part 1·03.

4.1 Daily loss cap (%) double 3.0

Once the account is down this percentage on the day, the Supervisor moves to protect it — pausing entries or closing, depending on mode. A standard prop-style daily limit.

When to change

Match it to your own risk tolerance or your prop firm's daily rule. Tighter (e.g. 2.0) for conservative accounts; looser only if you genuinely accept the swing.

4.2 Weekly loss cap (%) double 6.0

The same protection over the rolling week. Catches a slow bleed that no single day trips. Keep it a multiple of your daily cap so one bad day doesn't instantly hit the weekly line.

4.3 Equity floor (%) double 80.0

The hard line. If account equity falls below this percentage of its reference, the Supervisor stops the account trading entirely. Your last line of defence against a runaway day.

Watch out

Set this above the level that would breach your broker's or prop firm's maximum drawdown — the floor should stop you before the account does.

4.4 News blackout bool true

When on, the Supervisor pauses activity around high-impact news so an EA doesn't get caught in a spike. It defaults to watching the major currencies and the highest-importance events.

When to change

Leave it on unless you specifically run a news-trading EA that you want to handle its own event risk.