Files
MBT/mql5
FXDavidandClaude Opus 4.8 ef1b66756b feat: run_indicator — backtest an indicator headlessly, no chart attach
MT5 can't attach an indicator to a chart via API, so a generic host EA
(MBT_IndicatorHost) loads any indicator with iCustom inside the Strategy
Tester; the indicator's OnCalculate runs over the date range and its
SignalLogger.mqh (now tester-aware: FILE_COMMON under MQL_TESTER) writes the
signals to the shared Common/Files folder, which the new run_indicator tool
reads back. Removes the manual "attach to a chart" step from the flow.

- core/indicator_runner.py: drives the headless run (stale-guard, .set in
  Profiles/Tester, signal span + warm-up note, instance-clash detection)
- mcp_server.py: wires the run_indicator tool
- mql5/SignalLogger.mqh: tester-gated FILE_COMMON (chart behaviour unchanged)
- mql5/MBT_IndicatorHost.mq5: the generic host EA (places no trades)
- install.py: also copies the host EA into MQL5/Experts
- README: no-chart flow documented; chart attach now optional

Validated under Wine: 348 signals on XAUUSDzero H1, stale-guard + error paths
confirmed; host EA + SignalLogger compile 0/0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 12:36:13 -07:00
..