Overview
What is MetaTrader 5 MCP?
MetaTrader 5 MCP is a project that provides a fully automated workflow for running, optimizing, and documenting MetaTrader 5 (MT5) Expert Advisors (EAs) using a Distrobox container, a Flask REST API, and an MCP server.
How to use MetaTrader 5 MCP?
To use MetaTrader 5 MCP, set up the Distrobox container as per the provided configuration, start the Flask REST API, and utilize the MCP server to trigger optimizations and generate reports.
Key features of MetaTrader 5 MCP?
- Automated setup and launch of MetaTrader 5 in Wine/Distrobox.
- Programmatic optimization of EAs via a Flask REST API.
- Unified interface for trading and optimization through the MCP server.
- Automated documentation of optimization results in HTML and Markdown formats.
- Version control for all code and configurations.
Use cases of MetaTrader 5 MCP?
- Automating the optimization of trading strategies.
- Generating detailed reports for trading performance analysis.
- Managing trading operations programmatically.
FAQ from MetaTrader 5 MCP?
- Can I customize the Distrobox configuration?
Yes! You can copy and modify the
src/mt5.inifile to customize your local development settings.
- Is there a way to check the optimization status?
Yes! You can use the
GET /optimization_status/<id>endpoint to check the status of your optimization runs.
- How are results saved?
Results are saved in
~/mt5-dev/result/manual/tuning/as HTML, Markdown, CSV, and JSON files.