Agent skill · tradermonty
mt5-robot-tester
Select the best MetaTrader 5 trading robots (Expert Advisors) that have not been backtested yet, by running the MT5 Strategy Tester from the command line through a 3-round pipeline. Use when the user wants to batch-test MT5 bots/EAs, screen robots across all symbols, optimize EA parameters, or move candidate bots to finalists based on profit, drawdown, positive months/years and equity-curve criteria. Runs terminal64.exe headless; Windows + MetaTrader 5 required at run time.
What it needs
About 5k tokens when loaded.
What this skill does
MT5 Robot Tester Overview Select the best MetaTrader 5 robots (Expert Advisors) from a candidates folder by driving the Strategy Tester from the command line through a 3-round pipeline, moving each bot between folders as it advances, and learning across runs to improve selection each loop. The whole run is checkpointed and resumable. Round 1 — screening (all pairs): backtest the EA on each symbol in the configured common.symbols list (one Optimization=0 backtest per symbol — MT5 build 6061 leaves the Optimization=3 XML empty, so per-symbol backtests are used). Gate: ≥5 symbols profitable AND best symbol ≥3× deposit. Round 2 — best-pair backtest: single backtest on the best symbol; analyze net profit %, worst drawdown %, % positive months, all-years-positive, LR Correlation, months-to-new-high. Round 3 — sequential parameter optimization: optimize the 5–6 inputs after MagicNumber, one at a time, range ±50% step 5%; then a final backtest. Finalist: optimized result improves on Round 2 and profit ≥4× deposit and worst drawdown ≤12%. Tested bots move to in-testing; finalists are also copied to finalists with their optimized .set. When to Use "Prueba robots / bots / EAs en MetaTrader 5." Screen a folder of MT5 Expert Advisors and pick the best across all pairs. Optimize EA parameters and decide finalists by profit/drawdown/consistency. Resume an interrupted testing run. Prerequisites Windows + MetaTrader 5 installed (the tester runs terminal64.exe). Broker tick data downloaded (default modeling is real ticks, Model=4). The three folders under MQL5\Experts: candidates, in-testing, finalists. common.symbols set in the config — the pairs Round 1 backtests (your Market Watch symbols). Optional per-bot .set files (config setsdir) for the Round-2 baseline and Round-3 parameter optimization. Every input is fixed during optimization except the one parameter currently being searched; without a .set, Round 3 is skipped and the verdict comes from Round 2. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills tradermonty/mt5-robot-tester