# Mt5 Robot Tester

Select the best MetaTrader 5 trading robots (Expert Advisors) that have not been...

- Repository: https://github.com/tradermonty/claude-trading-skills (3536 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add tradermonty/claude-trading-skills --skill mt5-robot-tester -g -a claude-code -y`
Codex: `npx skills add tradermonty/claude-trading-skills --skill mt5-robot-tester -g -a codex -y`
Cursor: `npx skills add tradermonty/claude-trading-skills --skill mt5-robot-tester -g -a cursor -y`
Gemini CLI: `npx skills add tradermonty/claude-trading-skills --skill mt5-robot-tester -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

The rest: https://github.com/tradermonty/claude-trading-skills/blob/HEAD/skills/mt5-robot-tester/SKILL.md
