EA Builder
AI Expert Advisor generator for MetaTrader 5

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”

EA Builder / Gold Trend Pro MetaTrader 5 · connected
SetupCode Export to MT5
you

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.

Ask for a change in plain English, e.g. “use a 2R target instead”.
Signal · Indicators
EMA 50 ✕ EMA 200RSI(14) ↑ 30
Risk · Position sizing
Risk per trade0.5%
Exits
SL ATR × 1.5TP 2R
Break-even +25p
Protection · Prop-firm guard
FundedNext / FTMO pack
Compiled: 0 errors, 0 warningsGoldTrendPro.ex5
Readable single-file source you keep, not an encrypted .ex5 black box
The AI only tunes a pre-coded, tested engine. It never writes the whole EA
Every built-in preset compiles to 0 errors / 0 warnings in MetaEditor

Specific, honest numbers. Not round marketing claims.

118
strategy presets across 12 families
~280
indicators in the entry-condition library
7
built-in trailing-stop engines, all real
5
prop-firm rule packs (FTMO · FundedNext · The5%ers · E8 · FTUK)
0 / 0
errors / warnings on every built-in preset in MetaEditor
1
readable .mq5 file you own and keep
WHY EVERY OTHER EA TOOL FAILS YOU

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.

Marketplace robots

Black-box .ex5

Black-box .ex5 robots: you can't read them, can't trust them, can't fix them

AI improvisation

"ChatGPT wrote my EA"

"ChatGPT wrote my EA": uncompilable code, invented functions, broken order logic

The third path

EA Builder

EA Builder: the AI only tunes a tested engine, and the build is verified to compile

HOW THE EA BUILDER WORKS

From plain English to a compilable MQL5 EA in a few steps

No flowcharts, no coding. Here is the real flow.

1

Describe your strategy

Describe your strategy in plain English, or start from one of 118 presets.

2

The AI configures a tested trading runtime

It edits a validated config and fills small isolated functions. It never writes the whole EA.

3

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).

4

Export the single-file, readable .mq5

Export the single-file, readable .mq5 to MetaTrader 5 and backtest it in the real MT5 Strategy Tester.

LIBRARY-FIRST, NOT AI-GUESSWORK

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.

Inside every generated EA sits a runtime library written once by humans and reused unchanged: a raw order layer with automatic retries and broker filling-mode detection, position sizing, stop loss, take profit, seven trailing-stop engines, session and spread filters, and a prop-firm guard. The AI's only job is to produce and edit a strictly validated configuration object and, when you ask for something exotic, fill a tiny isolated function. Because the AI never touches the order loop or the risk engine, it cannot break them. The build is then certified by an auto compile-fix loop that actually runs MetaEditor.
Pre-coded engine: raw OrderSend with retries + auto filling-mode, sizing, SL/TP, 7 trailing engines, session/spread filters, prop-firm guard
The AI only edits a validated config and fills small, isolated functions, never the whole EA
An auto compile-fix loop runs MetaEditor and patches the AI-written functions (up to 3 rounds)
Others: AI writes the WHOLE EA
  • won't compile
  • invented functions
  • silently broken order logic
EA Builder: AI only tunes a tested engine
  • compiles clean
  • order loop is pre-written & tested
  • the AI can't break what it never writes
YOU OWN THE SOURCE

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
GoldTrendPro.mq5
//+------------------------------------------------------------------+
//| 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);
  }
BUILT-IN, TESTED, REAL

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 SAFE BY CONSTRUCTION

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.

Daily and total drawdown limits enforced inside the EA
Pre-breach buffer acts before the real limit, not after
Balance / equity / max-of-both basis; static or trailing total drawdown
Flatten-on-breach and optional Friday close
Packs for FTMO, FundedNext, The5%ers, E8, FTUK, plus a Custom mode
FTMOFundedNextThe5%ersE8FTUKCustom
WHAT YOU CAN BUILD

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

