Skip to content

Add an inspectable walk-forward risk-parity example - #2

Merged
ult666666 merged 1 commit into
mainfrom
feat/walk-forward-risk-parity
Oct 25, 2026
Merged

ult666666 merged 1 commit into
mainfrom
feat/walk-forward-risk-parity

Conversation

@ult666666

Copy link
Copy Markdown
Owner

The portfolio and backtest examples currently demonstrate separate workflows. Add a runnable walk-forward composition that estimates monthly risk-parity allocations from exactly the prior return window, excluding the rebalance close, then evaluates them with the existing engine.

A monthly equal-weight benchmark shares the cash warmup, trade dates, initial wealth and proportional-cost conventions. Six CSV exports expose fictional prices, both target tables, estimation windows, net wealth and a shared-period summary. The README walkthrough documents the timing boundary, blank-target semantics and synthetic-model limitations. No optimization, library API or market-data integration changes.

Validation: all 345 tests passed (333 existing + 12 new), with 99.50% library coverage, plus existing lint/format and strict mypy checks. New tests cover current/future-close perturbations, exact prior windows, feasible equal-risk allocations, shared cash warmup/entry costs, fixed-target cost monotonicity and actual deterministic CLI exports. Ran the default and shorter documented commands; independently generated default CSV directories match byte for byte.

@ult666666
ult666666 merged commit 3d3770e into main Oct 25, 2026
6 checks passed
@ult666666
ult666666 deleted the feat/walk-forward-risk-parity branch November 4, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant