optimization
Run MetaTrader 5 parameter optimizations in this workspace and summarize real results from exported optimization reports.
Skill by kecoma1
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kecoma1-optimization
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/optimization
What's inside
- Skill name
optimization- Description
- Run MetaTrader 5 parameter optimizations in this workspace and summarize real results from exported optimization reports. Use when Codex needs to optimize EA inputs such as SL, TP, RSI values, or other inputs for experts under MQL5\Experts, by generating a tester .ini with [TesterInputs], launching MT5 from the terminal, and reading the resulting XML ranking.
- License
- MIT
- Instructions
- 167 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "optimization" does not match folder "optimize"
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
# Optimization ## Overview Use this skill for MT5 strategy optimizations in this workspace. Confirm the optimization setup, write a tester `.ini` under `MQL5\config\`, place the parameter ranges in `[TesterInputs]`, close any running MT5 instance, launch `terminal64.exe` with `/config:...`, and summarize the actual ranking from the exported XML report. ## Required workflow 1. Confirm the test configuration before launching. 2. Ask for these fields in this order unless the user has already specified them clearly: - Expert or strategy file - Symbol - Timeframe - Date range - Deposit - Deposit currency - Leverage - Tick model - Optimization on or off - Visualization on or off 3. Ask which input parameters will be optimized and the exact ranges. 4. Create or update a tester `.ini` under `MQL5\config\`. 5. Put the optimization ranges inside a `[TesterInputs]` section in that `.ini`. 6. Create `MQL5\backtest\reports\` if missing. 7. If MT5 is already running, close it before launch. 8. Launch MT5 with the generated `.ini`. 9. Read terminal and tester logs to confirm the optimization really started and finished. 10. Read the exported optimization XML and summarize the best passes. ## Critical local rule In this workspace, command-line optimization works when the parameter ranges are defined in `[TesterInputs]` inside the tester `.ini`. Do not rely on `ExpertParameters=...set` for optimization ranges here. That produced the tester error: `no optimized parameter selected, please check input(s) to be optimized and set start, step and stop values` ## Tester ini pattern Use this structure: ```ini [Tester] Expert=codex\RSICrossTrader.ex5 Symbol=GBPUSD Period=M15 Model=4 Optimization=1 FromDate=2026.02.28 ToDate=2026.03.28 ForwardMode=0 Deposit=100000 Currency=USD Leverage=1:100 ExecutionMode=0 OptimizationCriterion=0 Visual=0 Report=MQL5\backtest\reports\report_name ReplaceReport=1 ShutdownTerminal=1 UseLocal=1 UseRemote=0 UseCloud=0 [TesterInputs] InpRSIPeriod=4||4||1||4||N InpRSIPrice=1||1||0||7||N InpBuyLevel=30.0||30.0||3.000000||300.000000||N InpSellLevel=70.0||70.0||7.000000||700.000000||N InpLots=0.01||0.01||0.001000||0.100000||N InpStopLossPoints=100||100||10||120||Y InpTakeProfitPoints=100||100||10||120||Y InpMagicNumber=20260328||20260328||1||202603280||N InpOnePositionPerSymbol=true||false||0||true||N ``` ## Input range format Use MT5 optimization format: ```text ParameterName=current||start||step||stop||selected ``` Rules: - Use `Y` only for parameters being optimized. - Use `N` for fixed parameters. - Keep the current value equal to the chosen start value unless there is a reason not to. - Preserve the parameter names exactly as declared in the EA inputs. Example: ```text InpStopLossPoints=100||100||10||120||Y InpTakeProfitPoints=100||100||10||120||Y ``` ## Path rules - Write `Expert=` relative to `MQL5\Experts\`. Use `codex\RSICrossTrader.ex5`, not `Experts\codex\RSICrossTrader.ex5`. - Write the tester `.ini` under `MQL5\config\`. - Export reports to `MQL5\backtest\reports\report_name`. - Optimization exports a readable XML workbook. Use that XML as the primary source. ## Launch command Use this command pattern: ```powershell Start-Process -FilePath 'C:\Program Files\MetaTrader 5\terminal64.exe' -ArgumentList '/config:C:\Users\<user-id>\AppData\Roaming\MetaQuotes\Terminal\<terminal-id>\MQL5\config\your-optimization.ini' -Wait ``` Before launching, close any existing MT5 process. Otherwise the tester may not run. ## Validation Read these logs after launch:
From kecoma1/MQL5-SKILLS, MIT.
More from kecoma1/MQL5-SKILLS
- 0.647score
edit-davinci
kecoma1
Lanzar, preparar y manejar DaVinci Resolve desde el MCP para edicion basica - conectar con el bridge, crear y configurar el proyecto, importar video, recortar…
SkillAFreshness: A★ 18Claude Code +9 - 0.647score
captions-davinci
kecoma1
Generar y quemar subtitulos animados en un short vertical a partir de la transcripcion por palabras, con el estilo fijo del usuario guardado en style.json -…
SkillAFreshness: A★ 18Claude Code +9 - 0.553score
orquestate
kecoma1
Orquestar cuentas MetaTrader 5 del workspace actual usando MQL5\Scripts\interface.py, archivos accounts/account_id/info.md, accounts/account_id/bots.ini y…
SkillCFreshness: C★ 18Claude Code +9 - 0.487score
git
kecoma1
Use when creating branches, writing commits, or following repository Git conventions in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
candles-and-series
kecoma1
Use when working with MqlRates arrays, candles, or time series in MQL5 in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
expert-advisors
kecoma1
Use when creating or editing MQL5 expert advisors in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
forge
kecoma1
Work with Forge-hosted Git repositories from this workspace, including login, staged commits, and push workflows.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
paint-objects
kecoma1
Use when drawing or updating chart objects in MQL5 for this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
compile-mql5
kecoma1
Use when compiling MQL5 experts, indicators, scripts, or include-dependent code in this workspace from the terminal.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
run-backtests
kecoma1
Use when running MetaTrader 5 Strategy Tester backtests from the terminal in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
analyze
kecoma1
Analyze market regime and session structure in this MQL5 workspace using reusable CSV exports from an MQL5 script.
SkillDFreshness: D★ 18Claude Code +9 - 0.483score
interface
kecoma1
Use the local MetaTrader 5 Python trading CLI at MQL5\Scripts\interface.py.
SkillDFreshness: D★ 18Claude Code +9
Signals
- Stars
- 18
- Forks
- 9
- Open issues
- 1
- Last commit (this folder)
- Apr 9, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/kecoma1/MQL5-SKILLS
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kecoma1
- 0.647score
edit-davinci
kecoma1
Lanzar, preparar y manejar DaVinci Resolve desde el MCP para edicion basica - conectar con el bridge, crear y configurar el proyecto, importar video, recortar…
SkillAFreshness: A★ 18Claude Code +9 - 0.647score
captions-davinci
kecoma1
Generar y quemar subtitulos animados en un short vertical a partir de la transcripcion por palabras, con el estilo fijo del usuario guardado en style.json -…
SkillAFreshness: A★ 18Claude Code +9 - 0.553score
orquestate
kecoma1
Orquestar cuentas MetaTrader 5 del workspace actual usando MQL5\Scripts\interface.py, archivos accounts/account_id/info.md, accounts/account_id/bots.ini y…
SkillCFreshness: C★ 18Claude Code +9 - 0.487score
git
kecoma1
Use when creating branches, writing commits, or following repository Git conventions in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
candles-and-series
kecoma1
Use when working with MqlRates arrays, candles, or time series in MQL5 in this workspace.
SkillDFreshness: D★ 18Claude Code +9 - 0.487score
expert-advisors
kecoma1
Use when creating or editing MQL5 expert advisors in this workspace.
SkillDFreshness: D★ 18Claude Code +9
Cite this page
optimization skill. Agent Mart. https://agentmart.dev/skills/kecoma1-optimization (last updated 2026-10-24)