Repository navigation
Add frozen-portfolio capital sweeps with lagged monetary turnover caps - #89
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A frozen weight portfolio requests very different monetary trades at one million and ten billion. Add a capital-capacity sensitivity API and CLI that replays the same saved targets across every supplied account size with shared strictly lagged monetary turnover caps.
Caps use a full prior window and exclude the order date; unavailable history is recorded separately from observed zero turnover. Each account starts in cash at the saved evaluation start, while prior turnover still informs its first cap. The uncapped reference uses the same directional permissions. Report fills, actual cash, missed targets, normalized NAV and complete per-capital ledgers without retraining or picking a best scenario.
mlquant capacityreuses panel/weight/prediction artifacts, requires a source category and currency, accepts explicit vendor amount-unit conversion, and preserves ordinary backtest files. This is a sensitivity policy against lagged monetary turnover, not a proven real-market capacity bound or a model of order queues/impact.Type of change
Reproducibility
Validation
Raw synthetic audit retains every result. The largest constructed account loses less because it stays 98.6% in cash, illustrating why exposure and fills must be read with returns. No public-data performance snapshot or alpha claim is added.