Skip to content

Add annualized volatility metric - #326

Open
mameikagou wants to merge 1 commit into
nkaz001:masterfrom
mameikagou:codex/add-volatility-metric
Open

Add annualized volatility metric#326
mameikagou wants to merge 1 commit into
nkaz001:masterfrom
mameikagou:codex/add-volatility-metric

Conversation

@mameikagou

Copy link
Copy Markdown

Closes #324.

Adds a standalone Volatility metric alongside Sharpe and Sortino. It computes the standard deviation of net PnL changes and annualizes it using the inferred samples per day and configurable trading days per year.

Also exports the metric, adds it to the API reference, and covers the annualization calculation with a focused test.

Test: pytest py-hftbacktest/tests/test_stats.py -q

@codacy-production

codacy-production Bot commented Aug 24, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@mameikagou
mameikagou force-pushed the codex/add-volatility-metric branch from 1fcdb85 to 26e8f9d Compare August 24, 2026 07:20
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.

Add annualized Volatility metric to stats

1 participant