read_optimization_csv
Read optimization results from CSV files generated by OptExport.mqh to retrieve top passes sorted by profit, Sharpe ratio, or custom metric for performance analysis.
Instructions
Read optimization results from the CSV file generated by OptExport.mqh in Common Files folder.
Args: run_id: The run ID specified during optimization run. top_n: Number of top passes to return. criterion: The column name to sort by (e.g. 'profit', 'sharpe_ratio', 'custom_metric'). descending: Set to True to sort from highest to lowest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| run_id | Yes | ||
| criterion | No | profit | |
| descending | No |