🤖 New in MT5 · Jul–Sep 2026

MT5 AI Assistant: How to Use MetaTrader 5’s Built-In AI

By Dan Machado · 9 min read

The MT5 AI Assistant is the biggest change to MetaTrader 5 in years. Since build 6060, released in late July 2026, the terminal and MetaEditor have a built-in AI assistant: it analyzes the market and your positions, writes and fixes MQL5 code and, via MCP, performs actions inside the platform itself. In this guide you’ll see what it actually does, how to enable it, how to set up security before anything else, and where it still falls short.

⚡ 30-second summary

  • Available from build 6060 (late Jul 2026), in the terminal and in MetaEditor.
  • Logging in with an MQL5.community account activates the free MQL5 Lite plan, with nothing to configure.
  • Accepts your own key: OpenAI, Anthropic (Claude), Gemini, DeepSeek, Ollama and others.
  • You decide whether the AI can trade, trade only with confirmation, or never trade.
  • Since build 6180 (Sep 2026) it also reads Strategy Tester reports and launches optimizations.

What is the MT5 AI Assistant

The assistant shows up in two places, with different roles:

  • In the terminal: it analyzes market conditions, reviews your open positions, examines your trade history and answers questions about instruments.
  • In MetaEditor: it works as a development tool. It generates MQL5 programs, analyzes existing code, finds errors and suggests fixes, explains algorithms and helps refactor projects.

All conversations are saved in the Chats tab of the Navigator. Under the hood, what lets the AI act inside the platform is MCP (Model Context Protocol), an open standard for communication between applications and AI agents. I explained MCP in detail in the MetaTrader 5 MCP guide.

Timeline: from build 5955 to 6180

Build When What changed
5955 (beta) Jun 26, 2026 First version with MCP and agentic AI, released on the MetaQuotes-Demo server.
6060 Late Jul 2026 Official release: AI Assistant in the terminal and in MetaEditor, free MQL5 Lite plan, OpenAI, Anthropic, Gemini, DeepSeek and Ollama providers, native MCP, passkeys and new account access levels.
6090 Late Jul 2026 More MCP tools: add indicators to the chart and list indicators with their parameters. AI Assistant disabled on Windows 7.
6140 Aug 2026 New providers (Alibaba, Cerebras, z.ai, Bitdeer AI, Atomic Chat and others), chat deletion, a tool to stop the Strategy Tester. MQL5.community provider context reduced from 1 million to 500,000 tokens.
6180 Early Sep 2026 The AI can now read Strategy Tester reports, launch optimizations, read the tester’s settings and log, and read the terminal and EA logs.

How to enable the AI Assistant (step by step)

  1. Update MT5 to build 6060 or later. Check your version under Help → About. Each broker rolls out builds at its own pace; if yours hasn’t released it yet, you can test on a demo account on the MetaQuotes-Demo server.
  2. Log in to the terminal with your MQL5.community account. According to MetaQuotes, when you log in you get the free MQL5 Lite plan and the MQL5.community provider is set up automatically, with the API key already added.
  3. (Optional) Use your own key. In the terminal settings you can switch the provider and model and enter your API key. Settings sync between the terminal and MetaEditor.
  4. Set up security before your first conversation (next section).
  5. Open the assistant. In the terminal, it sits right in the trading interface. In MetaEditor, open it from the File menu, the toolbar or the Navigator’s context menu.

⚠️ Windows 7

Starting with build 6090, the AI Assistant was disabled on Windows 7 due to lack of OS support. The rest of MT5 keeps working.

Set up security before anything else

MetaQuotes provides three levels for AI-initiated trades: prohibit, require manual confirmation, or allow. On top of that, there are separate settings for the AI’s access to network requests and the command line.

Option When to use it
Prohibit AI trading Recommended default for a live account. The AI analyzes but doesn’t open or close orders.
Require manual confirmation For testing on demo: you approve each order before it goes to the broker.
Allow trading Only on demo, and only if you understand the risk. A misinterpreted request becomes an executed order.
Network and command line Leave them off if you don’t need them. These are the permissions that most expand what the AI can do outside MT5.

✅ My rule

Live account = AI with no permission to trade. It analyzes, writes code and runs tests; I’m the one who clicks buy or sell.

