mcpField
T
trader-risk

trader-risk

github.com/ruvnetData & databases80.0k731 installsUpdated today
Repository

About trader-risk

A skill for assessing position and portfolio risk with neural-trader, including risk metrics, position sizing, and circuit-breaker checks. It helps organize risk findings and save assessments for later reference.

Key features

  1. 01Assess risk for positions and portfolios
  2. 02Calculate VaR and correlations
  3. 03Recommend position sizing
  4. 04Check circuit breakers and alerts
  5. 05Store risk assessments

Use cases

  1. 01Review risk for a single position
  2. 02Check portfolio correlation and concentration
  3. 03Calculate position sizing before a trade
  4. 04Save risk metrics for later reference

MCP support

Uses the Ruflo memory store tool to save risk assessments in the trading-risk namespace.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ruvnet/ruflo --skill trader-risk

After installing, type/trader-riskin Claude Code to confirm it loaded.

Details

From the project README

Assess portfolio and position risk using neural-trader's risk engine.

Steps:

  1. Ensure neural-trader is available: npm ls neural-trader 2>/dev/null || npm install --ignore-scripts neural-trader
  2. Run risk assessment:
    # Single position
    npx neural-trader --risk assess --symbol TICKER
    npx neural-trader --var --symbol TICKER --investment 10000
    
    # Portfolio-wide
    npx neural-trader --risk assess --portfolio NAME
    npx neural-trader --correlation --portfolio NAME --flag-threshold 0.8
    
  3. Calculate position sizing:
    npx neural-trader --risk-tolerance 0.02 --symbol TICKER
    npx neural-trader --position-sizing kelly --symbol TICKER
    
  4. Check circuit breaker status:
    • Daily loss limit (3%), weekly loss limit (5%)
    • Correlation spike (>0.85), volatility regime (VIX > 2x)
    • Max positions, single-name concentration (>10%)
  5. Present: risk metrics, position sizing recommendation, active breakers, alerts
  6. Store assessment: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "risk-TICKER-DATE", value: "RISK_METRICS", namespace: "trading-risk" })

Comments

Markdown supported