⚙️ MQL5 Compiler
Validate, lint, and prepare your MQL5 code for compilation. The tool performs deep syntax analysis and generates a compilation-ready .mq5 file. For .ex5 binary output, connect to your local MetaEditor instance.
🧠 Agent Hub — Autonomous Agent Connector
Connect, manage, and monitor your autonomous agents. Plug in any external agent via WebSocket, REST API, or direct MQL5 integration. Agents run fully autonomous and can be monitored in real-time.
📖 User Guide
Everything you need to master AgentMT5. Click any section to expand.
⚡ Groq (free & fast) or 🧠 Anthropic. Paste your API key in the field. Groq is recommended for beginners — get a free key at console.groq.comDownload .mq5, then open the file in MetaEditor (comes with MT5) and press F7 to compile into an executable .ex5 file.What is it?
The EA Builder generates complete MetaTrader 5 Expert Advisors from natural language descriptions. The output is production-ready MQL5 code with proper risk management, error handling, and order management.
Best Practices
• Be specific about entry/exit rules: "Buy when RSI(14) crosses below 30 AND price is above EMA(200)" is much better than "Buy when oversold".
• Always specify risk parameters: Stop loss, take profit, trailing stop, maximum trades, lot sizing method.
• Mention the timeframe: M1 strategies need different logic than H4 strategies.
• Use the Enhance Prompt button: It refines your description for better AI output.
What is it?
Create custom technical indicators for MT5. From simple moving averages to complex multi-timeframe dashboards, divergence detectors, and volume profile displays.
Drawing Types
• Line: Standard line plots (RSI, MA, etc.)
• Histogram: Bar-style charts (MACD histogram, volume delta)
• Arrows: Signal markers on the chart
• Candles: Custom candlestick rendering
• Color Section: Colored fills between levels
What is it?
Build fully autonomous trading agents with machine learning, reinforcement learning, risk management engines, and self-learning capabilities. These are advanced EAs with built-in intelligence.
Strategy Types
• Trend Following: Rides momentum using moving averages, ADX, etc.
• Mean Reversion: Trades back to average using Bollinger Bands, Z-score
• Machine Learning: Uses RF/XGBoost/LSTM for signal generation
• Statistical Arbitrage: Exploits correlated pair spreads
Learning Modes
• Supervised: Trains on labeled historical data
• Reinforcement: Learns optimal actions through reward signals
• Ensemble: Combines multiple models for robust signals
What is it?
Stream your MT5 market data to any external service. Build REST APIs, WebSocket servers, Telegram bots, or Discord integrations that connect to your MetaTrader 5 terminal.
Common Use Cases
• Stream real-time prices to a custom web dashboard
• Forward trade signals to Telegram or Discord
• Build a webhook bridge for TradingView alerts
• Create a REST API for portfolio monitoring apps
MetaTrader5 Python package. Make sure MT5 is installed and running on the same machine as the API server.MQL5 Debugger
Paste any MQL5 code and the AI will analyze it for syntax errors, logic bugs, performance issues, and missing error handling. It provides a fixed version of the code.
Compiler Pipeline
The compiler runs a 4-step pipeline: Lint → Auto-Fix → Optimize → Compile Ready. It catches common issues before you even open MetaEditor.
To compile to .ex5
1. Download the .mq5 file from AgentMT5
2. Copy it to your MT5 MQL5/Experts/ folder (or MQL5/Indicators/ for indicators)
3. Open MetaEditor, open the file, press F7
4. If no errors, the .ex5 file is created automatically
What is it?
The Agent Hub lets you connect external autonomous agents to AgentMT5. You can plug in agents via WebSocket, REST API, or direct MT5 connection. Up to 4 agents can run simultaneously.
Connection Methods
• WebSocket: Connect to any WebSocket server that sends trading signals
• REST API: Poll an HTTP endpoint at configurable intervals
• MT5 Direct: Generate a Bridge EA that acts as a socket server inside MT5
• Custom Agent: Write JavaScript agent logic directly in the browser
How Credits Work
Each AI generation (EA, Indicator, Agent, API, Debug, Review) uses 1 credit. The Enhance Prompt feature is free. The Compiler pipeline is free.
Free Plan
5 credits to try the tool. Includes EA Builder, Indicator Builder, and Debugger.
Starter Plan — $19/month
50 credits/month. All builders + debugger + compiler.
Professional Plan — $49/month
200 credits/month. Everything including Agent Hub, API Builder, and Code Review AI.
Enterprise Plan — $149/month
Unlimited credits. Everything + desktop .exe version + white-label option + priority support.
Do I need my own API key?
Yes. AgentMT5 uses your own Groq or Anthropic API key to generate code. This gives you full control over costs and usage. Groq offers a generous free tier.
Is the generated code safe to use in live trading?
The code is syntactically correct and follows MQL5 best practices, but always backtest thoroughly on a demo account first. No AI can guarantee profitable strategies.
Can I edit the generated code?
Absolutely. The code is standard MQL5 — edit it in MetaEditor, VS Code, or any text editor.
What is the .exe desktop version?
Pro and Enterprise users get access to a standalone desktop application (Windows) that works offline and includes all features without browser limitations.
How do I get support?
Email metaquantuniverse@gmail.com for technical support. Enterprise users get priority response within 4 hours.
Can I use this for other platforms (MT4, cTrader)?
AgentMT5 is specifically designed for MetaTrader 5 (MQL5). MT4 uses MQL4 which has different syntax. cTrader uses C#. We may add support for these in the future.
💾 Downloads
Download the AgentMT5 desktop application and resources.
📜 Generation History
⚙️ Settings
llama-3.3-70b-versatile is ideal for MQL5 code generation.