EURUSD1.0842
Features

Everything you need to go from idea to shipped bot

Chat or code, QuantLab builds the bot. Your own machine compiles and backtests MetaTrader 5 in full, and you can generate code for any platform you name.

AI chat-to-bot

Describe a strategy in plain English

Type the logic the way you'd explain it to another trader, entries, filters, risk, exits. QuantLab turns it into clean, compilable code and iterates with you, build after build, until the equity curve looks right.

  • Plain-English to compiled code
  • Conversational refinement
  • Catches ambiguous logic before it ships
QUANTLAB
CHAT · BUILD #128
YOU

Trend-follow GBPUSD on H1. Trade only London/NY overlap, 1.5% risk, ATR trailing stop.

QUANTLAB

Generated a session-filtered trend EA with ATR(14) trailing. Compiling on your agent…

COMPILED CLEAN · 0 ERRORS · 0 WARNINGS
Quant section

Trade like a hedge-fund quant, not on vibes

Switch on a quantitative method and QuantLab applies it on top of whatever you describe. The Markov hedge-fund method quantifies the market into Bull / Bear / Sideways regimes from a rolling-return rule, builds a transition matrix, and gates your entries by regime, plus mean-reversion, momentum and pairs/stat-arb methods. Grounded in a built-in quant-research library so the logic is real, not hand-wavy.

  • Markov regime · mean-reversion · momentum · pairs
  • Regime gating + volatility-scaled risk
  • Backed by a quant-research knowledge base
QUANTLAB
QUANT · MARKOV REGIME
BULL
ret ≥ +5%
SIDEWAYS
−5%…+5%
BEAR
ret ≤ −5%
REGIME GATE

current = BULL · P(stay)=0.78 → take longs only, size ×conviction. Sideways → stand down.

Web IDE

A full Monaco editor, in the browser

Prefer to write it yourself? The same VS Code editor you already know, IntelliSense, inline errors, multi-file projects, runs in the browser with one-click compile against your local agent. No toolchain to install.

  • Monaco / VS Code engine
  • MQL5, NinjaScript & Pine syntax
  • One-click compile to your machine
QUANTLAB
EA_TrendOverlap.mq5Monaco · MQL5
void OnTick() {
  if (!InSession()) return;
  double atr = iATR(_Symbol,_Period,14);
  TrailStop(atr * 1.5);
}
IntelliSense
Inline errors
One-click compile
The desktop agent

Runs on YOUR MetaTrader: your compute, your privacy

The lightweight QuantLab agent installs on your PC and drives your own MetaTrader 5 to compile and backtest. No MT5? It installs one and opens a free demo account for you. Your strategies never touch a shared cloud, and there are no metered compute bills.

  • Auto-installs MT5 + free demo account
  • MT5 DeepTest, the genuine Strategy Tester, on your hardware
  • Strategies stay private, never a shared cloud
QUANTLAB
QUANTLAB AGENT · THIS PC
OK Detected MetaTrader 5
OK Opened free demo account
-> Compiling EA_TrendOverlap.mq5
-> Running Strategy Tester · 2019-2024
OK Results returned to web
Hybrid backtesting

Instant preview, then MT5 DeepTest truth

Iterate fast with an instant in-browser preview backtest, then run MT5 DeepTest, the genuine MetaTrader Strategy Tester, for tick accurate, full fidelity results you can actually trust before risking capital.

  • Instant preview for fast iteration
  • Tick-accurate MT5 DeepTest
  • Equity curve, trade list & metrics
QUANTLAB
NET
+$3,142
PF
1.92
DD
-7.8%
PREVIEW · INSTANT DEEPTEST VERIFIED
Platforms

MetaTrader 5 in depth, plus any platform you name

MetaTrader 5 is the deepest integration: your machine compiles the .mq5 to .ex5 and runs MT5 DeepTest, the genuine Strategy Tester, plus the optimizer. For NinjaTrader 8, QuantLab generates NinjaScript and packages it as an importable add-on that compiles inside your NinjaTrader. For TradingView, you get ready-to-paste Pine v5. Need something else (cTrader, Python, TradeStation, and more)? Pick Other and QuantLab writes the code, delivered as source to download.

  • MetaTrader 5, full compile, Strategy Tester & optimization on your PC
  • NinjaTrader 8, generated NinjaScript add-on, compiles in your NinjaTrader
  • TradingView Pine, generated Pine v5 to paste into TradingView
  • Any other platform, generated source you can download
QUANTLAB
MetaTrader 5
.mq5 → .ex5, full tester
NinjaTrader 8
.cs add-on, import to compile
TradingView
Pine v5, paste to chart
BYO-AI integration

Bring your own AI key, uncapped

Plug in your own Anthropic or OpenAI key and builds generated with it stop counting against your plan cap. You pay the model provider directly, effectively unlimited build volume, available from the Entry tier up.

  • Connect Claude or OpenAI
  • Builds with your key are uncapped
  • You control model cost directly
QUANTLAB
# settings → integrations
ANTHROPIC_API_KEY = sk-ant-•••••
OPENAI_API_KEY = (optional)
Builds with your key are uncapped
Version history

Every build, saved and diffable

Each iteration is snapshotted automatically. Roll back to any earlier version, compare what changed, and never lose a strategy that worked because the next tweak didn't.

  • Automatic version snapshots
  • One-click rollback
  • See exactly what changed
QUANTLAB
v6Added session filter[ CURRENT ]
v5ATR trailing stop
v4Risk model → 1.5%
v3Base trend logic
// GET STARTED

See it build a bot for you.