You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
[W]hen backtests are run via MCP, the logs in Tester\logs and Tester\agent-..\logs are empty files.
Whoa. That was unexpected.
As Alain subsequently replied, I'm sure that the MQ Developers will deem it a bug to be fixed.
Thank you Alain. Looking forward to having it being addressed by MQ.
Thanks for the clear write-up — this matches what several people are seeing on build 6140 with the built-in MCP server.
1. Is Report= expected to be ignored on MCP-launched runs?
Yes, currently it appears to be. When the tester is started via tester_run_backtest, the terminal runs the test and exposes results only through the MCP tools (tester_get_status / tester_get_report). The classic HTML report generation (and the “writing report” dialog) is skipped. The rest of the [Tester] section is still respected, which is why everything else works. This looks like intentional design for the MCP path rather than a pure bug, but MetaQuotes hasn’t published a formal statement on it yet.
2. Is there another way to get the deals from a run started via MCP?
Not cleanly at the moment.
The practical workarounds right now are:
3. Is a tester deals/history tool planned?
No public roadmap has been shared. Given how new the built-in MCP is (and that build 6140 already added a few tester-related improvements), it’s reasonable to hope for a tester_get_deals / richer report tool in a later build, but nothing is confirmed.
Until then the most reliable way to get the full Deals table remains the classic command-line launch with Report= + ReplaceReport=1.
Would be useful if others can confirm whether they see the same behaviour on non-portable installs or on different builds.
Cheers.
Thank you Alain. Looking forward to having it being addressed by MQ.
The issue has been fixed from build 6215.
Confirmed on v6230.
Thank you Alain for looking into this — the report data itself is now available over MCP (via tester_get_report) and matches what CLI's Report= produces (deals, commission, inputs, all consistent). Appreciated.
One minor thing still missing: the PNGs that a CLI-launched run produces (holding time, hst and MFE/MAE) aren't generated on MCP-launched runs. The balance chart mechanism is already there (on both CLI and MCP paths) — the deal data already carries a running Balance per deal chart — so this looks like it's just not switched on for MCP-launched runs yet, not something that needs building from scratch. Could those charts be enabled the same way?
If that's done, and we save tester_get_report's as xlsx/html, we'd have an exact match for everything Report= is giving us via CLI. So this isn't really about getting Report= to work on MCP-launched runs — it's that tester_get_report plus saving it already gets us there.
Lastly, the main chart currently (as always) shows Balance only. Would it be possible to plot Balance and Equity together, like the Chart tab does live during a test? That'd be more useful than what's there now.
Again, really appreciate you helping to get it done.
Confirmed on v6230.
Thank you Alain for looking into this — the report data itself is now available over MCP (via tester_get_report) and matches what CLI's Report= produces (deals, commission, inputs, all consistent). Appreciated.
One minor thing still missing: the PNGs that a CLI-launched run produces (holding time, hst and MFE/MAE) aren't generated on MCP-launched runs. The balance chart mechanism is already there (on both CLI and MCP paths) — the deal data already carries a running Balance per deal chart — so this looks like it's just not switched on for MCP-launched runs yet, not something that needs building from scratch. Could those charts be enabled the same way?
If that's done, and we save tester_get_report's as xlsx/html, we'd have an exact match for everything Report= is giving us via CLI. So this isn't really about getting Report= to work on MCP-launched runs — it's that tester_get_report plus saving it already gets us there.
Lastly, the main chart currently (as always) shows Balance only. Would it be possible to plot Balance and Equity together, like the Chart tab does live during a test? That'd be more useful than what's there now.
Again, really appreciate you helping to get it done.
While checking I got the exact same report.