The TR-GAB platform
Build, validate and deploy MetaTrader 5 strategies — end to end
TR-GAB is a desktop platform for algorithmic traders: build and mine strategies, validate them on each broker's real engine, and export ready-to-run bots for MetaTrader 5, NinjaTrader 8, cTrader and QuantConnect LEAN — with AI control over the whole workflow.
Strategy generation
Build strategies by hand or mine them automatically
- Strategy Lab: visual rule-by-rule builder — 15 indicators, multi-timeframe (M1–MN1), crosses, pattern match, money management and ATR-based exits.
- Rule, Pattern and Event Mining run as background jobs with live progress; each result becomes an editable strategy.
- Event Mining works off the economic calendar (currency, impact, before/after windows) to build strategies around scheduled economic events.
Validation against the real engine
Validate against the real MetaTrader 5 engine, not just a simulator
- Trade-by-trade comparison (JS engine ↔ real MT5): matched / only-A / only-B with entry, price, PnL, SL and TP deltas — the confidence check that tells you the EA behaves the same in real MT5.
- Tester Batch runs N strategies in the real MT5 Strategy Tester in bulk and computes KPIs from the actual reports.
- Robustness filtering (perturbed backtests + percentiles) and walk-forward (in-sample / out-of-sample), plus OOS retest: mine short, retest long on intact data.
Fleet management
Run and audit many bots in a single account
- Export assigns unique magic numbers automatically so multiple bots never collide in one account.
- The MT5 Dashboard pulls the real account (demo or live) and separates every bot by its magic, with KPI filters.
- Audit a whole fleet from one account — no twenty accounts and no manual tracking spreadsheets.
Workflows
Orchestrate the full generate → validate → export loop
- Workflows chain 14 process types sharing a databank, automating the manual grind of generate → retest → filter → save → repeat.
- KPI filter actions between steps, live streaming progress, run cancellation and reusable workflow templates (banks/groups).
- Snapshots and one-click export to your broker (MetaTrader 5, NinjaTrader, cTrader or LEAN) from any step.
AI control (MCP)
Drive the whole product with natural language
- A built-in MCP server (tr-gab-pro) exposes ~150 tools to orchestrate strategies, mining, workflows, portfolios, Tester Batch, market data and broker export (MT5, NinjaTrader, cTrader, LEAN) from an AI agent.
- Every AI action is recorded in an AI Activity audit log.
- Works with MCP-compatible AI clients, so the actions you do in the UI are available to an agent as tools.
Broker & data
Multi-broker connectors, market vault and bot export
- Connectors for MetaTrader 5, NinjaTrader 8, cTrader and QuantConnect LEAN (account, history, candles, real-engine backtests) and a Market Vault of candles + economic calendar that feeds Event Mining.
- Export ready-to-run bots from a strategy, group, portfolio, mining result or workflow: MQL5 Expert Advisors (.mq5), NinjaScript strategies (compiled .dll), cTrader cBots (.algo) and LEAN Python algorithms.
- Every export keeps the same folder hierarchy per broker and every bot writes a canonical strategy log for auditing.
- Combine strategies into portfolios and export the portfolio as a ZIP of EAs.
Frequently asked questions
- What is TR-GAB?
- TR-GAB is a desktop application (Windows) for algorithmic traders. It covers the full cycle of building, validating, deploying and auditing trading strategies and bots for MetaTrader 5, NinjaTrader 8, cTrader and QuantConnect LEAN, with a focus on validating each strategy on the broker's real engine. It is software for building your own strategy logic — not investment advice, managed trading or guaranteed results.
- Which trading platforms does TR-GAB support?
- Four: MetaTrader 5 (MQL5 Expert Advisors, validated in the real MT5 Strategy Tester), NinjaTrader 8 (compiled NinjaScript strategies, backtested with NinjaTrader's own engine), cTrader (cBots compiled to .algo, backtested through the official headless CLI) and QuantConnect LEAN (Python algorithms run in the LEAN Docker engine). The same visual strategy exports to all four.
- How does TR-GAB work with MetaTrader 5?
- It exports MQL5 Expert Advisors with automatic unique magic numbers, validates strategies in the real MetaTrader 5 Strategy Tester (Tester Batch), and audits live or demo accounts pulled from the MT5 connector.
- Can I manage many trading bots in one MT5 account?
- Yes. Because every exported bot gets a unique magic number, the MT5 Dashboard separates and audits each bot by its magic inside a single account, with KPI filters — instead of needing many accounts or manual tracking.
- Can I control TR-GAB with AI or an LLM?
- Yes. TR-GAB ships an MCP (Model Context Protocol) server exposing around 130 tools, so an AI agent can orchestrate strategies, mining, workflows, portfolios, Tester Batch, market data and MT5 export by natural language. Every AI action is recorded in an audit log.
- Does TR-GAB do out-of-sample (OOS) validation?
- Yes. It includes walk-forward (in-sample / out-of-sample) windows, robustness filtering across perturbed backtests, and an OOS retest workflow (mine on a short window, retest on a longer one). It also compares the internal backtest trade-by-trade against the real MetaTrader 5 engine.
- What can TR-GAB do beyond generating strategies?
- It focuses on validation against the real MT5 engine, Event Mining from the economic calendar, fleet management of many bots in one account by magic number, and full AI control of the workflow through its MCP server.
- Is TR-GAB a trading signal service?
- No. TR-GAB is software for building, testing and exporting your own strategy logic. It does not provide investment advice, managed trading or guaranteed results.