DoIt Alpha Pulse AI.
Five steps to your first AI trade.
You already own the EA. This page gets it installed, connected and trading — then walks you through the v3 features: Portfolio Mode, Prop Firm Mode and AI News Awareness.
Prefer to watch? The whole setup.
From the free demo trial to the first AI decision on your chart: the free Gemini key, the two web addresses and the two fields you fill in. Use the chapters to jump to the step you are on. Every step is written out below too.
Install the EA in MetaTrader 5
You already purchased on MQL5 or doittrading.com — now get it onto a chart.
- aLog in with your MQL5 account — the same one you purchased with. Use your MQL5 username, not your email or broker credentials.
- bFind the EA in the Navigator window under Market → My Purchases. Bought on doittrading.com or using the free trial? Download it from your account at doittrading.com and copy it into MQL5 → Experts (File → Open Data Folder), and the two .set files into MQL5 → Presets. Then right-click Expert Advisors in the Navigator and click Refresh.
- cDrag it onto any chart of the symbol you want to trade (M15 recommended). In Portfolio Mode one chart drives up to 5 symbols — see the Portfolio Mode guide. Got it from doittrading.com or the free trial? In the Inputs tab, type your license email (the email of your trial or purchase) in the License Email field.
- dEnable algo trading in both places: the Algo Trading toolbar button must be green, and “Allow Algo Trading” must be checked in the EA's settings window.
Allow the AI connections
MT5 blocks external connections by default. The EA cannot work without this step — it's the #1 cause of “AI isn't trading” issues.
- aIn MT5, open Tools → Options → Expert Advisors.
- bCheck “Allow WebRequest for listed URLs”.
- cAdd the URLs below, one per line.
https://doittrading.com https://api.openai.com https://api.anthropic.com https://generativelanguage.googleapis.com https://api.x.ai https://api.deepseek.com https://dashscope-intl.aliyuncs.com https://api.typesafe.ai https://api.xiaomimimo.com https://api.meta.ai https://nfs.faireconomy.media
- dClick OK and restart MetaTrader 5.
Get your API key
You need one API key from one provider — pick below to see only the instructions that apply to you. You can add more providers anytime.
- aOpen Google AI Studio — at aistudio.google.com/apikey, sign in with the Google account you already use (Gmail or YouTube) and accept the terms.
- bCreate the key — the first time you sign in, Google creates a project and a key for you, already on the page. If not, click "Create API key", pick a project (no project yet? create one under Projects first), click "Create key" and copy it. New accounts start on Google's free tier.
- cPaste it into the EA — in the "Gemini API Key" field. AI Model Selection already says Gemini 4 Hydrogen: leave it as it is.
- aCreate an account — at platform.openai.com.
- bAdd a payment method — under Billing settings — OpenAI charges per usage.
- cCreate a secret key — in the API Keys section and copy it immediately (it is shown only once).
- dPaste it into the EA — in the "OpenAI API Key" field, and select an OpenAI model in AI Model Selection.
- aSign up — at platform.claude.com.
- bAdd prepaid credits — under Billing — Anthropic uses a credit balance.
- cCreate a key — on the API keys page ("Create key") and copy it. It starts with "sk-ant-".
- dPaste it into the EA — in the "Claude API Key" field, and select a Claude model in AI Model Selection.
- aCreate an xAI account — at console.x.ai.
- bAdd credits — under Billing.
- cCreate a key — in the API Keys section and copy it.
- dPaste it into the EA — in the "Grok API Key" field, and select a Grok model in AI Model Selection.
- aCreate an account — at platform.deepseek.com.
- bAdd credits — under Billing — DeepSeek is extremely affordable.
- cCreate a key — in the API Keys section and copy it.
- dPaste it into the EA — in the "DeepSeek API Key" field, and select a DeepSeek model in AI Model Selection.
- aCreate an Alibaba Cloud account — and open Model Studio (the button below opens Alibaba's own steps).
- bActivate the Qwen API service — in Model Studio. A free tier is available.
- cCreate a key — on the API Key page ("Create API Key") and copy it. It starts with "sk-".
- dPaste it into the EA — in the "Qwen API Key" field, and select a Qwen model in AI Model Selection.
- aCreate an account — at platform.xiaomimimo.com and add balance (pay as you go).
- bCreate a pay-as-you-go key — on the Console → API Keys page. It starts with "sk-" and is shown only once, so copy it right away. Token Plan keys ("tp-") are a separate product and do not work here.
- cPaste it into the EA — in the "Xiaomi MiMo API Key" field, and select a MiMo model in AI Model Selection.
- aCreate a developer account — at dev.meta.ai and add a payment method.
- bCreate an API key — in your developer account and copy it.
- cPaste it into the EA — in the "Meta Muse API Key" field, and select a Muse model in AI Model Selection.
- aRequest access — at console.typesafe.ai. Jev is in early access and signups can be full.
- bCreate an API key — in the TypeSafe console and copy it.
- cPaste it into the EA — in the "Jev (TypeSafe) API Key" field, and select "Jev by TypeSafe" in AI Model Selection.
- aStart a local AI server — with a model loaded: Ollama, LM Studio, llama.cpp or Colibri.
- bAllow its address — in the WebRequest list (Step 2), written with 127.0.0.1, for example http://127.0.0.1:11434 for Ollama.
- cSet it in the EA — AI Model Selection = Local AI Server, then fill Local AI Server URL and Local AI Server Model (the exact name your server lists). No API key needed.
Choose a strategy engine
v3 replaced the old library of 14 symbol presets with 3 analysis engines you combine with independent options. Fewer things to choose, more real combinations — and every engine works on any symbol. Set it in the Strategy Preset input (section 1, top of settings).
- +Trade Direction (inputs section 1): Both / Long Only / Short Only. Locks the prompt (the AI is told the forbidden side does not exist) AND the EA (entries on that side are discarded even if suggested).
- +Prop Firm Mode ON (inputs section 6): automatically layers the Prop Survival overlay onto whatever engine you chose — see the Prop Firm Mode guide.
- +Custom prompt file (inputs section 7): still supported; the Direction and Prop overlays apply on top of it too.
Set your risk and go live
The inputs are organized as a top-to-bottom setup wizard in 8 numbered sections. Only five settings are required — everything else has sensible defaults.
Portfolio Mode — multi-symbol AI
One chart, one EA, up to 5 symbols analyzed together in a single AI request per cycle. The AI sees all markets side by side — correlation between pairs, relative strength, which setup is cleanest — and returns one decision per symbol plus a cross-market reasoning summary on the panel.
- 1Attach the EA to ONE chart — any of the portfolio symbols, M15 recommended.
- 2Pick the Portfolio Edge Allocator strategy preset — the engine built for multi-symbol allocation. Other engines work too, but they analyze symbols without the book-level layer.
- 3Set Portfolio Symbols — comma-separated, 2 to 5 symbols, e.g. EURUSD,GBPUSD,USDJPY. Empty = classic single-symbol mode.
- 4Optionally set Max Total Open Risk Across Symbols (% of balance, 0 = off). New entries are skipped while the combined open risk exceeds the cap.
- 5Or just load FactoryPresets/Portfolio_Forex_Majors.set and add your API key.
- ·Symbols must exist in Market Watch and allow trading — invalid ones are skipped with a log line (broker suffixes like .raw matter).
- ·Each symbol trades with its own magic number (base + slot index) — positions are managed independently.
- ·Only ONE EA instance per portfolio. Don't attach the EA to the other symbols' charts too.
- ·In the Strategy Tester, portfolio mode is disabled automatically (the tester is single-symbol).
Prop Firm Mode — FTMO & similar
Account-level protection for prop firm challenges, enforced by the EA before the prop firm's servers can breach you — plus the same limits injected into the AI prompt every cycle so the AI trades the remaining budget, not blind. Per-firm setup guides: doittrading.com/prop.
| Protection | Input | FTMO example |
|---|---|---|
| Daily loss limit | Daily Loss Limit Mode + Value | 4.5% (buffer under the official 5%) |
| Max overall loss (permanent stop) | Max Overall Loss Mode + Value | 9% (buffer under 10%) |
| News blackout | News Blackout ±Minutes | 2 (funded-account rule) |
| Weekend flat | Close EA Positions Before Weekend | ON, Friday 21:00 broker time |
| Trade randomization | Randomize SL/TP ±5% | ON (anti copy-trading detection) |
- ·Daily loss is measured from your balance at 00:00 broker time. When hit, the EA flattens the whole account (all positions and pending orders, not just its own) and blocks trading until midnight. The stop flag is shared across every EA instance on the account.
- ·Max overall loss is measured from the challenge initial balance (set Challenge Initial Balance, or leave 0 to auto-snapshot on first run). This stop is permanent — it does not reset at midnight. A breached challenge is over; the EA makes sure you keep the account flat.
- ·Use values below the official caps (4.5%/9% vs FTMO's 5%/10%): floating spreads and slippage mean you must stop before their servers do.
The blackout blocks new entries ±N minutes around high-impact events on the symbol's currencies. The News Source input picks the source: Auto (default: MT5 calendar → ForexFactory feed → manual file, first one with data wins) or force a single source.
The Prop tab lists upcoming events of ALL impacts — [H] [M] [L] — and shows which source is live plus the next 3 events. The Blackout Trigger Impact input controls which impacts actually BLOCK entries: High only (default, the FTMO rule), High+Medium, or All.
ForexFactory feed: the EA downloads the public weekly calendar, converts times to your broker's clock and caches the week locally. It needs the https://nfs.faireconomy.media whitelist from Step 2.
Manual file — some brokers serve no calendar, and you may prefer your prop firm's official restricted-events list. Create MQL5\Files\AlphaPulse_NewsFallback.csv, one event per line in broker time (optional 4th column H/M/L; missing = High; # lines are comments). Keep it updated weekly:
2026.07.14 14:30;USD;CPI 2026.07.16 12:15;EUR;ECB Rate Decision;H
With Randomize SL/TP ±5% enabled, every fresh AI signal gets its stop loss and take profit distances jittered by up to ±5% (never below 50% of the original distance, never flipping sides). Two customers running the same configuration at the same prop firm will place measurably different orders — this defeats copy-trading detection. The jitter is applied once per AI response, so the panel, the logs and the executed order always show the same values. Position management is never randomized.
There is no separate “prop preset”: turning Prop Firm Mode on automatically layers challenge discipline onto whatever strategy engine you use. The overlay teaches the AI that the loss caps make risk asymmetric — the required setup quality RISES as budget is consumed — and forbids lowering the bar to “win back” losses. Two data feeds power it, injected into every AI request: the loss budget (daily and total loss used vs limit), and phase awareness — if you also set Stop EA When Profit Target Reached + the target amount, the AI sees its progress toward the challenge target and adapts: normal operation early, protection mode when the pass is nearly secured, no new entries once it is reached.
Independently of the AI, the EA scales the position size to the remaining budget: one trade may risk at most half of the remaining daily budget and a quarter of the remaining total budget. Example (FTMO 4.5% daily): after losing 3% in a day, the next entry risks at most 0.75% even if your Risk Per Trade says 1%. When no meaningful size keeps a margin to the caps, new entries pause until the budget recovers — position management and trailing keep running.
AI News Awareness — context, not compliance
With AI Sees Economic Calendar enabled (inputs section 4, default ON), every AI request includes the upcoming economic events on the traded symbols' currencies — time-to-event, currency, impact. The AI decides on its own whether to enter now or wait (“CPI in 20 minutes — no entry, tightening the stop on the open position”). This never blocks anything by itself. The hard news blackout (Prop Firm Mode) remains a separate, optional protection.
| Panel shows | Meaning |
|---|---|
| News: USD CPI y/y.. in 32m [H] | Next relevant event with countdown and impact. Gold when a blocking event is under 1h away — the AI is likely holding fire. Full event list on the Prop tab. |
| News: BLACKOUT USD (AI paused) | Hard blackout active (Prop Firm Mode). (AI paused) = the EA is also skipping AI calls because nothing is executable: every symbol blocked AND no position open. Zero tokens wasted; queries resume the moment the window ends. |
| News: NO DATA (see Prop tab) | Red — fix it: no news source is delivering data. Add nfs.faireconomy.media to the WebRequest list (Step 2) or maintain the manual CSV. Until then the AI trades without news context and any configured blackout is NOT enforced. |
| News: clear 26h | Source alive, nothing relevant coming up. |
Local AI Server: your own AI, no API bill
Run the AI on your own computer instead of a paid API. Alpha Pulse talks to any server that speaks the OpenAI chat format, such as Ollama, LM Studio, llama.cpp (llama-server) or Colibri. No API key and no API bill: the cost is your hardware and electricity.
- aInstall your server, load a model and start it. Usual addresses: Ollama http://127.0.0.1:11434, LM Studio http://127.0.0.1:1234, llama.cpp http://127.0.0.1:8080, Colibri http://127.0.0.1:8000.
- bAdd the address to the WebRequest list (Step 2) exactly as you will type it in the EA, written with 127.0.0.1: MetaTrader does not accept localhost.
- cSet the EA inputs: AI Model Selection = Local AI Server, Local AI Server URL = your address (pasting it with /v1 or the full endpoint is fine, the EA keeps only the address), Local AI Server Model = the model name exactly as your server lists it.
- dAttach the EA. The Experts log shows Local AI Server (EXPERIMENTAL) and, after the first analysis, the panel shows the decision.
- ·60 seconds per answer. Each analysis sends about 2,700 tokens of market data (more in Portfolio Mode) and waits up to 60 s, like every provider. While it waits the EA is paused, Prop Firm protection included, so the model must answer well inside that time: in practice a model that fits in your GPU. CPU-only setups and very large models read from disk usually take minutes and time out.
- ·Context length. The whole request must fit the server's context window. Some servers start with a short default: set at least 8192 tokens (more for Portfolio Mode) in your server's settings.
- ·Your computer must stay on while the EA runs. A small VPS without a GPU cannot run a useful model.
- ·If MetaTrader still refuses the address after step b, set your server to listen on port 80 and use http://127.0.0.1.
- ·Cost and fallback. Local calls count as $0, so Max Daily API Cost only limits paid models. A paid model can be the fallback of the local one (or the other way round): if the local server is down or keeps timing out, the EA switches after the configured errors.
- ·The free trial uses the listed cloud models only.
One-click report, hard cost ceiling
Everything you need to audit performance and keep the AI bill predictable.
One click on EXPORT (top-right of the RETURNS card) writes a self-contained HTML dashboard to MQL5\Files\DoItAlphaPulseAI_Reports\ and pops the path. It covers every closed trade of this EA's magic numbers — all history, all symbols: net PnL, trades, win rate, profit factor, max drawdown in money, average win/loss, best/worst trade, cumulative PnL curve, monthly PnL chips and a collapsible trade list. In portfolio mode you get one additional card per symbol. PnL includes swap and both-side commissions; the file opens in any browser with no internet connection.
- ·Max Daily API Cost ($) is a hard ceiling. The EA tracks real usage tokens reported by the provider (not estimates). When the budget is reached it stops querying and alerts you — it never silently degrades to a cheaper model.
- ·Scope: the budget is tracked per chart + model (symbol, magic number and model form the counter). Several charts, or a fallback model kicking in, each get their own counter — size the limit accordingly.
- ·The panel shows the running daily cost. Costs reset at midnight.
- ·v3 sends leaner requests and enables provider-side prompt caching where available (Claude 1h cache, OpenAI/Gemini automatic) — same analysis quality, fewer billed tokens per query.
FREE vs Full
The Full edition is the one sold on MQL5 and doittrading.com.
| Free | Full | |
|---|---|---|
| Single-symbol AI trading | ✓ | ✓ |
| All AI providers, your API key | ✓ | ✓ |
| Local AI Server (experimental) | ✓ | ✓ |
| One-click HTML performance report | ✓ | ✓ |
| Portfolio Mode (up to 5 symbols) | — | ✓ |
| Prop Firm Mode | — | ✓ |
| AI News Awareness | — | ✓ |
AI isn't trading? Check these in order.
90% of cases are #1 or #2.
Hard questions, direct answers
The setup we actually run
Broker, funded program and VPS behind our own live results — the same stack this guide assumes.
Affiliate links — using them supports DoIt Trading at no cost to you.