Three MCP tools that drive MT5's own toolchain, complementing the Python signal
replay, so a strategy can go from indicator to executable EA and be verified:
- compile_ea — MetaEditor compile -> structured errors/warnings.
- run_strategy_tester — MT5's headless Strategy Tester (real spread/swaps/exec)
-> parsed metrics + the EA's OnTester() summary cross-check.
- signal_parity — mechanical bar-by-bar diff of two signal sets -> first
divergence (deterministic "did the port drift?" check).
Cross-platform: on Linux/macOS the tester runs through Wine (config path is
translated via winepath; `tester.portable` launches the terminal /portable for
installs that keep data beside the exe). No-op passthrough on native Windows.
Adds the tester: block to config.example.yaml and a README "Use it" section.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add MIT LICENSE
- Anonymize broker path in config.example.yaml; add slippage_points + risk_per_trade
- Fix encoding ansi→cp1252 in signals.py (cross-platform safe)
- Fix install.py silently ignoring pip errors
- Cap get_ohlcv at 2000 bars; add ping tool; clarify HTML report UX in descriptions
- Escape symbol/timeframe in HTML report to prevent malformed output
- Move run_*.py to scripts/; move example CSVs to examples/
- Update .gitignore to block accidental CSV commits from root
- README: Python 3.9+ requirement, Chart.js internet note, new sections for examples/ and scripts/
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Backtest any MetaTrader 5 indicator by talking to Claude.
- SignalLogger.mqh: drop-in MQL5 include, writes standard signal CSV
- core/: config-driven MT5 connection, OHLCV fetch, signal reader, backtest engine, HTML report
- mcp_server.py: generic Claude tools (get_ohlcv, get_signals, backtest, validate_signals, get_config)
- install.py + README: one-shot setup and docs
Principle: never recalculates the indicator in Python — reads the indicator's
own logged signals and replays real MT5 bars forward to resolve WIN/LOSS/OPEN.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>