read_optimization
Inspect an MT5 optimization cache (.opt) to view its header, optimized inputs, pass count, and top N passes ranked by a selected metric. Use it to compare optimization results and identify robust parameter choices.
Instructions
Read an MT5 optimisation cache (.opt): header, optimised inputs, pass count and the top N passes by criterion.
Ranking uses every pass in the cache. The best pass of a genetic run is a biased sample; prefer robust neighbourhoods over the single top row. Replaces parse_optimization / top_passes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to a Tester/cache/*.opt file; defaults to the newest cache matching expert/symbol/period. | |
| top_n | No | How many best passes to return. | |
| expert | No | Expert name (file stem) used to select the matching cache file. | |
| period | No | Timeframe code such as M15, H1, D1. | |
| symbol | No | Symbol name as shown in Market Watch, e.g. EURUSD. | |
| criterion | No | Pass field to rank by: profit, profit_factor, expected_payoff, recovery_factor, sharpe_ratio, maxdrawdown, trades, custom_fitness. | profit |
| descending | No | true = highest first; use false for drawdown-style metrics. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||