About MBT
MBT is an MCP server published by FXDavid-OffbeatForex in the Finance category: backtest any MT5 indicator through Claude AI — MCP server that reads real indicator signals and replays them on live broker data. Conduid read 29 tools from its source: backtest, capture_candidate_equity, compile_ea, continue_holdout_tests, continue_symbol_optimization, get_config and 23 more. No package is published for it, so it installs from a source checkout.
The repository has 22 stars and 4 forks, is licensed MIT, and its last commit was on 8 Oct 2026. Conduid has no tagged release on record for it. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include backtesting, backtesting-tools, forex, metatrader5, mql5 and mt5.
Install
git clone https://github.com/FXDavid-OffbeatForex/MBTTools (29)
backtestreplay + full metrics + HTML report (requires internet for chart)| Parameter | Type | Description |
|---|---|---|
| html_report | boolean | |
| since_date | string |
capture_candidate_equityopt-in verified recorder replay for measured equity/DD| Parameter | Type | Description |
|---|---|---|
| html_report | boolean | |
| pass_id | integer | |
| period | string | |
| run_id * | string | |
| timeout_sec | integer |
compile_eacompile an EA/indicator with MetaEditor → structured errors/warnings| Parameter | Type | Description |
|---|---|---|
| source * | string |
continue_holdout_testscontinue unrun frozen candidates after a time-budget pause, reusing optimization and completed tests| Parameter | Type | Description |
|---|---|---|
| holdout_budget_sec | integer | |
| html_report | boolean | |
| run_id * | string | |
| timeout_sec | integer |
continue_symbol_optimizationresume unfinished markets/candidate periods| Parameter | Type | Description |
|---|---|---|
| batch_id * | string | |
| budget_sec | integer | |
| html_report | boolean |
get_configshow the active terminal + signal fileget_monte_carlo_resultsinspect one saved analysis and reverify its source/provenance without rerunning| Parameter | Type | Description |
|---|---|---|
| analysis_id * | string | |
| run_id * | string |
get_ohlcvOHLCV bars for supported symbols/timeframes available from your terminal (max 2000)| Parameter | Type | Description |
|---|---|---|
| count | integer | |
| symbol * | string | |
| timeframe * | string |
get_optimization_resultsinspect saved per-pass results by run ID (paginated)| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| offset | integer | |
| run_id * | string |
get_signalsread your indicator's logged signals| Parameter | Type | Description |
|---|---|---|
| since_date | string |
get_symbol_optimization_resultsinspect saved batch status and per-market results| Parameter | Type | Description |
|---|---|---|
| batch_id * | string |
import_ea_parametersvalidate/import a native SET from the configured Tester profile| Parameter | Type | Description |
|---|---|---|
| expert * | string | |
| set_name * | string |
inspect_ea_inputsinspect supported EA defaults, named choices, groups and fixed-only flags| Parameter | Type | Description |
|---|---|---|
| expert * | string |
open_backtest_chartopen MT5 with saved single-test or candidate deal markers; no EA execution| Parameter | Type | Description |
|---|---|---|
| pass_id | integer | |
| period | string | |
| report_path | string | |
| run_id | string |
optimize_earun a bounded MT5 EA input search using local tester agents; verified results automatically get an HTML experiment report| Parameter | Type | Description |
|---|---|---|
| criterion | string | |
| expert * | string | |
| forward_date | string | |
| forward_mode | string | |
| from_date * | string | |
| html_report | boolean | |
| max_combinations | integer | |
| min_trades | integer | |
| mode | string | |
| model | string | |
| parameters * | object | |
| symbol * | string | |
| testing | object | |
| timeframe * | string | |
| timeout_sec | integer | |
| to_date * | string |
optimize_ea_holdoutoptimize before an explicit cutoff, freeze an MT5-sized eligible shortlist, and independently test it on later dates| Parameter | Type | Description |
|---|---|---|
| criterion | string | |
| cutoff_date * | string | |
| expert * | string | |
| from_date * | string | |
| holdout_budget_sec | integer | |
| holdout_timeout_sec | integer | |
| holdout_top_n | integer | |
| html_report | boolean | |
| max_combinations | integer | |
| min_trades | integer | |
| mode | string | |
| model | string | |
| parameters * | object | |
| symbol * | string | |
| testing | object | |
| timeframe * | string | |
| timeout_sec | integer | |
| to_date * | string |
optimize_ea_symbolssequential explicit-symbol optimization/holdout batch| Parameter | Type | Description |
|---|---|---|
| budget_sec | integer | |
| html_report | boolean | |
| settings * | object | |
| symbols * | array | |
| timeout_sec | integer |
pingcheck MT5 is running and reachablerecover_forward_reportvalidate a manually exported MT5 Forward Results XML for a run missing its automatic export| Parameter | Type | Description |
|---|---|---|
| html_report | boolean | |
| run_id * | string |
render_experiment_reportgenerate an HTML optimization report from saved results| Parameter | Type | Description |
|---|---|---|
| run_id * | string |
render_symbol_optimization_reportregenerate the HTML market-comparison report| Parameter | Type | Description |
|---|---|---|
| batch_id * | string |
restore_tester_commissionsrecover an interrupted journalled profile/cache transactionrun_indicatorrun an indicator headlessly so it logs its signals — no chart attach| Parameter | Type | Description |
|---|---|---|
| from_date | string | |
| indicator * | string | |
| signal_file | string | |
| symbol * | string | |
| timeframe | string | |
| to_date | string |
run_monte_carloshuffle/bootstrap verified closed trades; save diagnostics and update HTML| Parameter | Type | Description |
|---|---|---|
| html_report | boolean | |
| method | string | |
| pass_id | integer | |
| period | string | |
| run_id * | string | |
| seed | integer | |
| simulations | integer |
run_strategy_testerrun MT5's real headless Strategy Tester on an EA → metrics + styled standalone report and original MT5 report| Parameter | Type | Description |
|---|---|---|
| deposit | number | |
| execution_delay_ms | integer | |
| expert * | string | |
| from_date | string | |
| html_report | boolean | |
| model | string | |
| symbol * | string | |
| timeframe | string | |
| to_date | string |
signal_paritydiff two signal sets and report the first divergence| Parameter | Type | Description |
|---|---|---|
| candidate | string | |
| price_tol | number | |
| reference * | string |
start_mt5_chart_launcherstart the optional localhost bridge for HTML chart-opening buttons (30-minute lifetime)stop_mt5_chart_launcherstop the chart-button bridge without closing MT5validate_signalscheck SL/TP geometry of every signalSecurity checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 5.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 34 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdiomcp_server.py:604
- Starts other programs
- 10 callsinstall.py:29, core/chart_launcher.py:59, core/compiler.py:148
- Outbound network calls
- 1 callcore/chart_launcher.py:42
- Writes or deletes files
- 39 callsinstall.py:42, install.py:61, install.py:85
- Lockfile
- None in the repository
Pattern matches on the source text of 34 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 5.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README