A comprehensive toolkit for calculating essential portfolio risk metrics including Value at Risk (VaR), Expected Shortfall, and risk-adjusted return ratios.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install risk-metrics-calculation
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install risk-metrics-calculation using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Risk Metrics Calculation skill provides developers and quantitative analysts with a robust framework for measuring and monitoring financial risk. By integrating this skill via Openclaw Skills, users can automate the computation of volatility, tail risk, and drawdown statistics across various time horizons. It moves beyond basic standard deviation to offer sophisticated measures like Cornish-Fisher VaR and Conditional VaR (CVaR), ensuring a more accurate representation of potential losses in non-normal market conditions.
This implementation is designed for modularity, allowing for individual asset analysis or full portfolio-level risk decomposition. Whether you are building a risk dashboard or a systematic trading agent, these Openclaw Skills offer the mathematical precision required for modern capital preservation and performance attribution.
To get started with these financial Openclaw Skills, ensure your environment has the necessary quantitative libraries installed.
pip install numpy pandas scipy
Initialize the RiskMetrics class with a pandas Series of returns to begin calculating metrics immediately within your AI agent workflow.
The skill organizes data primarily through specialized Python classes and return types. The following table describes the output structure for a typical risk summary generated by these Openclaw Skills:
| Metric | Type | Description |
|---|---|---|
| var_95_historical | float | Value at Risk at 95% confidence level using historical simulation. |
| cvar_95 | float | Expected Shortfall (Average loss beyond the 95% VaR threshold). |
| sharpe_ratio | float | Annualized risk-adjusted excess return over the risk-free rate. |
| max_drawdown | float | The largest peak-to-trough decline in portfolio value. |
| volatility | float | Annualized standard deviation of returns for general risk assessment. |
Loading
A sophisticated risk management engine designed to monitor portfolio exposure, calculate trade expectancy, and implement systematic hedging strategies.

A high-rigor AI agent skill designed for systematic trading research, alpha validation, and robust backtesting strategies.

An expert financial engineering tool for building trading algorithms and performing deep market data analysis.

A professional-grade scaffold and pattern library for developing high-performance TradingView indicators using modern Pine Script v5 and v6 standards.

A robust web scraping tool for Openclaw Skills designed to bypass anti-bot detections and handle dynamic JavaScript content seamlessly.

A high-performance web scraping skill for Openclaw Skills that bypasses anti-bot protections and handles dynamic content effortlessly.








































