main
Working directory used with mt5-quant (Linux/Wine, headless). - ea/: MQL5 sources synced into the MT5 Experts dir by scripts/sync_ea.sh - scripts/: healthcheck (env self-test + symlink repair), MT5 launcher, backtest runner, EA sync, optimization result parser - setfiles/: .set parameter files - docs/: upstream defect log, environment layout, backtest checklist, and 0001-linux-fixes.patch (the local Linux patch to mt5-quant source) - CLAUDE.md: operating notes for this workspace Excluded by .gitignore: reports/ (regenerated), logs/, the 50 MB broker installer, and the plaintext mt5-quant.yaml (lives outside this tree).
MT5 量化回测工作区
Linux 无头环境下的 MetaTrader 5 回测/优化平台,基于 mt5-quant MCP 服务器。
新人/新 agent 请先读 CLAUDE.md —— 里面有必须知道的兼容性坑和工具使用陷阱。
快速开始
bash scripts/healthcheck.sh # 自检
bash scripts/healthcheck.sh --fix # 自动修复
bash scripts/run_backtest.sh MyEA XAUUSD M5 2026.01.01 2026.10.01
文档
| 文件 | 内容 |
|---|---|
| CLAUDE.md | 上手指南:环境布局、工具陷阱、标准工作流、重构约定 |
| docs/LAYOUT.md | 路径速查表、数据库结构、账户信息 |
| docs/UPSTREAM-BUGS.md | 9 个上游 bug 的复现与修复方案 |
| docs/BACKTEST_CHECKLIST.md | 批量回测检查清单 |
目录
CLAUDE.md 上手指南(先读)
docs/ 详细文档
scripts/ healthcheck / launch_mt5 / run_backtest / parse_optimization
ea/ 已编译 EA 的源码副本
mql5-src/ 开发中的 MQL5 源码
setfiles/ .set 参数文件
reports/ 回测输出(工具自动生成)
logs/ 运行日志
Languages
MQL5
68.7%
Shell
24.5%
Python
6.8%