Results Analysis
Overview
Merlin generates results from its optimization processes, providing detailed insights into strategy and portfolio performance.
Results Directory Structure
When running Merlin commands, results are stored in the merlin-results directory with timestamped folders:
merlin-results/
├── 2023-06-16_091234-strategy-boxcar/
└── 2023-06-17_145612-portfolio-diversified/
Each folder is named with:
- Timestamp:
YYYY-MM-DD_HHMMSS - Operation type:
strategy, orportfolio - Strategy/portfolio name
Directory Contents
Each results directory contains:
- Configuration Files: Copies of input configuration files
- Log Files: Detailed operation logs (
merlin.log) - Results Data: CSV files with performance data
- Performance Reports: Metrics and analysis files
Strategy Optimization Results
The strategy results directory contains:
-
Walkforward Results: The
walkforward_df.csvfile contains the Strategy PnLs, features, model results and TP/SL values for each timestamp. This is the internal state of the simulation at each timestamp. -
Performance Stats files: The
wf-model_pnl-vs-base.statsandwf-model_ptsl_pnl-vs-base.statsfiles compares the optimized strategy against the baseline (unfiltered run). -
Tearsheets: The
wf-model_pnl-vs-base.htmlandwf-model_ptsl_pnl-vs-base.htmlfiles provides a tearsheet of the filtered and unfiltered runs with model and with PT/SL targets.