Quant AI Agents/Manual Guide

EA inputs, made simple

Three fields matter on day one. Everything else ships tuned for XAUUSD on H4 — tweak it later, group by group.

3 fields to startDefaults: XAUUSD · H4

Day one — touch only these

1
Group 1B

Paste your API keys

One key per provider your agents use. On defaults that's OpenAI, Anthropic and Google.

Key guide →
2
Input 2.1

Pick a strategy preset

The built-in strategy the EA starts with. Default: Stoch MR-XAUUSD-H4. Browse more in the Prompt Library.

3
Input 2.2

Auto place orders

Starts false = observe-only. The EA analyses but never trades. Flip to true when you're ready.

All groups at a glance

Beginner Intermediate Advanced Tap a group to open it
Group 1AI Engine — agents & pipeline7 inputs
1.1Technical Analyst AgentGPT-5 miniFirst agent in the pipeline — writes the technical read of the chart.
1.2Bull Analyst AgentClaude Sonnet 4.6Argues for the long side (or the short, in symmetric mode).
1.3Bear Analyst AgentGPT-4oThe counter-arguer — tries to kill the trade idea.
1.4Research Manager (Judge)Gemini 3 ProReads the full Bull-vs-Bear transcript and arbitrates.
1.5Portfolio Manager (Decision)GPT-5The only agent whose output reaches the broker.
1.6Pipeline depthFULLHow much of the 5-agent pipeline runs each cycle.
1.7Debate rounds1How many Bull-vs-Bear exchanges the Judge sees before voting.
Group 1BAPI keys per provider6 inputs
1B.1OpenAI API key(paste)Needed if any agent runs a GPT-5 or GPT-4o family model.
1B.2Anthropic API key(paste)Needed if any agent runs a Claude model.
1B.3Google AI key (Gemini)(paste)Needed if any agent runs a Gemini model.
1B.4DeepSeek API keyoptionalOnly if you point an agent at DeepSeek.
1B.5xAI API key (Grok)optionalOnly if you point an agent at Grok.
1B.6Custom-endpoint keyoptionalOnly used when an agent is set to MODEL_CUSTOM.
Group 1CBackup model (failover)1 input
1C.1Backup AgentGPT-4o miniSteps in when a primary agent's call fails transiently.
Group 2Strategy & Trading7 inputs
2.1Initial prompt at startupStoch MR-XAUUSD-H4The built-in preset the EA loads at startup.
2.2Auto place ordersfalseThe master switch — false is observe-only.
2.3Max open orders3Hard cap on simultaneous open positions for this magic number.
2.4Re-analyze every (minutes)60How often the EA fires the full pipeline.
2.5Magic number202605The tag stamped on every order from this chart instance.
2.6Custom prompts fileeatrading_prompts.txtYour prompt library file inside MQL5\Files.
2.7Allow chart TF ≠ preset TFfalseSafety guard against running a preset off its tuned timeframe.
Group 3Risk Management — lot size3 inputs
3.1Lot modeLOT_MEDIUM_RISKHow position size is computed.
3.2Fixed lot0.01Literal lot value — used only when mode = LOT_FIXED.
3.3Custom risk %1.0Equity % risked per entry — used only when mode = LOT_CUSTOM_RISK.
Group 4Position Averaging — off by default4 inputs
4.1Enable Position AveragingfalseMaster switch — leave off unless you know exactly what DCA does.
4.2Max layers3Max additional entries when price moves against the basket.
4.3Layer spacing (vol-anchored)1.5How far price must travel against the basket before the next layer fills.
4.4Aggregate volume cap (lots)0.10Hard cap on total open volume across all layers.
Group 5Drawdown Protection3 inputs
5.1Daily loss cap (%)3.0Locks the EA out for the rest of the day after this % loss.
5.2Weekly loss cap (%)6.0Same lockout over the rolling trading week.
5.3Equity floor (% of deposit)80.0The HARD HALT — below this % of initial deposit the EA stops everything.
Group 6News Filter1 input
6.1Skip entries around high-impact newstrueRefuses new entries inside the configured window around high-impact events.
i

Want the full story on every input? The complete reference — with "when to change" and "watch out" notes for each field — lives in the full manual.