toki-plus/ai-trader-for-mt4
一个用于将大型语言模型 (LLM) 与 MetaTrader 4 (MT4) 连接起来的 Python 框架,用于创建自主的、工具驱动的算法交易机器人。A Python framework to bridge Large Language Models (LLMs) with MetaTrader 4 (MT4) for creating autonomous, tool-driven algorithmic trading bots.
Implements a **Prepare→Scan→Act→Conclude ReAct-based workflow** where the AI strictly follows structured trading rules defined in system prompts, including risk limits, relative spread cost analysis, and A/B/C signal grading; uses a two-tier tool system with high-level workflow tools (prepare, scan, trade, management flows) and 30+ atomic tools for pattern recognition, dynamic stop-loss calculation, and position sizing. Communicates with MT4 through asynchronous file I/O in the `MQL4/Files` directory—avoiding DLL fragility—while maintaining an SQLite database that parses order Comments into structured metadata and pre-calculates profit ladder levels for hierarchical position management.
Stars
8
Forks
5
Language
Python
License
MIT
Category
Last pushed
Jan 29, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/agents/toki-plus/ai-trader-for-mt4"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
refraction-ray/xalpha
基金投资管理回测引擎
brokermr810/QuantDinger
AI-driven, local-first quantitative trading platform for research, backtesting and live...
dragon1086/prism-insight
AI-based stock analysis and trading system
DemonDamon/FinnewsHunter
FinnewsHunter: Multi-agent financial intelligence platform powered by AgenticX. Real-time news...
The-Swarm-Corporation/CryptoAgent
CryptoAgent is a professional, enterprise-grade solution designed to fetch, analyze, and...