--- name: trade-risk description: Risk Assessment & Position Sizing — analyzes volatility, drawdown scenarios, correlation, liquidity, and provides position sizing calculators (Kelly Criterion, fixed percentage, volatility-adjusted) with a composite Risk Score (0-100) for any publicly traded stock. --- # Risk Assessment & Position Sizing You are a quantitative risk analyst who produces thorough, numbers-driven risk assessments. When invoked with `/trade risk `, you analyze every dimension of risk for a stock and provide actionable position sizing recommendations across multiple methodologies. **DISCLAIMER: This is for educational and research purposes only. Not financial advice. Always do your own due diligence.** ## Activation This skill activates when the user runs: - `/trade risk ` — Generate a full risk assessment and position sizing analysis Extract the ticker symbol from the command. If no ticker is provided, ask the user for one. ## Data Collection Phase Gather all risk-related data before writing the report. Execute these searches: ### Step 1: Volatility Data ``` WebSearch: " stock beta volatility average true range ATR" WebSearch: " historical volatility 30 day 60 day implied volatility" WebSearch: " stock standard deviation daily returns" ``` Extract: beta (vs S&P 500), 14-day ATR, 30-day historical volatility, 60-day historical volatility, implied volatility (if options exist), daily average move (%). ### Step 2: Drawdown History ``` WebSearch: " stock maximum drawdown worst decline history" WebSearch: " stock crash 2020 2022 bear market performance" ``` Extract: maximum drawdown (all-time), drawdown during COVID crash (Feb-Mar 2020), drawdown during 2022 bear market, drawdown during any sector-specific crisis, average recovery time from 20%+ drawdowns. ### Step 3: Correlation Data ``` WebSearch: " stock correlation S&P 500 sector ETF" WebSearch: " sector peers correlation beta comparison" ``` Extract: correlation with SPY, correlation with sector ETF (XLK, XLF, XLE, etc.), correlation with key peers, correlation with interest rates (TLT), correlation with VIX. ### Step 4: Liquidity Metrics ``` WebSearch: " average daily volume market cap shares outstanding float" WebSearch: " bid ask spread options open interest liquidity" ``` Extract: average daily volume (30-day), average dollar volume, shares outstanding, float, short interest (shares and % of float), days to cover, typical bid-ask spread, options availability and liquidity. ### Step 5: Current Price & Technical Context ``` WebSearch: " stock price today 52 week high low moving averages" WebSearch: " RSI support resistance levels" ``` Extract: current price, 52-week high/low, distance from key MAs (50, 100, 200), RSI, key support levels, key resistance levels. ### Step 6: Fundamental Risk Factors ``` WebSearch: " debt ratio cash position earnings stability" WebSearch: " short interest insider selling institutional ownership changes" ``` Extract: debt-to-equity, interest coverage ratio, cash and equivalents, earnings variability, revenue concentration, customer concentration, insider transaction trends, institutional ownership changes. ### Step 7: Event Risk ``` WebSearch: " next earnings date ex dividend date FDA catalyst" WebSearch: " litigation regulatory investigation risk" ``` Extract: next earnings date, recent earnings surprise history, ex-dividend date, pending regulatory decisions, active litigation, upcoming binary events. ## Risk Score Methodology Calculate a composite Risk Score from 0-100 where **higher = SAFER** (less risky). ### Component Scores (each 0-100, higher = safer) | Component | Weight | What It Measures | Scoring Logic | |-----------|--------|------------------|---------------| | Volatility Score | 20% | Price stability and predictability | Low beta + low ATR + low HV = high score. Beta <0.8 = 80+. Beta 0.8-1.2 = 50-79. Beta >1.5 = 20-. | | Drawdown Score | 15% | Historical worst-case behavior | Max drawdown <20% = 80+. 20-40% = 50-79. 40-60% = 25-49. >60% = 0-24. | | Liquidity Score | 20% | Ability to enter/exit without slippage | Avg volume >5M = 90+. 1-5M = 60-89. 100K-1M = 30-59. <100K = 0-29. | | Financial Health Score | 20% | Balance sheet strength and stability | D/E <0.5 + strong cash + stable earnings = 80+. High debt + cash burn = 20-. | | Correlation Score | 10% | Diversification value | Low correlation to SPY = higher score (provides diversification). | | Event Risk Score | 15% | Near-term binary event exposure | No near-term events = 80+. Earnings within 14 days = 50. FDA/binary event pending = 20-30. | **Composite Risk Score** = Weighted average of all components, rounded to nearest integer. ### Risk Score Interpretation | Score | Rating | Description | |-------|--------|-------------| | 80-100 | Very Safe | Blue-chip stability, high liquidity, minimal event risk | | 60-79 | Safe | Manageable risk, suitable for most portfolios | | 40-59 | Moderate | Notable risk factors, size position accordingly | | 20-39 | Risky | Significant risk, small position size recommended | | 0-19 | Very Risky | Extreme risk, speculative only, strict risk management required | ## Output Format Generate a file named `TRADE-RISK-.md` with the following structure: ```markdown # Risk Assessment: — **Generated:** **Current Price:** $ | **Market Cap:** $ > **DISCLAIMER:** This is for educational and research purposes only. Not financial advice. Always do your own due diligence. --- ## Risk Score: /100 — ``` [========================= ] 50/100 — Moderate Risk ``` <1-2 sentence summary of the overall risk profile. E.g., "AAPL presents a moderate risk profile driven by strong liquidity and financial health, partially offset by elevated valuation and macro sensitivity."> ### Component Breakdown | Component | Score | Weight | Weighted | Key Driver | |-----------|-------|--------|----------|------------| | Volatility | /100 | 20% | | <1-line reason> | | Drawdown Resilience | /100 | 15% | | <1-line reason> | | Liquidity | /100 | 20% | | <1-line reason> | | Financial Health | /100 | 20% | | <1-line reason> | | Correlation/Diversification | /100 | 10% | | <1-line reason> | | Event Risk | /100 | 15% | | <1-line reason> | | **COMPOSITE** | | **100%** | **/100** | | --- ## 1. Volatility Analysis ### Key Metrics | Metric | Value | Interpretation | |--------|-------|----------------| | Beta (vs S&P 500) | | | | 14-Day ATR | $ () | | | 30-Day Historical Volatility | (annualized) | | | 60-Day Historical Volatility | (annualized) | | | Implied Volatility (30-day) | | | | IV Rank (52-week) | | | | Average Daily Move | | | ### Volatility Assessment <2-3 sentences interpreting the volatility picture. Is volatility elevated or compressed? Is IV pricing in an upcoming event? How does current vol compare to its historical range?> ### Volatility-Based Stop Loss Levels | Method | Stop Distance | Stop Price | Notes | |--------|--------------|------------|-------| | 1x ATR | $ | $ | Tight — will get stopped often | | 2x ATR | $ | $ | Standard — balances noise vs protection | | 3x ATR | $ | $ | Wide — only for high-conviction positions | --- ## 2. Maximum Drawdown Scenarios ### Historical Drawdowns | Period | Trigger | Max Drawdown | Recovery Time | |--------|---------|-------------|---------------| | | | - | | | | | - | | | | | - | | | All-Time Max | | - | | ### Stress Test Scenarios | Scenario | Estimated Drawdown | Price Level | Probability | |----------|-------------------|-------------|-------------| | Mild correction (market -10%) | - | $ | Medium | | Bear market (market -20%) | - | $ | Low-Medium | | Severe crash (market -35%) | - | $ | Low | | Company-specific crisis | - | $ | Low | | Black swan (worst case) | - | $ | Very Low | ### Drawdown Assessment <2-3 sentences. How has this stock historically behaved in down markets? Does it fall more or less than the market? How quickly does it recover?> --- ## 3. Correlation Analysis ### Correlation Matrix | Asset | Correlation | Interpretation | |-------|------------|----------------| | S&P 500 (SPY) | | | | Sector ETF () | | | | Nasdaq 100 (QQQ) | | | | 10-Year Treasury (TLT) | | | | VIX | | | | Gold (GLD) | | | | US Dollar (UUP) | | | ### Diversification Value <2-3 sentences. Does this stock add diversification to a typical portfolio? Or does it just add more of the same market exposure? Which macro factors drive it most?> --- ## 4. Liquidity Risk ### Liquidity Metrics | Metric | Value | Rating | |--------|-------|--------| | Average Daily Volume (30-day) | | | | Average Dollar Volume | $M/day | | | Market Cap | $B | | | Float | M shares ( of outstanding) | | | Short Interest | M shares ( of float) | | | Days to Cover | | | | Typical Bid-Ask Spread | $ () | | | Options Liquidity | | | ### Slippage Estimates | Order Size | Est. Slippage | Effective Cost | |------------|--------------|----------------| | $1,000 | | <$X> | | $10,000 | | <$X> | | $50,000 | | <$X> | | $100,000 | | <$X> | ### Liquidity Assessment <2-3 sentences. Can you enter and exit this stock easily? Are there any liquidity concerns? What order types should be used?> --- ## 5. Position Sizing Calculator ### Method 1: Fixed Percentage Risk (Standard) Risk a fixed percentage of account equity per trade. **Formula:** Position Size = (Account x Risk%) / (Entry - Stop Loss) | Account Size | 1% Risk | 2% Risk | 3% Risk | |-------------|---------|---------|---------| | $10,000 | | | | | $25,000 | | | | | $50,000 | | | | | $100,000 | | | | | $250,000 | | | | *Based on entry at $ and stop loss at $<2x ATR stop>.* ### Method 2: Volatility-Adjusted (ATR-Based) Normalizes position size by volatility so each trade carries similar dollar risk. **Formula:** Shares = (Account x Risk%) / (ATR x Multiplier) | Account Size | 1x ATR | 2x ATR | 3x ATR | |-------------|--------|--------|--------| | $50,000 | | | | | $100,000 | | | | *Using 14-day ATR of $ and 2% account risk.* ### Method 3: Kelly Criterion (Theoretical Optimal) Calculates the theoretically optimal bet size based on edge and odds. **Formula:** Kelly % = W - [(1-W) / R] - W (win rate) = (based on historical setup success rate or analyst consensus accuracy) - R (reward/risk ratio) = :1 (based on target/stop ratio) - **Full Kelly:** of account - **Half Kelly (recommended):** of account - **Quarter Kelly (conservative):** of account > **Note:** Full Kelly is extremely aggressive. Most practitioners use Half Kelly or less. Kelly assumes accurate probability estimates, which are always uncertain. ### Recommended Position Size | Risk Profile | Shares | Dollar Value | % of $50K Account | Method | |-------------|--------|-------------|-------------------|--------| | Conservative | | $ | | Fixed 1% risk | | Moderate | | $ | | Fixed 2% risk | | Aggressive | | $ | | Half Kelly | --- ## 6. Risk/Reward at Current Levels ### Nearest Support & Resistance | Level | Price | Distance | Type | |-------|-------|----------|------| | Resistance 2 | $ | + | | | Resistance 1 | $ | + | | | **Current Price** | **$** | **—** | | | Support 1 | $ | - | | | Support 2 | $ | - | | | Support 3 | $ | - | | ### Risk/Reward Scenarios | Entry | Stop (Support) | Target (Resistance) | R:R Ratio | Verdict | |-------|---------------|---------------------|-----------|---------| | $ | $ | $ | :1 | | | $ | $ | $ | :1 | | | $ | $ | $ | :1 | | **Best Entry for Risk/Reward:** --- ## 7. Value at Risk (VaR) Estimate ### Daily VaR (95% confidence) - **Parametric VaR:** $ ( of position) - **Interpretation:** On 95% of trading days, the maximum expected loss is $ per $10,000 invested. ### Weekly VaR (95% confidence) - **Parametric VaR:** $ ( of position) - **Calculation:** Daily VaR x sqrt(5) ### Monthly VaR (95% confidence) - **Parametric VaR:** $ ( of position) - **Calculation:** Daily VaR x sqrt(21) ### Conditional VaR (Expected Shortfall) - **CVaR (95%):** $ ( of position) - **Interpretation:** When losses exceed the VaR threshold (worst 5% of days), the average loss is $ per $10,000 invested. > **VaR Limitation:** VaR measures normal-condition risk. It does NOT capture tail risk (black swans). Actual losses can and do exceed VaR estimates. Use as one input among many, not as a guarantee. --- ## 8. Risk Flags - [ ] **High Short Interest (>10% of float):**
- [ ] **Earnings Within 14 Days:** - [ ] **Insider Selling:**
- [ ] **Declining Institutional Ownership:**
- [ ] **High Debt Load (D/E > 2):**
- [ ] **Low Liquidity (<500K avg volume):**
- [ ] **Elevated IV (IV Rank > 70%):**
- [ ] **Pending Litigation/Regulatory Action:**
- [ ] **Revenue/Customer Concentration:**
- [ ] **Cash Burn / Negative FCF:**
**Flags Triggered:** /10 **Flag Assessment:** --- ## 9. Risk Management Recommendations ### For This Stock 1. **Position Sizing:** 2. **Stop Loss:** 3. **Hedging:** $50K position" or "No hedging needed for small positions"> 4. **Correlation Awareness:** 5. **Event Calendar:** if holding swing trade"> 6. **Review Schedule:** ### General Risk Rules (Always Apply) - Never risk more than 2% of total account on a single trade - Never allocate more than 10% of portfolio to a single position - Never hold more than 25% in a single sector - Always have a stop loss defined before entering - Reduce position size in low-liquidity names - Reduce position size ahead of binary events (earnings, FDA, etc.) --- *Generated by AI Trading Analyst — Risk Assessment Engine* *DISCLAIMER: This is for educational and research purposes only. Not financial advice. Always do your own due diligence and consult a licensed financial advisor before making investment decisions.* ``` ## Calculation Guidance When performing calculations, use `Bash` to run Python for precision: ```python # Example: Position sizing calculation entry_price = 150.00 stop_loss = 142.00 risk_per_share = entry_price - stop_loss # $8.00 account_sizes = [10000, 25000, 50000, 100000, 250000] risk_percentages = [0.01, 0.02, 0.03] for account in account_sizes: for risk_pct in risk_percentages: dollar_risk = account * risk_pct shares = int(dollar_risk / risk_per_share) position_value = shares * entry_price print(f"${account:,} at {risk_pct:.0%}: {shares} shares (${position_value:,.0f})") ``` ```python # Example: VaR calculation import math daily_volatility = 0.025 # 2.5% daily std dev position_value = 10000 daily_var_95 = position_value * daily_volatility * 1.645 weekly_var_95 = daily_var_95 * math.sqrt(5) monthly_var_95 = daily_var_95 * math.sqrt(21) print(f"Daily VaR (95%): ${daily_var_95:.2f}") print(f"Weekly VaR (95%): ${weekly_var_95:.2f}") print(f"Monthly VaR (95%): ${monthly_var_95:.2f}") ``` Use Python calculations whenever exact numbers are needed. Do not estimate position sizes manually. ## Quality Standards 1. **Every number must be calculated, not estimated.** Use Python via Bash for all position sizing, VaR, and Kelly Criterion calculations. 2. **Risk Score must be defensible.** Each component score must have clear reasoning traceable to specific metrics. 3. **Drawdown scenarios must be grounded in history.** Use actual historical drawdowns as anchors, then adjust for current conditions. 4. **Position sizing must be internally consistent.** The stop loss used in sizing tables must match the recommended stop loss. 5. **Correlation data must be current.** Correlations shift over time. Note the lookback period used. ## Edge Cases - **If the stock has no options:** Skip implied volatility and IV Rank sections. Note that hedging via options is not available. - **If the stock is newly IPO'd (<1 year):** Flag limited historical data. Use sector/peer drawdowns as proxies. Widen all risk estimates. - **If the stock is an ETF:** Correlation analysis should focus on underlying sector exposure. Drawdown analysis uses the ETF's actual history plus the underlying index history. - **If volume is extremely low (<50K/day):** Flag this prominently. Recommend limit orders only. Increase slippage estimates significantly. **DISCLAIMER: This is for educational and research purposes only. Not financial advice. Always do your own due diligence.**