Balanced
Gold Trend Pro
Trend + pullback on XAUUSD
Low risk
MA Crossover
Golden cross with trend filter
Low risk
Triple MA Ribbon
Trade only when MAs stack
Low risk
MACD Trend
Signal cross gated by zero line
Balanced
ADX Power Trend
DI cross while ADX is hot
Balanced
Parabolic Flip
Stop & reverse on SAR dots
Balanced
SuperTrend Rider
ATR band flips, ride the trend
Balanced
Ichimoku Cloud
TK cross + Kumo breakout
Balanced
Keltner Ride
Close beyond band, trail midline
Balanced
Adaptive KAMA
Self-tuning MA follows regime
Low risk
Heiken Ashi Flow
Colour-flip trend entries
Low risk
Elder Triple Screen
HTF tide, MTF wave, LTF ripple
Balanced
52-Week High
Buy strength near yearly highs
Balanced
Fractal Breakout
Alligator-gated fractal stops
Low risk
London ORB
Opening-range breakout, prop-safe
Balanced
NY Open ORB
First 15-min range of New York
Balanced
Asian Range Break
Stops on the overnight box
Low risk
Donchian Turtle
20/55-bar channel breakout
Balanced
Volatility Squeeze
Fire on expansion after squeeze
Balanced
NR7 Inside Day
Coiled-range next-day breakout
Balanced
Range Expansion
Open + k× yesterday's range
Balanced
Initial Balance
First-hour box extension
Low risk
RSI Mean Reversion
Fade extremes back to the mean
Low risk
RSI-2 Connors
Deep oversold dip in uptrend
Low risk
Bollinger Bounce
Band-edge fade to midline
Low risk
Double 7s
7-day low buy, 7-day high sell
Low risk
IBS Reversion
Close-location bar reversion
Balanced
Z-Score Snapback
±2σ stretch snaps back
Balanced
Pivot Bounce
Fade touches of daily pivots
Balanced
Round Number Fade
Reject 00/50 psych levels
Low risk
Weekend Gap Fade
Trade Monday gaps toward fill
High risk
Extreme Bar Fade
Fade k×ATR climax bars
High risk
Crash Wick Catcher
Resting limits under flash wicks
Balanced
TD9 Exhaustion
DeMark setup completion fades
Balanced
Night Scalper
Asian-session mean reversion
High risk
Gold Scalper M5
Quick strikes on XAUUSD
Balanced
Asian Range Fade
Fade pokes of the quiet range
Balanced
London Close Reversal
Fade the day move at 16:00
High risk
Micro Range Scalper
Spread-aware M1 band fades
High risk
Boom/Crash Spike Bot
Deriv synthetics spike catcher
High risk
Classic Grid
Laddered orders, basket target
High risk
Hedged Dual Grid
Long+short grids net the chop
High risk
Trend-Filtered Grid
Grid only with the HTF trend
High risk
Infinity Grid
Grid trails the trend upward
High risk
DCA Safety Orders
Scaled add-downs, basket TP
High risk
Capped Martingale
Progressive sizing, hard caps
Balanced
Anti-Martingale
Press wins, reset on loss
High risk
Zone Recovery
Hedge ladder out of losers
High risk
Smart Hedge Lock
Offsetting positions, locked risk
Balanced
ATR Pyramiding
Add to winners every k×ATR
Balanced
Pin Bar Hunter
Wick rejections at key levels
Balanced
Engulfing at Level
Engulf candles on S/R
Balanced
Inside Bar Hikkake
Break or trap of the mother bar
Balanced
Star Reversal
Morning & evening stars
Low risk
Doji Reversal
Indecision at extremes
Balanced
Three Soldiers
Three-bar momentum drives
Balanced
Head & Shoulders
Neckline breaks, measured move
Balanced
Double Top/Bottom
Two-touch reversal necklines
Balanced
Triangle Breakout
Apex break with measured move
Balanced
Flag Continuation
Pole, tight flag, resume
Balanced
Cup & Handle
Rounded base, handle break
Balanced
Divergence Sniper
Price/RSI divergence reversals
Balanced
Gartley 222
Classic 61.8% XABCD reversal
Balanced
Butterfly
127–161.8% extension reversal
Balanced
Bat 88.6
Deep retrace into the PRZ
Balanced
AB=CD Symmetry
Equal-leg completion entries
Balanced
Three Drives
Triple symmetric exhaustion
Balanced
Elliott Wave 3
Ride the third-wave extension
Balanced
Fib Pullback
Limits at 38–61.8% retrace
Balanced
Fib Confluence
Stacked-ratio reaction zones
Balanced
Wolfe Waves
Five-point channel reversal
Balanced
SMC Structure
BOS/CHoCH structure trading
Balanced
Order Block Entry
Limit into the last opposing candle
Balanced
FVG Fill
Trade the 3-bar imbalance
Balanced
Liquidity Sweep
Reclaim after stop runs
Balanced
Breaker Block
Swept blocks flip polarity
Low risk
Kill Zone Filter
London & NY windows only
Balanced
Silver Bullet
First FVG of the NY hour
Balanced
Judas Swing
Fade the opening false move
Balanced
Turtle Soup
Failed 20-bar breakout fade
Balanced
Power of Three
Accumulate, manipulate, distribute
Balanced
OTE Entry
62–79% of the displacement leg
Balanced
SMT Divergence
Correlated pair fails the sweep
Balanced
ICT 2022 Model
Full sweep→MSS→FVG stack
Balanced
Session VWAP Trend
Bias and pullbacks around VWAP
Balanced
Anchored VWAP
Pullbacks to event anchors
Balanced
POC Reversion
Fade back to the volume node
Balanced
OBV Divergence
Volume flow disagrees with price
Balanced
Wyckoff Spring
False break on dry volume
Balanced
VSA Effort vs Result
Absorption climax reversals
Balanced
Pairs Z-Score
Cointegrated spread snapback
Balanced
Kalman Pairs
Dynamic hedge-ratio spread
Balanced
Gold/Silver Ratio
Fade ratio percentile extremes
Balanced
Index Spread
DAX vs CAC relative value
Balanced
Lead-Lag Follower
Laggard follows the leader
Balanced
Currency Strength
Strongest vs weakest of 8 majors
Balanced
FX Carry Basket
Harvest positive swap, hedged
Low risk
Triple-Swap Wednesday
Capture 3× rollover credit
Low risk
Risk Parity Basket
Equal-risk multi-symbol book
Balanced
Ensemble Voter
Sub-strategies vote on entries
Low risk
Equity-Curve Switch
Trade only when the EA is in form
Custom
Indicator Lab
Build from 290+ indicators
Balanced
AI Momentum
ML-scored impulse entries
Balanced
Lorentzian k-NN
Distance-based ML classification
Balanced
ONNX Classifier Gate
A model filters every signal
Balanced
Regime Router
Route modules by market state
Balanced
News Sentiment NLP
Headline scores gate the bias
Balanced
LLM Daily Bias
AI reads the day, sets the bias
High risk
Anomaly Fade
Fade statistically weird bars
High risk
News Straddle
Bracket orders around events
High risk
News Spike Fade
Fade the post-release overshoot
Low risk
Day-of-Week Bias
Per-day edge maps
Low risk
Turn-of-Month
Month-end rebalancing drift
Low risk
Santa Rally
Year-end seasonal windows
Balanced
NFP Playbook
Flat into release, trade the drift
Balanced
Pre-FOMC Drift
Risk-on into the statement
Low risk
Hour-of-Day Map
Per-hour seasonal edges
Balanced
Seasonality Miner
Mine calendar edges, trade them
12 families, 118 presets. Search and filter in the gallery
20 fully-wired native engines, clearly badged (built end-to-end by the code generator)
~280 indicators feed the entry-condition builder; ~14 indicator families compile natively, the rest are written as small AI functions
Wired examples: trend-pullback, MACD, ADX/DI, Donchian, RSI-2 / Connors, Bollinger fade, grid & capped martingale, London / Asian / NY ORB, AI bias
YOUR STRATEGY, ENGINEERED RIGHT

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
BRING YOUR OWN KEY

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
Supported providers
Claude (Anthropic)OpenAIDeepSeekOpenAI-compatible
Desktop keyEncrypted · Windows DPAPI
Browser keyLocal proxy · never persisted
In-EA keyYour terminal · direct to provider
SHIPPED VS COMING

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.

Shipped today
  • 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).

Roadmap · not yet available
  • 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

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

Both produce the same readable, single-file .mq5 you own
TRANSPARENT PRICING

Clear prices. No 'Contact Sales'. No recurring surprise.

Try it free, then a plain one-time price for what you keep. Launch pricing (indicative).

Prices are indicative launch pricing and may change before general availability. No hidden upsells, no affiliate-hyped tiers. You own the single-file source either way. There is no lock-in.

Free

Free
Try the builder. Bring your own AI key
  • Describe a strategy in plain English
  • Browse all 118 presets
  • Generate and read the .mq5
  • Bring your own AI key

Market Edition

Indicative
One-time on the MQL5 Market
  • One-time purchase on the MQL5 Market
  • Runs inside MetaTrader 5
  • Standalone bring-your-own-key mode
Recommended

Pro Edition

Indicative
Early access, one-time
  • Desktop app with auto-compile
  • One-click export to MetaTrader 5
  • Saved projects
  • Full prop-firm rule packs
  • AI compile-fix loop
You own it
readable single-file sourceno encrypted binaryno lock-inno recurring surprise
FREQUENTLY ASKED QUESTIONS

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