risk-metrics-calculation

Compute portfolio VaR, CVaR, Sharpe, Sortino, and drawdown metrics.

1|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/haxlys/skills --skill risk-metrics-calculation-haxlys
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: risk-metrics-calculation
Source: https://github.com/haxlys/skills/tree/main/vendored/wshobson-agents/plugins/quantitative-trading/skills/risk-metrics-calculation
Command: npx skills add https://github.com/haxlys/skills --skill risk-metrics-calculation-haxlys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Comprehensive risk metrics for portfolios enable informed risk management and decision making.

Core Features & Use Cases

  • VaR and CVaR for tail risk assessment across portfolios
  • Sharpe, Sortino, Calmar, and omega metrics for risk-adjusted performance
  • Drawdown analysis and risk-parity style insights for capital allocation

Quick Start

Run an analysis on your portfolio returns to generate a full risk metrics summary.

Frequently Asked Questions about risk-metrics-calculation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate portfolio VaR and CVaR for tail risk assessment?▼

To calculate portfolio VaR and CVaR for tail risk assessment, you can apply historical and parametric risk estimation methods to your portfolio returns. This process outputs comprehensive tail-risk metrics for single-asset or multi-asset portfolios.

What is the best way to compute risk-adjusted performance metrics like Sharpe and Sortino ratios?▼

Computing risk-adjusted performance metrics like Sharpe and Sortino ratios involves analyzing your portfolio returns against volatility and downside deviation. This yields quantitative insights for performance attribution and dashboard reporting.

Can I run drawdown analysis on a multi-asset portfolio using numpy and pandas?▼

Yes, you can run drawdown analysis on a multi-asset portfolio using Python libraries like numpy and pandas. The analysis generates risk-parity style insights and drawdown metrics to inform capital allocation decisions.

Does this approach support both historical and hypothetical risk scenarios?▼

Yes, this risk metrics calculation supports both historical and hypothetical risk scenarios. It applies volatility and tail-risk analysis to quantify risk exposure under varying market conditions for single or multi-asset portfolios.

When do I need Calmar and omega metrics for portfolio risk monitoring?▼

You need Calmar and omega metrics for portfolio risk monitoring when evaluating risk-adjusted returns relative to maximum drawdown and probability thresholds. These metrics quantify performance attribution and exposure for comprehensive dashboard reporting.