Prepare v0.1.x release candidate @codex#4
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 087dfe369c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c56cc554f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eb7e3f23b3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let totalTrades = normalizedReports.reduce(0) { partial, pair in | ||
| partial + (pair.0.summary?.metrics.tradeCount ?? 0) | ||
| } | ||
| let weightedWinRate: Double | ||
| if totalTrades > 0 { | ||
| weightedWinRate = normalizedReports.reduce(0) { partial, pair in | ||
| let trades = pair.0.summary?.metrics.tradeCount ?? 0 | ||
| let wins = Double(trades) * (pair.0.summary?.metrics.winRate ?? 0) | ||
| return partial + wins | ||
| } / Double(totalTrades) |
There was a problem hiding this comment.
Weight trade metrics by resolved sleeve allocation
The portfolio summary currently computes tradeCount and the totalTrades > 0 win-rate branch from raw sleeve trade totals without using resolvedWeight, so sleeves with zero (or tiny) allocation still influence these headline metrics. For example, with explicit weights like [1, 0], return metrics reflect only the first sleeve but win rate and trade count still include the second sleeve’s trades, producing inconsistent and misleading portfolio-level results for optimization/comparison workflows.
Useful? React with 👍 / 👎.
Pull request created by Codex.
Summary
v0.1.xrelease metadata, roadmap state, and release notesVerification
swift buildswift build -c releaseswift testswift run BacktestingKitTrialDemoRemaining release decision
v0.1.1or merge tomainfirst