In the terminal: 6 useful everyday prompts

Specific requests get better answers. A few examples that fit what MetaQuotes describes:

  • Analyze my open positions and tell me which one carries the highest risk relative to free margin.
  • Summarize my history for the last 3 months: win rate, longest losing streak and the hours with the worst results.
  • Scan the Market Watch and list the symbols that broke above the high of the last 20 candles on H1.
  • What are the XAUUSD specifications on my account: contract size, margin and trading hours?
  • Add an RSI(14) and an EMA(200) to the current chart.
  • Compare the drawdown of my EURUSD and GBPUSD trades over the last month.

Double-check critical numbers in the platform itself. Language models still make calculation mistakes and can misread an ambiguous request.

In MetaEditor: from prompt to compiled EA

This is where the assistant saves the most time. The workflow I recommend:

  1. Describe the strategy with objective rules, not “buy when it looks good”.
  2. Compile (F7) and, if an error shows up, ask the AI to fix it, pasting the exact message.
  3. Ask for an explanation of any part you didn’t understand. Don’t run code when you don’t know what it does.
  4. Test in the Strategy Tester. With build 6180, the AI also reads the report (see the MCP guide).
  5. Forward test on demo for a few weeks before even thinking about a live account.

An example prompt that usually produces a clean EA:

Create an Expert Advisor in MQL5 for EURUSD H1:
- Buy when EMA 20 crosses above EMA 50 and RSI(14) is above 50
- Sell on the opposite crossover, with RSI below 50
- Only 1 open position at a time
- Stop loss of 1.5x ATR(14) and take profit of 2x the stop
- Risk 1% of the balance per trade (calculate the lot size)
- All parameters as inputs, so I can optimize them later
- Comment the code in English

💡 Tip

Always ask for parameters as input and a comment explaining each block. That makes review easier and leaves the EA ready for optimization.

MQL5 Lite, your own key or Ollama: which to use?

Option Cost Privacy Best for
MQL5 Lite (MQL5.community) Free when you log in with your MQL5 account MetaQuotes states it doesn’t store or share the data Anyone who wants to start without configuring anything
Your own key (OpenAI, Anthropic, Gemini, DeepSeek…) You pay the provider for usage Follows each provider’s policy Anyone who wants to pick the model (for example, one that’s strong at code)
Ollama (local model) No API cost, but requires hardware Data stays on your machine Anyone who prioritizes privacy

Since build 6140, the MQL5.community provider’s context window dropped from 1 million to 500,000 tokens. That still leaves room for large projects, but it’s worth knowing if you tend to paste entire files into the chat.

Honest limitations

  • AI doesn’t turn a bad strategy into a good one. It writes code fast, but a statistical edge depends on testing. See what the data showed in The 70% win rate is a myth.
  • Answers are informational, not investment advice, as MetaQuotes itself warns.
  • LLMs make mistakes: they can cite an MQL5 function that doesn’t exist or calculate the wrong lot size. Compile, read and test.
  • Your broker may take a while to release new builds.
  • External provider = the provider’s policy for your data.

Frequently asked questions

Is the MT5 AI Assistant free?

With the MQL5 Lite plan, yes: it’s activated when you log in with your MQL5.community account. If you use your own API key, you pay for usage directly to the provider.

Can I use Claude in MT5?

Yes. Anthropic has been among the supported providers since build 6060; just enter your API key in the settings. For external agents like Claude Code, see the MCP guide.

Can the AI trade on its own in my account?

Only if you allow it. You can prohibit it, require manual confirmation for each order, or grant full permission.

Does it work on Deriv or Exness MT5?

It depends on whether the broker has already released build 6060 or later. Check under Help → About.

Sources: build 6060 release notes · MT5 release history · build 6180 announcement. Checked in September 2026.

🚀 To test the AI Assistant and your EAs without risking money, free Deriv MT5 demo ($10,000 virtual):

Open Deriv MT5 Demo →

DM

Dan Machado

Founder IA Trader Pro · AI-for-trading specialist

⚠️ Disclaimer: Educational content, not investment advice. Trading involves substantial risk. AI tools do not guarantee profit and can make mistakes. Always test on demo before trading with real capital. This article contains a Deriv affiliate link.

Similar Posts