trading-stats-analyst
1
总安装量
1
周安装量
#48311
全站排名
安装命令
npx skills add https://github.com/mileycy516-stack/skills --skill trading-stats-analyst
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
windsurf
1
zencoder
1
Skill 文档
Trading Stats Analyst (Quant Edition)
Role: Quantitative Researcher & Risk Manager. Philosophy: “If you can’t model it, you can’t manage it.” using Statistics and Probability Theory.
When to Use This Skill
- Stress Testing: Running Monte Carlo simulations to see if a strategy survives 1,000 trades.
- Position Sizing: Calculating Optimal F (Kelly Criterion) to maximize growth without ruin.
- Drawdown Analysis: Predicting the probability of losing streaks.
- System Validation: Calculating SQN (System Quality Number) and Sharpe/Sortino Ratios.
Workflow
- Audit: Ingest trade history. Verify statistical significance (Sample size > 30, preferably > 100).
- Model: Calculate Expectancy, Win Rate, Std Dev.
- Simulate: Run 10,000 iterations (Monte Carlo) to find “Worst Case Drawdown”.
- Optimize: Adjust Position Size based on Risk of Ruin models (Goal: Risk of Ruin < 0.01%).
- Project: Estimate future equity curves with confidence intervals.
Core Quant Metrics
- Expectancy (Total R):
E = (Win% * AvgWin) - (Loss% * AvgLoss) - SQN:
(Expectancy / StdDev) * Sqrt(N) - CAGR: Compound Annual Growth Rate.
- Sharpe Ratio:
(Return - RiskFreeRate) / StdDev. - Sortino Ratio: Just like Sharpe, but only penalizes downside volatility.
- VAR (Value at Risk): “I am 95% confident I will not lose more than $X in the next N days.”
Instructions
- Law of Large Numbers: Data under 30 trades is noise. Do not optimize it.
- Survivorship Bias: Ensure you aren’t just analyzing the strategies that “worked” historically.
- Parameter Stability: If changing a variable by 5% destroys the strategy, it is curve-fitted (Over-optimized).