MetaTrader AI functions as an interactive chat-based assistant and robot, capable of opening, closing, and modifying positions based on natural language prompts. The system can fetch real-time market data, calculate technical indicators, and retrieve account statistics to inform its actions. It includes a graphical interface for on-chart interaction and supports risk-based lot sizing. It can be used for manual command execution or integrated into automated MQL5 scripts.
Natural language command execution for order management
Integration with OpenAI and DeepSeek LLM providers
Read from app.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
inpApiKey
string
sk--
Your API Key
inpProvider
ENUM_LLM_PROVIDER
LLM_PROVIDER_DEEPSEEK
LLM Provider
inpModel
ENUM_LLM_MODEL
LLM_MODEL_DEEPSEEK_V4_FLASH
LLM Model
inpLocalUrl
string
http://127.0.0.1:8080/v1/chat/completions
Local LLM URL
inpThinking
ENUM_LLM_THINKING
LLM_THINKING_NONE
LLM Thinking Level
inpRunSubAgent
bool
false
Run prompt via sub-agent
inpPrompt
string
Prompt for sub-agent mode
inpPromptFile
string
Prompt file path
inpResponseFile
string
Response file path
inpHttpTimeout
int
180
HTTP timeout in seconds
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone jblanked/metatrader-ai from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This MetaTrader 5 expert advisor implements a multi-strategy framework based on Smart Money Concepts. It identifies fractal-based liquidity sweeps, order blocks, and Fibonacci zones across multiple timeframes, typically using H4 for trend direction and M15 for execution. The EA includes an optional machine learning fil
FxChartAI OpenEA is an automated trading solution for MetaTrader 5 that executes trades based on signals retrieved from the FxChartAI platform. The system operates in two modes, allowing for live API integration or historical testing using CSV datasets. It utilizes multi-timeframe analysis across M10 and H1 intervals,
MT5Trading robotAI / machine learningTrend following
This Expert Advisor for MetaTrader 5 is specifically designed for XAUUSD trading on the M1 timeframe. It utilizes a hybrid strategy combining classic technical indicators like RSI, Moving Averages, and ATR with an OpenAI API integration for signal validation. The robot features an on-chart dashboard for telemetry and i
Makets GA is a neural network trading system for MetaTrader 5 that utilizes genetic algorithms to optimize weights for multi-layer perceptrons. Instead of standard price prediction, the EA evolves trading strategies by processing price data across several major currency pairs simultaneously. It implements evolutionary
This MetaTrader 5 expert advisor combines technical indicators with machine learning forecasts to trade the Forex market. It uses a trend-following approach based on Exponential Moving Average crossovers, filtered by the Average Directional Index and volume confirmations. A unique feature is its integration with extern
This expert advisor for MetaTrader 5 utilizes a genetic algorithm and neural network to make autonomous trading decisions without relying on traditional technical indicators. It implements a self-learning mechanism that evaluates a population of species to determine entry, exit, and lot sizing across multiple currency