agentleFS
SKE-LabsSKE-Labs/agent-trading-skills/skills/risk-management/correlation-risk/SKILL.md

correlation-risk

Skill17 starsChanged 4 months agoApache-2.0View on GitHub

Manage correlated positions to prevent concentrated exposure. Use when holding multiple positions, diversifying portfolio, or assessing total account risk.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use covariance to estimate portfolio return volatility: sigma_p = sqrt(w' Sigma w).

    line 30
  2. Distinctive:

    Use inversely correlated positions as hedges when appropriate

    line 48
  3. Distinctive:

    Treat the setup as a testable hypothesis, not a prediction.

    line 53
  4. Distinctive:

    Do not assume correlations are static.

    line 62
  5. Distinctive:

    Never rely on one covariance estimate—use scenarios and concentration limits too.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Correlation Risk Management

Managing correlated positions prevents oversized exposure to single market moves.

Correlation Basics

Correlation coefficient ranges from -1 to +1:

CorrelationMeaning
+1.0Perfect positive (move together)
+0.5Moderate positive
0No correlation
-0.5Moderate negative
-1.0Perfect negative (move opposite)

Estimate correlation from aligned, same-currency returns over predeclared horizons. Report sample length, frequency, confidence interval, and current versus stress estimates; never use a permanent pair table.

Combined Risk

Use covariance to estimate portfolio return volatility: sigma_p = sqrt(w' Sigma w). Do not insert stop-loss dollars into that formula: stop losses are nonlinear, can gap, and are not standard deviations. For loss control, aggregate factor exposures and run joint gap, correlation-to-one, volatility-spike, and liquidity scenarios.

Exposure Limits

Apply portfolio-mandated limits by issuer, sector, country, currency, duration, beta, and common factor. Reduce or hedge positions until both normal covariance risk and stress loss fit the remaining risk budget. State the hedge basis and residual risk; a long and short are not diversified merely because signs differ.

Workflow

  1. List all open positions
  2. Align returns and estimate covariance/beta with uncertainty
  3. Map factor and scenario losses, including gaps past stops
  4. Reduce or hedge until mandate limits pass under normal and stress assumptions
  5. Monitor -- correlations shift over time, especially in stress events

Diversification Strategies

  • Spread across uncorrelated asset classes (crypto, forex, equities, commodities)
  • Mix long and short when possible to reduce directional exposure
  • Use inversely correlated positions as hedges when appropriate
  • Different timeframes diversify only if their realized return streams and stress losses demonstrate it

Evidence and Validation

  • Treat the setup as a testable hypothesis, not a prediction. Define thresholds, entry, invalidation, and exit before evaluating outcomes.
  • Calibrate on the same instrument, venue, session, and timeframe. Use closed candles and a held-out or walk-forward sample; record every variant tried.
  • Include spread, fees, slippage, borrow or funding, partial fills, and latency. Reject the setup when net expectancy is not positive or depends on one narrow parameter.
  • Return observed inputs, missing data, cost assumptions, entry, invalidation, exit, and a valid, watch, or no-trade status.
  • Research basis: Ang & Bekaert documents time-varying correlations and higher-correlation stress regimes; estimate recent covariance and run stress scenarios instead of using permanent pair values.

Key Rules

  • Aggregate shared factor, collateral, venue, liquidity, and gap risk across positions.
  • Do not assume correlations are static; show rolling estimates and adverse stress matrices.
  • Never rely on one covariance estimate—use scenarios and concentration limits too.
  • Take limits from the portfolio mandate rather than universal percentages.
  • Report assumptions, missing exposures, and the largest normal and stressed risk contributors.

Related Skills

  • position-sizing -- correlated positions require reduced per-position sizing
  • drawdown-management -- correlated positions amplify drawdowns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.