MQL5 AI engine · self-review pass · compile-safe by default

Build profitable MT5 bots. Zero compile errors.

Describe your strategy in plain English. Get a production-grade MQL5 Expert Advisor with risk %, ATR stops, trailing, daily-loss circuit breaker and an on-chart dashboard — auto-reviewed for compile errors before it hits your editor.

No credit card · Email + password · Your code stays private · Self-review pass included

CTrade · MQL5 strict ATR risk sizing Daily-loss breaker Synthetic-index ready
ScalperPro.mq5 · MQL5 compile-safe
#include <Trade/Trade.mqh>
CTrade trade;

input double InpRiskPercent = 1.0;     // Risk per trade (%)
input int    InpRSI_Period  = 14;

void OnTick() {
   double rsi = iRSI(_Symbol, PERIOD_CURRENT, InpRSI_Period, PRICE_CLOSE, 0);
   double ema50  = iMA(_Symbol, _Period, 50,  0, MODE_EMA, PRICE_CLOSE);
   double ema200 = iMA(_Symbol, _Period, 200, 0, MODE_EMA, PRICE_CLOSE);

   if (rsi < 30 && ema50 > ema200 && PositionsTotal() == 0) {
      double lot = CalcLotByRisk(InpRiskPercent, 200);
      trade.Buy(lot, _Symbol, 0, 0, 0, "rsi+ema crossover");
   }
}
AI assistant

Add ATR-based trailing stop and risk-percent sizing.

Updated OnTick() with CalcLotByRisk and a 2× ATR trailing stop. Diff ready to apply.

Visual Dashboard Builder

Drag widgets onto the chart.
Get production MQL5.

Pick from an Equity bar, Signal Strength meter, Spread/Latency gauge and Open Positions table — or describe your own. The builder emits clean OBJ_RECTANGLE_LABEL code, wires DashInit/Update/Deinit into your event handlers, and cleans up every object on detach.

  • Auto-detects existing dashboards in your saved bots
  • Magic-number-prefixed objects — multi-chart safe
  • EventSetTimer(1) for tick-less refresh
  • Round-trip edit: change a widget, re-inject, recompile
Equity / Balance
$12,480.55 / $12,000.00
+4.00% • DD 1.2%
Signal Strength
BULL · RSI 62.4
Open Positions
BUY 0.10+12.40
SELL 0.20-3.10
TOTAL +15.10
Spread / Latency
12 pts · 38 ms

Built specifically for MQL.

Generic code assistants hallucinate MQL functions. Dungeon Bot Builder is tuned for MetaTrader: it knows CTrade, ENUM_TIMEFRAMES, magic numbers, freeze levels, and synthetic-index quirks.

Monaco editor, MQL-aware

VSCode-grade editor with syntax highlighting and an AI side chat that sees your file.

Auto self-review pass

Every generated EA is re-compiled mentally by a 2nd model that fixes compile errors, missing SL/TP, and risk gaps before it hits your editor.

MQ4 → MQ5 conversion

One-click migration that rewrites OrderSend logic into the modern Trade library.

Synthetic index aware

Knows V75/V100/Boom/Crash quirks: tick-driven, no swap, spike handling.

Risk management baked in

Risk-% sizing, ATR stops + trailing, break-even at +1R, daily-loss circuit breaker — defaults on every bot.

Visual dashboard builder

Drag widgets onto a faux chart, regenerate MQL5 object code, or auto-detect dashboards in saved bots.

Backtest-ready defaults

Grouped inputs, magic-number scoping, broker-suffix-safe symbol handling — pass through Strategy Tester cleanly.

AI dashboard prompt

Describe a HUD in English — “equity bar + daily P/L with red glow if loss > 2%” — get OBJ_RECTANGLE_LABEL code.

Export real .mq5 files

Download your file ready to drop into MetaEditor on Windows for compilation.

From idea to .mq5 in three steps

  1. 01
    Describe your strategy

    “RSI + EMA crossover on V75 with 1% risk, ATR trailing.” Or paste an existing MQ4/MQ5 file.

  2. 02
    AI builds & self-reviews

    Generates the EA, then a 2nd pass hardens compile errors, SL/TP, risk caps and event cleanup.

  3. 03
    Export & compile

    Download the .mq5, drop it in MetaEditor, attach to a chart. Zero red squiggles.

Simple, trader-friendly pricing.

Start free. Upgrade when you ship to a live account.

Free

$0/forever

For learning and prototyping

  • Unlimited projects
  • Daily AI message quota
  • MQL5 self-review pass
  • Dashboard builder
  • Export .mq5 files
Most popular

Pro

$19/month

For traders shipping live bots

  • Everything in Free
  • Unlimited AI messages
  • Image / chart upload (vision)
  • Priority model fallback
  • Risk management modules library
  • Email support

Trusted by MT5 traders & devs.

First AI that actually knows ENUM_BASE_CORNER. My V75 scalper compiled clean on the first export.
Tariro K. — Synthetic index trader
The daily-loss breaker saved a challenge. I just described the rule, the AI baked it into OnTick.
M. Adeyemi — Prop firm trader
Dashboard builder is genius. Drag four widgets, hit insert, done. No more wrestling with OBJ_LABEL.
Lerato S. — MT5 developer

Ship your next EA this weekend.

Self-reviewed MQL5. Risk management baked in. On-chart dashboard ready to drag & drop.