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.
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 instead? Follow the install instructions in your delivery email.
- 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.
- 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 all 7 URLs below, one per line:
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://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 ai.google.dev and sign in with your Google account.
- bClick "Get API Key" — then create and copy the key. No payment method needed for the free tier.
- cPaste it into the EA — in the "Gemini API Key" field, and select a Gemini model in AI Model Selection.
- 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 console.anthropic.com.
- bAdd prepaid credits — under Billing — Anthropic uses a credit balance.
- cCreate a key — in Account Settings → API Keys and copy it.
- 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 — at dashscope.console.aliyun.com.
- bActivate the Qwen API service — in DashScope — a free tier is available.
- cCreate a key — in the API Keys section and copy it.
- dPaste it into the EA — in the "Qwen API Key" field, and select a Qwen model in AI Model Selection.
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. |
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 | ✓ | ✓ |
| 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.