Describe your strategy.
Get a real MetaTrader 5 Expert Advisor.
EA Builder turns plain English into clean, compilable MQL5. A pre-built, already-tested trading engine does the heavy lifting. The AI only wires in your rules, and the build is verified to compile. You keep the source.
Understands plain English. E.g. “London ORB, FTMO rules, 2R target”
Gold trend pullback at London open, FTMO rules, 1% risk, ATR trailing.
Built a trend-pullback engine on XAUUSD · H1. EMA stack with an RSI dip trigger, 0.5% risk, ATR stop, and the FTMO guard. Review the blueprint, then export.
Specific, honest numbers. Not round marketing claims.
Two ways trader-built robots break, and a third path
You have probably already been burned by one of these.
Marketplace robots ship as encrypted .ex5 binaries you cannot read, often wrapped around a curve-fit backtest. You run code you can't inspect. The other failure mode is the new one: you ask ChatGPT to "write me an EA", and it hands back MQL5 that won't compile, calls functions that don't exist, or contains order logic that is silently wrong. EA Builder is the third path. The trading engine is written once, by humans, and already tested. The AI is never allowed to write the whole robot. It only edits a validated configuration and fills small, isolated functions. It cannot hallucinate a broken order loop, because it never writes the order loop.
Black-box .ex5
Black-box .ex5 robots: you can't read them, can't trust them, can't fix them
"ChatGPT wrote my EA"
"ChatGPT wrote my EA": uncompilable code, invented functions, broken order logic
EA Builder
EA Builder: the AI only tunes a tested engine, and the build is verified to compile
From plain English to a compilable MQL5 EA in a few steps
No flowcharts, no coding. Here is the real flow.
Describe your strategy
Describe your strategy in plain English, or start from one of 118 presets.
The AI configures a tested trading runtime
It edits a validated config and fills small isolated functions. It never writes the whole EA.
An auto compile-fix loop runs MetaEditor
It reads the log and patches the AI-written functions until the build reports 0 errors, 0 warnings (Pro Edition; up to 3 rounds).
Export the single-file, readable .mq5
Export the single-file, readable .mq5 to MetaTrader 5 and backtest it in the real MT5 Strategy Tester.
Why a library-first EA generator beats 'ChatGPT writes my EA'
Every EA is built on a pre-coded, already-tested MQL5 runtime: the EA Builder Runtime.
- won't compile
- invented functions
- silently broken order logic
- compiles clean
- order loop is pre-written & tested
- the AI can't break what it never writes
Readable single-file source code you own, not an encrypted .ex5 black box
Read it, edit it, keep it forever.
Your EA is one self-contained .mq5 file with no hidden includes. Open it in MetaEditor and read exactly what it does: the order layer, the risk rules, the entry conditions. There is no encrypted binary you have to trust on faith.
- One self-contained .mq5 file with no hidden #include dependencies
- Human-readable: every input is named and grouped, every function is plain MQL5
- No encrypted .ex5 lock-in. The source is yours to keep and modify
- Inputs are organized into optimizable groups so you can tune the strategy in the MT5 Strategy Tester
//+------------------------------------------------------------------+ //| Gold Trend Pro | //| Generated by EA Builder - theeabuilder.com | //| Engine: trend-pullback | //| Attach to: XAUUSD · H1 | //| | //| Architecture: the EA Builder Runtime (pre-coded, tested) + | //| generated glue. The AI never rewrites the library, it only | //| edits the config and fills the explicit AI SLOTS below. | //+------------------------------------------------------------------+ #property version "1.00" #property description "Trend + pullback on XAUUSD: EMA stack, RSI dip recovery, ATR trailing" input group "▌ General" input ENUM_TIMEFRAMES InpTF = PERIOD_H1; // signal timeframe sinput long InpMagic = 880231; // magic number input bool InpAllowLong = true; // enable long trades input bool InpAllowShort = false; // enable short trades input group "▌ Signal · Indicators" input int InpMA1_Period = 50; // MA #1 period (EMA, close) input int InpMA2_Period = 200; // MA #2 period (EMA, close) input int InpRSI1_Period = 14; // RSI #1 period //+------------------------------------------------------------------+ //| Raw order layer: retries on requote, re-prices each attempt. | //| Written once, tested once. The AI never touches this. | //+------------------------------------------------------------------+ bool EA_Send(MqlTradeRequest &req) { MqlTradeResult res; for(int attempt=0; attempt<5; attempt++) { ZeroMemory(res); bool ok=OrderSend(req,res); if(ok && (res.retcode==TRADE_RETCODE_DONE || res.retcode==TRADE_RETCODE_DONE_PARTIAL || res.retcode==TRADE_RETCODE_PLACED || res.retcode==TRADE_RETCODE_NO_CHANGES)) return(true); if(res.retcode==TRADE_RETCODE_REQUOTE || res.retcode==TRADE_RETCODE_PRICE_CHANGED || res.retcode==TRADE_RETCODE_PRICE_OFF) { Sleep(200); if(req.action==TRADE_ACTION_DEAL) req.price=(req.type==ORDER_TYPE_BUY) ? SymbolInfoDouble(_Symbol,SYMBOL_ASK) : SymbolInfoDouble(_Symbol,SYMBOL_BID); continue; } PrintFormat("EA Builder: order rejected, retcode=%u (%s)",res.retcode,res.comment); return(false); } return(false); }
A full risk and execution engine, built in, not bolted on
Everything below is shipped and verified in the codebase. Nothing here is a mock-up.
Raw order layer
Automatic OrderSend retries (re-priced each attempt) + broker filling-mode auto-detection (FOK / IOC / RETURN).
5 position-sizing models
Fixed lot, % equity risk, % volatility, fractional Kelly, and fixed-ratio (lots normalized to your broker's volume step).
Stop loss, four ways
Stop loss by ATR multiple, fixed pips, swing structure + buffer, or % of price.
Take profit, five ways
Take profit by risk:reward, ATR multiple, fixed pips, structure target, or % of price.
7 trailing-stop engines, all real
Off, ATR, Chandelier, Step, SuperTrend, Kase DevStop, and ATR Ratchet.
Break-even move
Shift the stop to entry +/- your offset once profit hits your trigger.
Trading filters
Trading-session window (handles midnight wrap), per-weekday toggles, max spread, max trades/day, max open positions, one-trade-per-bar.
Equity-curve filter
Trade only when the EA's own cumulative result is above its moving average over the last N closed trades.
Grid & opening-range engines
Grid / averaging basket engine and an opening-range-breakout engine with money-based basket exits and OCO pending orders.
Time-based exits
Max holding hours and flatten-at-session-end.
Telegram trade alerts
Telegram trade alerts using your own bot token. The token stays in your terminal.
Optional in-EA AI bias gate
Optional in-EA AI daily-bias gate via your own API key (Claude, OpenAI, DeepSeek, or any OpenAI-compatible endpoint). The key stays in your terminal.
Prop-firm guard packs for challenge accounts
Pass the challenge without breaking the rules.
The prop-firm guard is part of the engine, not an afterthought. It enforces daily and total drawdown limits with a configurable pre-breach buffer that acts before you hit the real limit, can measure against balance, equity, or the higher of the two, supports static or trailing total drawdown, flattens positions on breach, and can force a Friday close. Ready-made packs carry real 2026 rule values for FTMO, FundedNext, The5%ers, E8, and FTUK, and a Custom mode lets you type your own firm's numbers.
118 strategy presets across 12 families
Start from a wired engine, or assemble your own from ~280 indicators, with each clearly badged.
The gallery spans 12 families: trend, breakout & ORB, mean reversion, scalping & session, grid / DCA / recovery, candles & charts, harmonics & fibs, SMC / ICT, volume & VWAP, quant & stat-arb, AI & ML, and events & seasonal. Twenty of these presets are fully wired native engines that the code generator builds end-to-end. They carry a badge. The remaining presets and any custom idea assemble through the UI and the AI.
Showing 118 of 118 presets
Not a curve-fitting strategy generator
We build the strategy you describe. We don't data-mine millions and hope one survives.
Mass strategy generators search millions of combinations and hand you whichever fit the past best (an approach experienced traders increasingly distrust as overfitting). EA Builder does the opposite: you describe the logic you actually believe in, and it is engineered correctly onto a tested engine, with no promise of a magic auto-discovered edge. Fewer, real strategies, not a lottery of mined ones.
- You bring the idea; the engine implements it faithfully
- No “auto-discovered edge” promise, no inflated backtests on the page
- Backtest the result yourself in the real MT5 Strategy Tester
Your AI key, your code, your machine
Privacy and control as a trust feature, not an afterthought.
You connect your own AI provider key (Claude, OpenAI, DeepSeek, or any OpenAI-compatible endpoint). The key is never stored on our servers. In the desktop app it is encrypted locally with Windows DPAPI; in the browser it transits only through a local proxy that never persists it. If you embed the optional in-EA AI bias gate, that key is an input inside your own terminal and talks straight to the provider. There is no server of ours in the loop.
- Multi-provider: Claude (Anthropic), OpenAI, DeepSeek, or any OpenAI-compatible endpoint
- The key is never stored on our servers
- Desktop app encrypts it locally (Windows DPAPI); the browser proxy never persists it
- In-EA AI key lives in your terminal and calls the provider directly
What's shipped, and what's on the roadmap
We'd rather you trust us than be surprised. Here is the honest line.
In a market full of overclaiming tools, visible honesty is the strongest anti-scam signal we have. Shipped today: the tested runtime (order layer, sizing, SL/TP, 7 trailing engines, filters, prop-firm guard), the plain-English-to-config AI loop, the auto compile-fix loop, grid and ORB engines, Telegram alerts, the optional in-EA AI bias gate, and export + compile into the real MT5 Strategy Tester. Roadmap, clearly labelled and not yet available: a native in-app backtest engine, an economic-calendar / news filter, multi-symbol / portfolio EAs, an on-chart dashboard panel, a correlation filter, webhook integration, and partial-close ladders.
- Tested runtime
- AI config loop
- Auto compile-fix
- Grid & ORB
- Telegram alerts
- In-EA AI bias
- Export to MT5
Backtesting today = the real MetaTrader 5 Strategy Tester (the Pro app exports and compiles into it).
- Native in-app backtest engine
- News / economic-calendar filter
- Multi-symbol
- On-chart panel
- Correlation filter
- Webhook
- Partial-close ladders
The Pro desktop app runs today in developer mode; a packaged installer is on the roadmap.
Generated EAs evaluate signals on bar close.
Two editions: Market Edition and Pro Edition
One runs inside MetaTrader 5; one is a desktop app that compiles and exports for you.
Market Edition runs inside MetaTrader 5 and is distributed on the MQL5 Market. That includes a standalone mode where the EA talks to your AI provider directly via WebRequest with your key as an input. Pro Edition is the desktop app: it auto-compiles, exports your EA to MetaTrader 5 in one click, saves your projects, ships the full prop-firm packs, and runs the AI builder loop with the compile-fix certification.
Market Edition
- Runs inside MetaTrader 5
- Sold on the MQL5 Market
- Standalone bring-your-own-key WebRequest mode
For traders who want it on the chart, in the terminal
Pro Edition
Early access- Desktop app
- Auto-compile + one-click export to MT5
- Saved projects
- Full prop-firm packs
- The AI builder + compile-fix loop
For traders who build and iterate often
Frequently asked questions
Honest answers on what is shipped, what you own, and what we will not promise.
Start building your Expert Advisor
Describe it in plain English. Get a clean, compilable MQL5 EA built on a tested engine. Readable source you keep.
Readable source · Compiles clean · Prop-firm aware