Skip to content

Optimize-drawdown-metrics-iteration-for-benchmark-stability#9357

Closed
aiSynergy37 wants to merge 5 commits intoQuantConnect:masterfrom
aiSynergy37:pr-9354-benchmark-fix
Closed

Optimize-drawdown-metrics-iteration-for-benchmark-stability#9357
aiSynergy37 wants to merge 5 commits intoQuantConnect:masterfrom
aiSynergy37:pr-9354-benchmark-fix

Conversation

@aiSynergy37
Copy link
Copy Markdown
Contributor

Benchmark-stability fix extracted from #9354.

This PR optimizes Statistics.CalculateDrawdownMetrics to reduce extra allocations and duplicate type checks in the drawdown path while preserving OHLC behavior.

It is intended to unblock the unstable benchmark failures observed in #9354 (EmptySingleSecuritySecondEquityBenchmark).

Related: #9354

@AlexCatarino
Copy link
Copy Markdown
Member

Hi @aiSynergy37 ,
I don't think it's a good idea to make a PR on top of open PRs. The original PR might change, and then the other dev will have to cherry-pick your commit which will complicate their workflow. I think you should comment on the original PR or wait for the merge and then open a PR.

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.

3 participants