[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J0QER4YMEMCDNATVX12B5C":3,"skill-same:01M6J0QER4YMEMCDNATVX12B5C":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":50,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6J0QER4YMEMCDNATVX12B5C","kelly-position-sizing-perps",null,"Use when sizing any perpetual position on HyperLiquid to compute the Kelly-optimal notional, apply fractional Kelly for risk management, cap by portfolio exposure limits, and adjust for leverage, funding carry cost, and correlation to existing positions.","enuno\u002Fhyperliquid-trading-firm","enuno","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6727752?v=4","01M6J09HF6Y74150F7PEMC446X","Elvis Nuno","01M6J09HKK0YMKE39JXT8JT8VM",1,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fmulticlaw\u002Fmetaclaw\u002Fskills\u002Frisk\u002Fkelly-position-sizing-perps\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"kelly position sizing perps","position","perps","compute","funding","Existing","for","leverage","adjust","positions","agentic","hyperliquid","cap","risk management","cost","portfolio","use","management","risk","correlation","2026-11-10 10:12:30",false,"---\nname: kelly-position-sizing-perps\ndescription: Use when sizing any perpetual position on HyperLiquid to compute the Kelly-optimal notional, apply fractional Kelly for risk management, cap by portfolio exposure limits, and adjust for leverage, funding carry cost, and correlation to existing positions.\ncategory: agentic\n---\n\n# Kelly Position Sizing — Perpetuals\n\n## When This Skill Activates\n\nApply this skill **before every new position entry** on HyperLiquid\nperpetuals to determine the maximum allowable notional size. Also apply when:\n\n- Scaling into an existing position (second leg, post-cascade re-entry)\n- Evaluating whether a strategy signal has sufficient edge to justify\n  any position at all\n- Adjusting position size after a regime change (funding spike, OI surge,\n  book fragility increase)\n- Computing correlated exposure caps when multiple positions are open\n  simultaneously across related assets\n- Backtesting a strategy and needing a principled sizing model to avoid\n  over-fit fixed-fraction assumptions\n\n---\n\n## Core Principle\n\nThe Kelly Criterion maximises the long-run geometric growth rate of\ncapital by sizing each bet as a fraction of bankroll proportional to\nedge divided by odds. Applied naively to leveraged perpetuals, full\nKelly produces positions that are **far too large** for practical risk\nmanagement — it optimises for long-run median outcome but accepts\nshort-run ruin probability that is unacceptable in a live trading\nsystem. **Fractional Kelly** (typically ¼ to ½ Kelly) captures most\nof the growth rate benefit while dramatically reducing drawdown and\nruin risk.\n\n> **Rule**: Compute full Kelly as the theoretical maximum. Apply a\n> Kelly fraction of 0.25–0.50. Then enforce hard portfolio caps\n> regardless of Kelly output. The Kelly formula is a ceiling, never\n> a floor.\n\n---\n\n## Kelly Formula for Perpetuals\n\n### Base Kelly Fraction\n\nFor a binary win\u002Floss trade model (entry → TP or SL):\n\n```python\ndef kelly_fraction(\n    win_rate: float,          # estimated probability of hitting TP before SL\n    avg_win_pct: float,       # average win as % of notional (TP distance)\n    avg_loss_pct: float,      # average loss as % of notional (SL distance)\n) -> float:\n    \"\"\"\n    Standard Kelly formula: f* = (p * b - q) \u002F b\n    where:\n      p = win_rate\n      q = 1 - win_rate\n      b = avg_win_pct \u002F avg_loss_pct  (reward-to-risk ratio)\n    Returns fraction of bankroll to risk (0.0 to 1.0).\n    Returns 0.0 if edge is zero or negative (do not trade).\n    \"\"\"\n    if avg_loss_pct \u003C= 0 or avg_win_pct \u003C= 0:\n        return 0.0\n    b = avg_win_pct \u002F avg_loss_pct\n    q = 1.0 - win_rate\n    f_star = (win_rate * b - q) \u002F b\n    return max(0.0, f_star)\n\n# Example: 55% win rate, 2% TP, 1% SL (2:1 RR)\n# b = 2.0\n# f* = (0.55 * 2.0 - 0.45) \u002F 2.0 = (1.10 - 0.45) \u002F 2.0 = 0.325\n# Full Kelly = 32.5% of bankroll at risk on this trade\n# Quarter Kelly = 8.125% of bankroll at risk\n```\n\n### Converting Kelly Fraction to Notional Size\n\n```python\ndef kelly_notional(\n    portfolio_nav_usd: float,    # total account equity (totalRawUsd from marginSummary)\n    kelly_f: float,              # full Kelly fraction from kelly_fraction()\n    kelly_multiplier: float,     # fractional Kelly: 0.25 (conservative) to 0.50 (moderate)\n    avg_loss_pct: float,         # SL distance as % of notional\n    leverage: float,             # target leverage for the position\n    carry_discount: float = 1.0, # from high-funding-carry-avoidance (0.0-1.0)\n) -> dict:\n    \"\"\"\n    Converts Kelly fraction to a notional position size in USD.\n    Accounts for leverage (Kelly sizes the *risk*, not the notional),\n    fractional Kelly multiplier, and carry cost discount.\n    \"\"\"\n    # Kelly sizes the fraction of NAV to PUT AT RISK (i.e., the SL dollar amount)\n    risk_usd = portfolio_nav_usd * kelly_f * kelly_multiplier\n\n    # Apply carry discount (from high-funding-carry-avoidance skill)\n    risk_usd_adjusted = risk_usd * carry_discount\n\n    # Convert risk amount to notional via SL distance:\n    # risk_usd = notional * avg_loss_pct  =>  notional = risk_usd \u002F avg_loss_pct\n    notional_usd = risk_usd_adjusted \u002F avg_loss_pct\n\n    # Margin required at target leverage:\n    margin_required_usd = notional_usd \u002F leverage\n\n    return {\n        \"full_kelly_f\": kelly_f,\n        \"applied_kelly_f\": kelly_f * kelly_multiplier,\n        \"risk_usd\": risk_usd_adjusted,\n        \"notional_usd\": notional_usd,\n        \"margin_required_usd\": margin_required_usd,\n        \"effective_leverage\": leverage,\n    }\n\n# Example: $100k NAV, f*=0.325, quarter Kelly (0.25), 1% SL, 5x leverage, no carry discount\n# risk_usd     = $100,000 * 0.325 * 0.25 = $8,125\n# notional_usd = $8,125 \u002F 0.01 = $812,500   \u003C- notional exposure\n# margin_req   = $812,500 \u002F 5 = $162,500    \u003C- but this exceeds NAV!\n# -> Portfolio cap enforcement (below) will reduce this\n```\n\n---\n\n## Portfolio Cap Enforcement\n\nKelly output must pass through **three hard caps** in sequence. The\nfinal notional is the minimum of Kelly output and all three caps:\n\n```python\n# Hard caps (configure per firm risk policy):\nMAX_SINGLE_POSITION_PCT_NAV  = 0.20   # 20% of NAV as margin on any single position\nMAX_SINGLE_NOTIONAL_PCT_NAV  = 2.00   # 200% of NAV as notional (2x gross leverage cap)\nMAX_CORRELATED_EXPOSURE_PCT  = 0.35   # 35% of NAV in correlated assets (e.g. BTC+ETH)\nMAX_TOTAL_MARGIN_UTILIZATION = 0.60   # 60% of NAV deployed as margin across all positions\n\ndef apply_portfolio_caps(\n    kelly_result: dict,\n    portfolio_nav_usd: float,\n    current_margin_used_usd: float,\n    correlated_exposure_usd: float,   # existing notional in correlated assets\n    asset_correlation: float = 0.0,   # 0.0-1.0; BTC\u002FETH ~0.85, BTC\u002FSOL ~0.70\n) -> dict:\n    notional  = kelly_result[\"notional_usd\"]\n    margin    = kelly_result[\"margin_required_usd\"]\n    leverage  = kelly_result[\"effective_leverage\"]\n\n    # Cap 1: single position margin\n    max_margin = portfolio_nav_usd * MAX_SINGLE_POSITION_PCT_NAV\n    if margin > max_margin:\n        notional = max_margin * leverage\n        margin   = max_margin\n\n    # Cap 2: single position notional\n    max_notional = portfolio_nav_usd * MAX_SINGLE_NOTIONAL_PCT_NAV\n    if notional > max_notional:\n        notional = max_notional\n        margin   = notional \u002F leverage\n\n    # Cap 3: total margin utilization\n    available_margin = portfolio_nav_usd * MAX_TOTAL_MARGIN_UTILIZATION - current_margin_used_usd\n    if margin > available_margin:\n        margin   = max(0.0, available_margin)\n        notional = margin * leverage\n\n    # Cap 4: correlated exposure\n    # New notional adds to correlated bucket scaled by correlation coefficient\n    correlated_addition = notional * asset_correlation\n    if correlated_exposure_usd + correlated_addition > portfolio_nav_usd * MAX_CORRELATED_EXPOSURE_PCT:\n        allowed_addition = max(0.0, portfolio_nav_usd * MAX_CORRELATED_EXPOSURE_PCT - correlated_exposure_usd)\n        notional = allowed_addition \u002F asset_correlation if asset_correlation > 0 else notional\n        margin   = notional \u002F leverage\n\n    return {\n        \"final_notional_usd\": max(0.0, notional),\n        \"final_margin_usd\":   max(0.0, margin),\n        \"binding_cap\": _identify_binding_cap(kelly_result[\"notional_usd\"], notional),\n    }\n\ndef _identify_binding_cap(original: float, final: float) -> str:\n    if final >= original * 0.99: return \"none\"        # Kelly was binding\n    if final \u003C original * 0.30:  return \"correlated\"  # correlation cap cut deeply\n    return \"portfolio_margin\"                          # margin\u002Fnotional cap binding\n```\n\n---\n\n## Kelly Multiplier Selection Guide\n\nThe Kelly multiplier (fractional Kelly) is the most important practical\ndecision in the sizing framework. Select based on strategy confidence:\n\n| Kelly Multiplier | Risk Profile | When to Use |\n|---|---|---|\n| 0.10–0.15 | Ultra-conservative | New strategy, unvalidated; nascent trend regime; first 20 live trades |\n| 0.25 | Conservative | Validated strategy, \u003C 50 live trades, or elevated market risk (cascade score ≥ 3) |\n| 0.33 | Moderate | Validated strategy, 50–200 live trades, normal regime, cascade score ≤ 2 |\n| 0.50 | Moderate-aggressive | Well-validated strategy, 200+ live trades, established trend, all regime checks green |\n| > 0.50 | **Not recommended** | Full Kelly and above: theoretically optimal but practically catastrophic drawdowns |\n\n> Default to **0.25** when uncertain. Increase multiplier only after\n> live performance confirms the win rate and RR ratio assumptions.\n> The Kelly formula is only as good as the edge estimate — overestimated\n> win rates produce oversized positions that ruin accounts.\n\n---\n\n## Edge Estimation Best Practices\n\nThe Kelly formula amplifies errors in edge estimation. A 5% overestimate\nof win rate can double the recommended position size. Apply these\nchecks before trusting any edge estimate:\n\n```python\ndef validate_edge_estimate(\n    win_rate: float,\n    avg_win_pct: float,\n    avg_loss_pct: float,\n    sample_size: int,\n    confidence: str = \"low\",   # \"low\", \"medium\", \"high\"\n) -> dict:\n    # Minimum sample sizes for reliable Kelly estimation:\n    MIN_SAMPLES = {\"high\": 200, \"medium\": 100, \"low\": 30}\n\n    expectancy = win_rate * avg_win_pct - (1 - win_rate) * avg_loss_pct\n    profit_factor = (win_rate * avg_win_pct) \u002F ((1 - win_rate) * avg_loss_pct)\n\n    # Wilson score interval 95% CI on win rate:\n    import math\n    z = 1.96\n    n = sample_size\n    p = win_rate\n    centre = (p + z*z\u002F(2*n)) \u002F (1 + z*z\u002Fn)\n    margin = (z * math.sqrt(p*(1-p)\u002Fn + z*z\u002F(4*n*n))) \u002F (1 + z*z\u002Fn)\n    win_rate_lower_ci = max(0.0, centre - margin)\n\n    # Conservative Kelly uses lower CI on win rate:\n    kelly_conservative = kelly_fraction(win_rate_lower_ci, avg_win_pct, avg_loss_pct)\n\n    return {\n        \"expectancy_pct\": expectancy * 100,\n        \"profit_factor\": profit_factor,\n        \"win_rate_lower_95ci\": win_rate_lower_ci,\n        \"kelly_conservative\": kelly_conservative,\n        \"sufficient_sample\": sample_size >= MIN_SAMPLES[confidence],\n        \"recommendation\": \"use kelly_conservative\" if sample_size \u003C 200 else \"use kelly_fraction\",\n    }\n```\n\n**Always use `kelly_conservative` (lower CI on win rate) when sample\nsize \u003C 200 trades.** This is the single most important practical\nadjustment to standard Kelly theory.\n\n---\n\n## Regime Adjustments\n\nApply these multipliers to the Kelly output **after** the base\ncalculation and **before** portfolio cap enforcement:\n\n| Condition | Source Skill | Multiplier | Rationale |\n|---|---|---|---|\n| Cascade score ≥ 5 (HIGH) | `liquidation-cascade-risk` | × 0.50 | Book fragility increases true loss probability |\n| Cascade score ≥ 8 (CRITICAL) | `liquidation-cascade-risk` | × 0.00 | No new positions during active cascade |\n| Funding regime ELEVATED | `high-funding-carry-avoidance` | carry_discount from that skill | Carry cost reduces net edge |\n| Nascent trend (\u003C 3 HH\u002FHL) | `trending-bull-entry-timing` | × 0.40 | Trend not confirmed; higher false-signal rate |\n| Post-cascade re-entry (leg 1) | `liquidation-cascade-risk` | × 0.50 | Uncertainty about cascade exhaustion |\n| Mature trend (8+ HH\u002FHL) | `trending-bull-entry-timing` | × 0.50 | Proximity to exhaustion; asymmetric downside |\n| New strategy (\u003C 20 live trades) | — | × 0.15 | Edge unvalidated; protect bankroll during learning |\n\n---\n\n## Worked Example — Full Sizing Pipeline\n\n```\nInputs:\n  Portfolio NAV:         $200,000\n  Current margin used:   $20,000\n  Asset:                 ETH perp\n  Strategy:              Trending bull pullback (established, 120 live trades)\n  Win rate (observed):   0.58  (58%)\n  Sample size:           120 trades\n  Avg TP distance:       1.8% of notional\n  Avg SL distance:       0.9% of notional  (2:1 RR)\n  Target leverage:       4x\n  Funding 1h:            0.018% (carry_discount from carry-avoidance skill: 0.82)\n  Cascade score:         2  (NORMAL, no multiplier)\n  Correlated exposure\n  (BTC position open):   $80,000 notional (ETH correlation to BTC: 0.85)\n  Kelly multiplier:      0.33 (moderate; 120 validated trades)\n\nStep 1 — Validate edge:\n  win_rate_lower_95ci  = 0.494  (lower CI on 0.58 @ n=120)\n  kelly_conservative   = kelly_fraction(0.494, 1.8%, 0.9%)\n                       = (0.494 * 2.0 - 0.506) \u002F 2.0 = 0.241\n\nStep 2 — Base Kelly notional:\n  risk_usd             = $200,000 * 0.241 * 0.33 * 0.82  (carry discount)\n                       = $200,000 * 0.065 = $13,034\n  notional_usd         = $13,034 \u002F 0.009 = $1,448,222   \u003C- very large; caps will bind\n  margin_required      = $1,448,222 \u002F 4 = $362,056\n\nStep 3 — Apply portfolio caps:\n  Cap 1 (20% NAV margin): max_margin = $40,000\n    notional = $40,000 * 4 = $160,000  margin = $40,000\n  Cap 3 (60% total margin): available = $200,000*0.60 - $20,000 = $100,000\n    margin $40,000 \u003C $100,000 ✔ passes\n  Cap 4 (correlated 35% NAV = $70,000):\n    new correlated addition = $160,000 * 0.85 = $136,000\n    existing correlated     = $80,000 * 0.85 = $68,000\n    total projected         = $68,000 + $136,000 = $204,000 > $70,000\n    allowed addition        = $70,000 - $68,000 = $2,000\n    max notional from corr  = $2,000 \u002F 0.85 = $2,353\n\nFinal result:\n  final_notional_usd  = $2,353  (correlated exposure cap is binding)\n  final_margin_usd    = $2,353 \u002F 4 = $588\n  binding_cap         = \"correlated\"\n\nImplication: the ETH position should not be sized until BTC is partially\nclosed, OR the Kelly multiplier is correct but the correlated cap policy\nneeds review if ETH is genuinely a separate signal.\n```\n\n---\n\n## Failure Modes to Avoid\n\n- **Using full Kelly (multiplier = 1.0)**: Full Kelly maximises long-run\n  median wealth but the path includes drawdowns of 50%+ that are\n  psychologically and operationally catastrophic. Quarter Kelly captures\n  ~75% of the growth rate with ~25% of the drawdown. Never use full Kelly\n  on live capital.\n- **Estimating win rate from too few trades**: 20 trades can produce an\n  apparent 70% win rate by chance alone. Always use the lower confidence\n  interval on win rate for Kelly inputs. With \u003C 30 trades, use 0.10 Kelly\n  multiplier regardless of observed win rate.\n- **Using Kelly on correlated simultaneous positions as if independent**:\n  Two correlated positions (BTC + ETH) are not two independent Kelly bets.\n  They share the same underlying risk factor. The correlated exposure cap\n  and correlation multiplier in `apply_portfolio_caps()` handle this—\n  but only if the correlation coefficient is set correctly.\n- **Ignoring leverage in Kelly notional conversion**: Kelly sizes the\n  *amount at risk* (SL distance × notional), not the notional directly.\n  At 10× leverage, a 1% SL is 10% of margin. Confusing risk-on-notional\n  with risk-on-margin produces positions 10× too large or too small.\n- **Not adjusting Kelly multiplier after drawdown**: A 15% portfolio\n  drawdown is a signal that edge estimates are wrong, market regime has\n  changed, or both. After any 10%+ drawdown, reduce Kelly multiplier\n  by 50% until live performance restores confidence in the edge estimate.\n- **Treating Kelly as a static calculation**: Win rate and RR ratio drift\n  as market regimes change. Recompute Kelly inputs from the most recent\n  50-trade rolling window, not from the all-time backtest average.\n\n---\n\n## Integration with Other Skills\n\n- **`high-funding-carry-avoidance`** (regime-detection\u002F): Provides\n  `carry_discount` multiplier applied to `risk_usd` before notional\n  conversion. Always run funding check first; pass carry_discount into\n  `kelly_notional()`.\n- **`liquidation-cascade-risk`** (regime-detection\u002F): Provides\n  `cascade_score` and `book_fragility`. Apply cascade regime multiplier\n  to Kelly output before portfolio caps.\n- **`trending-bull-entry-timing`** (regime-detection\u002F): Provides regime\n  classification (nascent\u002Festablished\u002Fmature). Apply corresponding\n  regime multiplier (0.40× \u002F 1.0× \u002F 0.50×) to Kelly output.\n- **`slippage-budget-enforcement`** (execution\u002F): Kelly output is the\n  `initial_size_usd` input to `max_size_within_budget()`. If slippage\n  enforcement reduces the size, the risk engine must be updated with\n  the actual executed notional, not the Kelly target.\n- **`drawdown-kill-switch-trigger`** (risk\u002F): After any kill-switch\n  fire, reset Kelly multiplier to 0.10 for the next session. Kelly\n  assumes a stationary edge; a kill-switch fire signals the edge\n  assumption has broken down.\n\n---\n\n## Audit JSONL Schema\n\n```json\n{\n  \"event\": \"kelly_position_sizing\",\n  \"asset\": \"ETH\",\n  \"timestamp_utc\": \"2026-04-07T22:00:00Z\",\n  \"portfolio_nav_usd\": 200000,\n  \"win_rate_observed\": 0.58,\n  \"win_rate_lower_ci\": 0.494,\n  \"sample_size\": 120,\n  \"avg_win_pct\": 0.018,\n  \"avg_loss_pct\": 0.009,\n  \"kelly_full_f\": 0.241,\n  \"kelly_multiplier\": 0.33,\n  \"carry_discount\": 0.82,\n  \"cascade_regime_multiplier\": 1.0,\n  \"trend_regime_multiplier\": 1.0,\n  \"risk_usd_adjusted\": 13034,\n  \"kelly_notional_usd\": 1448222,\n  \"binding_cap\": \"correlated\",\n  \"final_notional_usd\": 2353,\n  \"final_margin_usd\": 588,\n  \"target_leverage\": 4,\n  \"current_margin_used_usd\": 20000,\n  \"correlated_exposure_usd\": 68000\n}\n```\n\n---\n\n## Quick Decision Tree\n\n```\nNew position entry — compute Kelly size:\n│\n├── 1. Get regime inputs:\n│     carry_discount      ← high-funding-carry-avoidance\n│     cascade_multiplier  ← liquidation-cascade-risk (score ≥ 8? → 0.0x: no trade)\n│     trend_multiplier    ← trending-bull-entry-timing (regime classification)\n│\n├── 2. Validate edge:\n│     validate_edge_estimate(win_rate, avg_win, avg_loss, n_trades)\n│     Use win_rate_lower_ci if n_trades \u003C 200\n│     kelly_f = kelly_fraction(win_rate, avg_win, avg_loss)\n│     kelly_f == 0? → ABORT. No edge. Do not trade.\n│\n├── 3. Select Kelly multiplier from guide (default: 0.25)\n│\n├── 4. Compute notional:\n│     result = kelly_notional(nav, kelly_f, multiplier, avg_loss,\n│                             leverage, carry_discount)\n│     Apply cascade_multiplier and trend_multiplier to result[\"notional_usd\"]\n│\n├── 5. Apply portfolio caps:\n│     final = apply_portfolio_caps(result, nav, margin_used,\n│                                  correlated_exposure, correlation)\n│     final[\"final_notional_usd\"] == 0? → ABORT. Caps fully consumed.\n│\n├── 6. Pass final_notional_usd to slippage-budget-enforcement\n│     as initial_size_usd → book walk may reduce further\n│\n└── 7. Log full kelly_position_sizing audit event.\n         Execute at actual filled size.\n         Update margin tracking with actual margin used.\n```\n","# Kelly Position Sizing — Perpetuals\n\n## When This Skill Activates\n\nApply this skill **before every new position entry** on HyperLiquid\nperpetuals to determine the maximum allowable notional size. Also apply when:\n\n- Scaling into an existing position (second leg, post-cascade re-entry)\n- Evaluating whether a strategy signal has sufficient edge to justify\n  any position at all\n- Adjusting position size after a regime change (funding spike, OI surge,\n  book fragility increase)\n- Computing correlated exposure caps when multiple positions are open\n  simultaneously across related assets\n- Backtesting a strategy and needing a principled sizing model to avoid\n  over-fit fixed-fraction assumptions\n\n---\n\n## Core Principle\n\nThe Kelly Criterion maximises the long-run geometric growth rate of\ncapital by sizing each bet as a fraction of bankroll proportional to\nedge divided by odds. Applied naively to leveraged perpetuals, full\nKelly produces positions that are **far too large** for practical risk\nmanagement — it optimises for long-run median outcome but accepts\nshort-run ruin probability that is unacceptable in a live trading\nsystem. **Fractional Kelly** (typically ¼ to ½ Kelly) captures most\nof the growth rate benefit while dramatically reducing drawdown and\nruin risk.\n\n> **Rule**: Compute full Kelly as the theoretical maximum. Apply a\n> Kelly fraction of 0.25–0.50. Then enforce hard portfolio caps\n> regardless of Kelly output. The Kelly formula is a ceiling, never\n> a floor.\n\n---\n\n## Kelly Formula for Perpetuals\n\n### Base Kelly Fraction\n\nFor a binary win\u002Floss trade model (entry → TP or SL):\n\n```python\ndef kelly_fraction(\n    win_rate: float,          # estimated probability of hitting TP before SL\n    avg_win_pct: float,       # average win as % of notional (TP distance)\n    avg_loss_pct: float,      # average loss as % of notional (SL distance)\n) -> float:\n    \"\"\"\n    Standard Kelly formula: f* = (p * b - q) \u002F b\n    where:\n      p = win_rate\n      q = 1 - win_rate\n      b = avg_win_pct \u002F avg_loss_pct  (reward-to-risk ratio)\n    Returns fraction of bankroll to risk (0.0 to 1.0).\n    Returns 0.0 if edge is zero or negative (do not trade).\n    \"\"\"\n    if avg_loss_pct \u003C= 0 or avg_win_pct \u003C= 0:\n        return 0.0\n    b = avg_win_pct \u002F avg_loss_pct\n    q = 1.0 - win_rate\n    f_star = (win_rate * b - q) \u002F b\n    return max(0.0, f_star)\n\n# Example: 55% win rate, 2% TP, 1% SL (2:1 RR)\n# b = 2.0\n# f* = (0.55 * 2.0 - 0.45) \u002F 2.0 = (1.10 - 0.45) \u002F 2.0 = 0.325\n# Full Kelly = 32.5% of bankroll at risk on this trade\n# Quarter Kelly = 8.125% of bankroll at risk\n```\n\n### Converting Kelly Fraction to Notional Size\n\n```python\ndef kelly_notional(\n    portfolio_nav_usd: float,    # total account equity (totalRawUsd from marginSummary)\n    kelly_f: float,              # full Kelly fraction from kelly_fraction()\n    kelly_multiplier: float,     # fractional Kelly: 0.25 (conservative) to 0.50 (moderate)\n    avg_loss_pct: float,         # SL distance as % of notional\n    leverage: float,             # target leverage for the position\n    carry_discount: float = 1.0, # from high-funding-carry-avoidance (0.0-1.0)\n) -> dict:\n    \"\"\"\n    Converts Kelly fraction to a notional position size in USD.\n    Accounts for leverage (Kelly sizes the *risk*, not the notional),\n    fractional Kelly multiplier, and carry cost discount.\n    \"\"\"\n    # Kelly sizes the fraction of NAV to PUT AT RISK (i.e., the SL dollar amount)\n    risk_usd = portfolio_nav_usd * kelly_f * kelly_multiplier\n\n    # Apply carry discount (from high-funding-carry-avoidance skill)\n    risk_usd_adjusted = risk_usd * carry_discount\n\n    # Convert risk amount to notional via SL distance:\n    # risk_usd = notional * avg_loss_pct  =>  notional = risk_usd \u002F avg_loss_pct\n    notional_usd = risk_usd_adjusted \u002F avg_loss_pct\n\n    # Margin required at target leverage:\n    margin_required_usd = notional_usd \u002F leverage\n\n    return {\n        \"full_kelly_f\": kelly_f,\n        \"applied_kelly_f\": kelly_f * kelly_multiplier,\n        \"risk_usd\": risk_usd_adjusted,\n        \"notional_usd\": notional_usd,\n        \"margin_required_usd\": margin_required_usd,\n        \"effective_leverage\": leverage,\n    }\n\n# Example: $100k NAV, f*=0.325, quarter Kelly (0.25), 1% SL, 5x leverage, no carry discount\n# risk_usd     = $100,000 * 0.325 * 0.25 = $8,125\n# notional_usd = $8,125 \u002F 0.01 = $812,500   \u003C- notional exposure\n# margin_req   = $812,500 \u002F 5 = $162,500    \u003C- but this exceeds NAV!\n# -> Portfolio cap enforcement (below) will reduce this\n```\n\n---\n\n## Portfolio Cap Enforcement\n\nKelly output must pass through **three hard caps** in sequence. The\nfinal notional is the minimum of Kelly output and all three caps:\n\n```python\n# Hard caps (configure per firm risk policy):\nMAX_SINGLE_POSITION_PCT_NAV  = 0.20   # 20% of NAV as margin on any single position\nMAX_SINGLE_NOTIONAL_PCT_NAV  = 2.00   # 200% of NAV as notional (2x gross leverage cap)\nMAX_CORRELATED_EXPOSURE_PCT  = 0.35   # 35% of NAV in correlated assets (e.g. BTC+ETH)\nMAX_TOTAL_MARGIN_UTILIZATION = 0.60   # 60% of NAV deployed as margin across all positions\n\ndef apply_portfolio_caps(\n    kelly_result: dict,\n    portfolio_nav_usd: float,\n    current_margin_used_usd: float,\n    correlated_exposure_usd: float,   # existing notional in correlated assets\n    asset_correlation: float = 0.0,   # 0.0-1.0; BTC\u002FETH ~0.85, BTC\u002FSOL ~0.70\n) -> dict:\n    notional  = kelly_result[\"notional_usd\"]\n    margin    = kelly_result[\"margin_required_usd\"]\n    leverage  = kelly_result[\"effective_leverage\"]\n\n    # Cap 1: single position margin\n    max_margin = portfolio_nav_usd * MAX_SINGLE_POSITION_PCT_NAV\n    if margin > max_margin:\n        notional = max_margin * leverage\n        margin   = max_margin\n\n    # Cap 2: single position notional\n    max_notional = portfolio_nav_usd * MAX_SINGLE_NOTIONAL_PCT_NAV\n    if notional > max_notional:\n        notional = max_notional\n        margin   = notional \u002F leverage\n\n    # Cap 3: total margin utilization\n    available_margin = portfolio_nav_usd * MAX_TOTAL_MARGIN_UTILIZATION - current_margin_used_usd\n    if margin > available_margin:\n        margin   = max(0.0, available_margin)\n        notional = margin * leverage\n\n    # Cap 4: correlated exposure\n    # New notional adds to correlated bucket scaled by correlation coefficient\n    correlated_addition = notional * asset_correlation\n    if correlated_exposure_usd + correlated_addition > portfolio_nav_usd * MAX_CORRELATED_EXPOSURE_PCT:\n        allowed_addition = max(0.0, portfolio_nav_usd * MAX_CORRELATED_EXPOSURE_PCT - correlated_exposure_usd)\n        notional = allowed_addition \u002F asset_correlation if asset_correlation > 0 else notional\n        margin   = notional \u002F leverage\n\n    return {\n        \"final_notional_usd\": max(0.0, notional),\n        \"final_margin_usd\":   max(0.0, margin),\n        \"binding_cap\": _identify_binding_cap(kelly_result[\"notional_usd\"], notional),\n    }\n\ndef _identify_binding_cap(original: float, final: float) -> str:\n    if final >= original * 0.99: return \"none\"        # Kelly was binding\n    if final \u003C original * 0.30:  return \"correlated\"  # correlation cap cut deeply\n    return \"portfolio_margin\"                          # margin\u002Fnotional cap binding\n```\n\n---\n\n## Kelly Multiplier Selection Guide\n\nThe Kelly multiplier (fractional Kelly) is the most important practical\ndecision in the sizing framework. Select based on strategy confidence:\n\n| Kelly Multiplier | Risk Profile | When to Use |\n|---|---|---|\n| 0.10–0.15 | Ultra-conservative | New strategy, unvalidated; nascent trend regime; first 20 live trades |\n| 0.25 | Conservative | Validated strategy, \u003C 50 live trades, or elevated market risk (cascade score ≥ 3) |\n| 0.33 | Moderate | Validated strategy, 50–200 live trades, normal regime, cascade score ≤ 2 |\n| 0.50 | Moderate-aggressive | Well-validated strategy, 200+ live trades, established trend, all regime checks green |\n| > 0.50 | **Not recommended** | Full Kelly and above: theoretically optimal but practically catastrophic drawdowns |\n\n> Default to **0.25** when uncertain. Increase multiplier only after\n> live performance confirms the win rate and RR ratio assumptions.\n> The Kelly formula is only as good as the edge estimate — overestimated\n> win rates produce oversized positions that ruin accounts.\n\n---\n\n## Edge Estimation Best Practices\n\nThe Kelly formula amplifies errors in edge estimation. A 5% overestimate\nof win rate can double the recommended position size. Apply these\nchecks before trusting any edge estimate:\n\n```python\ndef validate_edge_estimate(\n    win_rate: float,\n    avg_win_pct: float,\n    avg_loss_pct: float,\n    sample_size: int,\n    confidence: str = \"low\",   # \"low\", \"medium\", \"high\"\n) -> dict:\n    # Minimum sample sizes for reliable Kelly estimation:\n    MIN_SAMPLES = {\"high\": 200, \"medium\": 100, \"low\": 30}\n\n    expectancy = win_rate * avg_win_pct - (1 - win_rate) * avg_loss_pct\n    profit_factor = (win_rate * avg_win_pct) \u002F ((1 - win_rate) * avg_loss_pct)\n\n    # Wilson score interval 95% CI on win rate:\n    import math\n    z = 1.96\n    n = sample_size\n    p = win_rate\n    centre = (p + z*z\u002F(2*n)) \u002F (1 + z*z\u002Fn)\n    margin = (z * math.sqrt(p*(1-p)\u002Fn + z*z\u002F(4*n*n))) \u002F (1 + z*z\u002Fn)\n    win_rate_lower_ci = max(0.0, centre - margin)\n\n    # Conservative Kelly uses lower CI on win rate:\n    kelly_conservative = kelly_fraction(win_rate_lower_ci, avg_win_pct, avg_loss_pct)\n\n    return {\n        \"expectancy_pct\": expectancy * 100,\n        \"profit_factor\": profit_factor,\n        \"win_rate_lower_95ci\": win_rate_lower_ci,\n        \"kelly_conservative\": kelly_conservative,\n        \"sufficient_sample\": sample_size >= MIN_SAMPLES[confidence],\n        \"recommendation\": \"use kelly_conservative\" if sample_size \u003C 200 else \"use kelly_fraction\",\n    }\n```\n\n**Always use `kelly_conservative` (lower CI on win rate) when sample\nsize \u003C 200 trades.** This is the single most important practical\nadjustment to standard Kelly theory.\n\n---\n\n## Regime Adjustments\n\nApply these multipliers to the Kelly output **after** the base\ncalculation and **before** portfolio cap enforcement:\n\n| Condition | Source Skill | Multiplier | Rationale |\n|---|---|---|---|\n| Cascade score ≥ 5 (HIGH) | `liquidation-cascade-risk` | × 0.50 | Book fragility increases true loss probability |\n| Cascade score ≥ 8 (CRITICAL) | `liquidation-cascade-risk` | × 0.00 | No new positions during active cascade |\n| Funding regime ELEVATED | `high-funding-carry-avoidance` | carry_discount from that skill | Carry cost reduces net edge |\n| Nascent trend (\u003C 3 HH\u002FHL) | `trending-bull-entry-timing` | × 0.40 | Trend not confirmed; higher false-signal rate |\n| Post-cascade re-entry (leg 1) | `liquidation-cascade-risk` | × 0.50 | Uncertainty about cascade exhaustion |\n| Mature trend (8+ HH\u002FHL) | `trending-bull-entry-timing` | × 0.50 | Proximity to exhaustion; asymmetric downside |\n| New strategy (\u003C 20 live trades) | — | × 0.15 | Edge unvalidated; protect bankroll during learning |\n\n---\n\n## Worked Example — Full Sizing Pipeline\n\n```\nInputs:\n  Portfolio NAV:         $200,000\n  Current margin used:   $20,000\n  Asset:                 ETH perp\n  Strategy:              Trending bull pullback (established, 120 live trades)\n  Win rate (observed):   0.58  (58%)\n  Sample size:           120 trades\n  Avg TP distance:       1.8% of notional\n  Avg SL distance:       0.9% of notional  (2:1 RR)\n  Target leverage:       4x\n  Funding 1h:            0.018% (carry_discount from carry-avoidance skill: 0.82)\n  Cascade score:         2  (NORMAL, no multiplier)\n  Correlated exposure\n  (BTC position open):   $80,000 notional (ETH correlation to BTC: 0.85)\n  Kelly multiplier:      0.33 (moderate; 120 validated trades)\n\nStep 1 — Validate edge:\n  win_rate_lower_95ci  = 0.494  (lower CI on 0.58 @ n=120)\n  kelly_conservative   = kelly_fraction(0.494, 1.8%, 0.9%)\n                       = (0.494 * 2.0 - 0.506) \u002F 2.0 = 0.241\n\nStep 2 — Base Kelly notional:\n  risk_usd             = $200,000 * 0.241 * 0.33 * 0.82  (carry discount)\n                       = $200,000 * 0.065 = $13,034\n  notional_usd         = $13,034 \u002F 0.009 = $1,448,222   \u003C- very large; caps will bind\n  margin_required      = $1,448,222 \u002F 4 = $362,056\n\nStep 3 — Apply portfolio caps:\n  Cap 1 (20% NAV margin): max_margin = $40,000\n    notional = $40,000 * 4 = $160,000  margin = $40,000\n  Cap 3 (60% total margin): available = $200,000*0.60 - $20,000 = $100,000\n    margin $40,000 \u003C $100,000 ✔ passes\n  Cap 4 (correlated 35% NAV = $70,000):\n    new correlated addition = $160,000 * 0.85 = $136,000\n    existing correlated     = $80,000 * 0.85 = $68,000\n    total projected         = $68,000 + $136,000 = $204,000 > $70,000\n    allowed addition        = $70,000 - $68,000 = $2,000\n    max notional from corr  = $2,000 \u002F 0.85 = $2,353\n\nFinal result:\n  final_notional_usd  = $2,353  (correlated exposure cap is binding)\n  final_margin_usd    = $2,353 \u002F 4 = $588\n  binding_cap         = \"correlated\"\n\nImplication: the ETH position should not be sized until BTC is partially\nclosed, OR the Kelly multiplier is correct but the correlated cap policy\nneeds review if ETH is genuinely a separate signal.\n```\n\n---\n\n## Failure Modes to Avoid\n\n- **Using full Kelly (multiplier = 1.0)**: Full Kelly maximises long-run\n  median wealth but the path includes drawdowns of 50%+ that are\n  psychologically and operationally catastrophic. Quarter Kelly captures\n  ~75% of the growth rate with ~25% of the drawdown. Never use full Kelly\n  on live capital.\n- **Estimating win rate from too few trades**: 20 trades can produce an\n  apparent 70% win rate by chance alone. Always use the lower confidence\n  interval on win rate for Kelly inputs. With \u003C 30 trades, use 0.10 Kelly\n  multiplier regardless of observed win rate.\n- **Using Kelly on correlated simultaneous positions as if independent**:\n  Two correlated positions (BTC + ETH) are not two independent Kelly bets.\n  They share the same underlying risk factor. The correlated exposure cap\n  and correlation multiplier in `apply_portfolio_caps()` handle this—\n  but only if the correlation coefficient is set correctly.\n- **Ignoring leverage in Kelly notional conversion**: Kelly sizes the\n  *amount at risk* (SL distance × notional), not the notional directly.\n  At 10× leverage, a 1% SL is 10% of margin. Confusing risk-on-notional\n  with risk-on-margin produces positions 10× too large or too small.\n- **Not adjusting Kelly multiplier after drawdown**: A 15% portfolio\n  drawdown is a signal that edge estimates are wrong, market regime has\n  changed, or both. After any 10%+ drawdown, reduce Kelly multiplier\n  by 50% until live performance restores confidence in the edge estimate.\n- **Treating Kelly as a static calculation**: Win rate and RR ratio drift\n  as market regimes change. Recompute Kelly inputs from the most recent\n  50-trade rolling window, not from the all-time backtest average.\n\n---\n\n## Integration with Other Skills\n\n- **`high-funding-carry-avoidance`** (regime-detection\u002F): Provides\n  `carry_discount` multiplier applied to `risk_usd` before notional\n  conversion. Always run funding check first; pass carry_discount into\n  `kelly_notional()`.\n- **`liquidation-cascade-risk`** (regime-detection\u002F): Provides\n  `cascade_score` and `book_fragility`. Apply cascade regime multiplier\n  to Kelly output before portfolio caps.\n- **`trending-bull-entry-timing`** (regime-detection\u002F): Provides regime\n  classification (nascent\u002Festablished\u002Fmature). Apply corresponding\n  regime multiplier (0.40× \u002F 1.0× \u002F 0.50×) to Kelly output.\n- **`slippage-budget-enforcement`** (execution\u002F): Kelly output is the\n  `initial_size_usd` input to `max_size_within_budget()`. If slippage\n  enforcement reduces the size, the risk engine must be updated with\n  the actual executed notional, not the Kelly target.\n- **`drawdown-kill-switch-trigger`** (risk\u002F): After any kill-switch\n  fire, reset Kelly multiplier to 0.10 for the next session. Kelly\n  assumes a stationary edge; a kill-switch fire signals the edge\n  assumption has broken down.\n\n---\n\n## Audit JSONL Schema\n\n```json\n{\n  \"event\": \"kelly_position_sizing\",\n  \"asset\": \"ETH\",\n  \"timestamp_utc\": \"2026-04-07T22:00:00Z\",\n  \"portfolio_nav_usd\": 200000,\n  \"win_rate_observed\": 0.58,\n  \"win_rate_lower_ci\": 0.494,\n  \"sample_size\": 120,\n  \"avg_win_pct\": 0.018,\n  \"avg_loss_pct\": 0.009,\n  \"kelly_full_f\": 0.241,\n  \"kelly_multiplier\": 0.33,\n  \"carry_discount\": 0.82,\n  \"cascade_regime_multiplier\": 1.0,\n  \"trend_regime_multiplier\": 1.0,\n  \"risk_usd_adjusted\": 13034,\n  \"kelly_notional_usd\": 1448222,\n  \"binding_cap\": \"correlated\",\n  \"final_notional_usd\": 2353,\n  \"final_margin_usd\": 588,\n  \"target_leverage\": 4,\n  \"current_margin_used_usd\": 20000,\n  \"correlated_exposure_usd\": 68000\n}\n```\n\n---\n\n## Quick Decision Tree\n\n```\nNew position entry — compute Kelly size:\n│\n├── 1. Get regime inputs:\n│     carry_discount      ← high-funding-carry-avoidance\n│     cascade_multiplier  ← liquidation-cascade-risk (score ≥ 8? → 0.0x: no trade)\n│     trend_multiplier    ← trending-bull-entry-timing (regime classification)\n│\n├── 2. Validate edge:\n│     validate_edge_estimate(win_rate, avg_win, avg_loss, n_trades)\n│     Use win_rate_lower_ci if n_trades \u003C 200\n│     kelly_f = kelly_fraction(win_rate, avg_win, avg_loss)\n│     kelly_f == 0? → ABORT. No edge. Do not trade.\n│\n├── 3. Select Kelly multiplier from guide (default: 0.25)\n│\n├── 4. Compute notional:\n│     result = kelly_notional(nav, kelly_f, multiplier, avg_loss,\n│                             leverage, carry_discount)\n│     Apply cascade_multiplier and trend_multiplier to result[\"notional_usd\"]\n│\n├── 5. Apply portfolio caps:\n│     final = apply_portfolio_caps(result, nav, margin_used,\n│                                  correlated_exposure, correlation)\n│     final[\"final_notional_usd\"] == 0? → ABORT. Caps fully consumed.\n│\n├── 6. Pass final_notional_usd to slippage-budget-enforcement\n│     as initial_size_usd → book walk may reduce further\n│\n└── 7. Log full kelly_position_sizing audit event.\n         Execute at actual filled size.\n         Update margin tracking with actual margin used.\n```\n",{"name":5,"category":29,"description":7},"main","cc32fdacf303e9c64064829787a5e690bb29cd47","multiclaw\u002Fmetaclaw\u002Fskills\u002Frisk\u002Fkelly-position-sizing-perps",0,"https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm","https:\u002F\u002Fgithub.com\u002Fenuno","https:\u002F\u002Fenuno.github.io\u002FDynamicCareerCanvas","Digital Nomad, Blockchain Evangel, and Digital Solutions Architect. \r\nCreator of TerraHash Stack.\r\nCEO of Ryno Crypto Mining Services.","2026-07-02 12:46:02",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add enuno\u002Fhyperliquid-trading-firm --skill kelly-position-sizing-perps",{"tool":59,"command":60},"bunx","bunx skills add enuno\u002Fhyperliquid-trading-firm --skill kelly-position-sizing-perps",{"tool":62,"command":63},"pnpm","pnpm dlx skills add enuno\u002Fhyperliquid-trading-firm --skill kelly-position-sizing-perps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fmulticlaw\u002Fmetaclaw\u002Fskills\u002Frisk\u002Fkelly-position-sizing-perps\u002FSKILL.md",true,[],[68,93,118,138,162,184],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":39},"01M6J14V7SBT7MBPZ9VK8NRQR8","supermemory","Supermemory is a state-of-the-art memory and context infrastructure for AI agents. Use this skill when building applications that need persistent memory, user personalization, long-term context retention, or semantic search across knowledge bases. It provides Memory API for learned user context, User Profiles for static\u002Fdynamic facts, and RAG for semantic search. Perfect for chatbots, assistants, and knowledge-intensive applications.","https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fskills\u002Fsupermemory\u002FSKILL.md",[],[70,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,25,92],"ai agents","memory","rag","semantic search","infrastructure","search","user context","applications","api","knowledge","context","Art","personalization","across","learned","retention","profiles","persistent memory",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":39},"01M6J14PEXHE2QBAWM3YZ2GM63","wolverine-strategy","WOLVERINE v2.0 — HYPE alpha hunter. Entry-only scanner, DSL-exit-only architecture. v1.1 lost -22.7% because the scanner's thesis exit chopped 25\u002F27 trades before DSL could manage them. v2.0 removes thesis exit entirely. Scanner decides entries (score 8+, 4H\u002F1H aligned, SM consensus). DSL manages all exits (wide Phase 1 for HYPE volatility, trailing tiers starting at +15% ROE). Leverage lowered to 7x. Max 4 entries\u002Fday. 3-hour cooldown between entries. DSL exit managed by plugin runtime via runtime.yaml.","MIT","https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fskills\u002Fsenpi-skills\u002Fwolverine\u002FSKILL.md",[],[101,102,103,104,105,106,107,108,109,110,111,112,30,113,114,115,26,116,117,25],"strategy","wolverine strategy","architecture","alpha","Volatility","consensus","only","trading","scanner","manage","max","exit","entries","thesis","runtime","hunter","at",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":39},"01M6J14FQY9YG5QB45QK4D98AZ","wolf-strategy","WOLF v6.3 — Fully autonomous multi-strategy trading for Hyperliquid perps via Senpi MCP. Manages multiple strategies simultaneously, each with independent wallets, budgets, slots, and DSL configs. 5+N cron architecture: 5 shared wolf crons (Emerging Movers 3min, SM Flip 5min, Watchdog 5min, Risk Guardian 5min, Health Check 10min) plus one DSL v5.2 cron per strategy (native Hyperliquid SL sync via dsl-dynamic-stop-loss skill v5.3.1). Same asset can be traded in different strategies simultaneously. Enter early on first jumps, not at confirmed peaks. Dynamic risk-based leverage per strategy. Requires Senpi MCP connection, python3, mcporter CLI, OpenClaw cron system, and dsl-dynamic-stop-loss skill (provides dsl-cli.py + dsl-v5.py).","https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fskills\u002Fsenpi-skills\u002Fwolf-strategy\u002FSKILL.md",[],[101,125,126,127,128,129,103,130,131,108,30,21,132,133,26,134,135,136,117,137],"wolf strategy","MCP","openclaw","cli","sync","watchdog","autonomous","strategies","shared","asset","native","wallets","hyperliquid perps",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":39},"01M6J14A20TMQ772M3H80XNB2T","wolf-howl","HOWL v2 — Hunt, Optimize, Win, Learn. Nightly self-improvement loop for the WOLF autonomous trading strategy. Runs once per day (via cron) to review all trades from the last 24 hours, compute win rates, analyze signal quality correlation, evaluate DSL tier performance, identify missed opportunities, and produce concrete improvement suggestions for the wolf-strategy skill. v2 adds fee drag ratio (FDR) analysis, holding period bucketing, LONG vs SHORT regime detection, rotation cost tracking, cumulative drift detection, and gross vs net profit factor separation. Use when setting up daily trade review automation, analyzing trading performance, or improving an autonomous trading strategy through data-driven feedback loops. Requires Senpi MCP connection, mcporter CLI, and OpenClaw cron system.","https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fskills\u002Fsenpi-skills\u002Fwolf-howl\u002FSKILL.md",[],[145,126,146,128,147,148,149,150,151,152,131,153,154,155,156,157,158,159,160,161],"wolf howl","review","performance","learn","analysis","loop","analyze","short","up","optimize","drift","missed","self","factor","loops","profit","data-driven",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":166,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":39},"01M6J1469QYZMD7E6JDP8Z9X1V","whale-index","Auto-mirror top Discovery traders on Hyperliquid. Scans top 50 traders, scores on PnL rank (35%), win rate (25%), consistency (20%), hold time (10%), drawdown (10%). Creates 2-5 mirror strategies with overlap checks. Daily rebalance with 2-day watch period before swaps. Use when setting up trader mirroring, copy trading, or portfolio auto-rebalancing based on Discovery leaderboard performance.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fskills\u002Fsenpi-skills\u002Fwhale-index\u002FSKILL.md",[],[170,171,172,147,173,174,175,35,176,34,153,177,178,132,179,180,181,182,25,183],"index","whale","whale index","auth","monitoring","discovery","auto","daily","time","with","consistency","top","mirror","pnl",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":39},"01M6J141MJ2JMM7X3BGEEW30J9","vixen-strategy","VIXEN v1.0 — Dual-mode emerging movers scanner. Built from FOX v1.6 live trading data (+34.5% ROI). Two entry modes: STALKER (steady accumulation, score 6+, catches the SM buildup BEFORE the explosion) and STRIKER (violent FIRST_JUMP, score 9+, with raw volume confirmation to filter blow-off tops). 2-hour per-asset cooldown after Phase 1 exits. DSL High Water Mode mandatory.","https:\u002F\u002Fgithub.com\u002Fenuno\u002Fhyperliquid-trading-firm\u002Fblob\u002Fmain\u002Fskills\u002Fsenpi-skills\u002Fvixen\u002FSKILL.md",[],[101,191,192,193,194,195,108,109,30,196,197,198,134,179,199,200,201,202,203,204],"vixen strategy","roi","data","first","confirmation","volume","live","filter","explosion","mode","high","v1","modes","emerging movers"]