Background
The current equity pipeline hard-codes monthly decile assignments and the explorer labels the spread as 10-1. The analysis should also report quintile portfolios so that 5-1 and 10-1 results can be compared consistently.
Scope
- Parameterize the number of portfolios instead of hard-coding ten groups.
- Build both quintile (5-1) and decile (10-1) long-short series.
- Support the existing equal-weighted and value-weighted variants for both sorts.
- Expose the selected sort in the explorer, chart subtitle, hover text, caption, and output metadata.
Acceptance criteria
Background
The current equity pipeline hard-codes monthly decile assignments and the explorer labels the spread as 10-1. The analysis should also report quintile portfolios so that 5-1 and 10-1 results can be compared consistently.
Scope
Acceptance criteria
scripts/build_long_short_portfolios.pyproduces reproducible 5-1 and 10-1 outputs from the same source release.chars/scripts/long-short-explorer.jsallows users to distinguish or select quintile and decile results.