Not loaded · from everything-claude-trading
Analyzes portfolio drawdown characteristics, designs stop-loss and de-leveraging rules, and sizes positions based on maximum acceptable drawdown.
Claude Code won't load this skill
It ships in everything-claude-trading at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Max drawdown, recovery analysis, conditional drawdown at risk, stop-loss design, de-leveraging rules, and drawdown-based position sizing.
Drawdown at time t
Maximum Drawdown (MDD)
Drawdown Duration
Average Drawdown
For a random walk with drift mu and volatility sigma:
Calmar Ratio: Annual return / Max drawdown — higher is better, but MDD is a single point Sterling Ratio: Annual return / (Average of N largest drawdowns + 10%) — more robust than Calmar Burke Ratio: Annual return / sqrt(sum of squared drawdowns) — penalizes multiple deep drawdowns Ulcer Index: sqrt(mean of squared drawdowns) — continuous measure of drawdown pain Pain Index: mean of all drawdowns — captures both depth and duration of underwater periods
Fixed Percentage Stop-Loss
Trailing Stop-Loss
Volatility-Adjusted Stop
Time-Based Stop
Systematic rules for reducing exposure during drawdowns:
Linear De-Leveraging
Stepped De-Leveraging
Volatility-Conditional De-Leveraging
Sizing from Maximum Acceptable Drawdown
Kelly-Drawdown Tradeoff
Strategy equity curve peak: $1,000,000 (March 2020)
Strategy equity curve trough: $720,000 (March 23, 2020)
Recovery to new peak: $1,050,000 (August 2020)
Maximum drawdown: (1,000,000 - 720,000) / 1,000,000 = 28%
Decline duration: 15 trading days
Recovery duration: 105 trading days
Total underwater period: 120 trading days
Calmar ratio (annualized return 15%): 15% / 28% = 0.54
Strategy target vol: 10% annualized
Current realized vol (20-day): 25% annualized (crisis)
Leverage adjustment: 10% / 25% = 0.40
Original allocation: $5M -> Reduced to: $5M * 0.40 = $2M
When vol normalizes to 12%:
Leverage adjustment: 10% / 12% = 0.83
Allocation: $5M * 0.83 = $4.15M (gradually re-risking)
Result: portfolio volatility stays approximately constant at 10% target.
Historical backtest shows MDD reduced from 35% to 18% with vol targeting.
Drawdown distribution from 10,000 Monte Carlo paths (252-day horizon):
Median MDD: 8.5%
75th percentile MDD: 12.3%
95th percentile MDD: 19.8%
99th percentile MDD: 27.1%
CDaR(95%): average of worst 5% of MDD outcomes = 23.4%
Use CDaR(95%) = 23.4% as the risk budget.
If maximum acceptable loss is $2M on a $10M portfolio (20%):
Position is slightly oversized — reduce to $10M * (20/23.4) = $8.55M.
Portfolio: $50M, base leverage 2x, gross exposure $100M.
Drawdown trajectory and responses:
Day 1-20: DD = 3% -> Full exposure ($100M gross)
Day 21: DD = 6% -> Reduce to 75% ($75M gross), sell $25M
Day 35: DD = 11% -> Reduce to 50% ($50M gross), sell $25M
Day 42: DD = 8% -> Hold at 50% (do not re-lever until new high or DD < 5%)
Day 60: DD = 2% -> Restore to 75% ($75M gross)
Day 80: DD = 0% -> Restore to 100% ($100M gross)
Rules: only re-lever when drawdown decreases below the previous threshold.
Prevents whipsaw from rapid threshold crossing.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (brainbytes-dev/everything-claude-trading) — no native marketplace selected
npx claudepluginhub p/brainbytes-dev-everything-claude-trading82 skills in this plugin
/alpha-researchAlpha Researchname: alpha-research/alternative-allocationsAlternative Allocations> Alternative investment allocation — PE, VC, hedge funds, real assets in portfolio context./alternative-dataAlternative Dataname: alternative-data/bayesian-methodsBayesian Methodsname: bayesian-methods/benchmark-trackingBenchmark Tracking> Index tracking and replication strategies — full replication, sampling, and optimization./binomial-treesBinomial Option Pricing> CRR model, multi-step trees, American options, early exercise boundary, calibration, and convergence to BSM.Other plugins' skills for the same job