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.

38
/ 100
Emerging

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.

No Package No Dependents
Maintenance 10 / 25
Adoption 4 / 25
Maturity 9 / 25
Community 15 / 25

How are scores calculated?

Stars

8

Forks

5

Language

Python

License

MIT

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.