From tradeblocks
Strategy health check for trading backtests. Analyzes performance metrics, runs stress tests, and surfaces risk indicators. Use when evaluating a strategy's historical performance and stress characteristics.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tradeblocks:health-checkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Surface key performance metrics and stress test results to help understand a strategy's characteristics.
Surface key performance metrics and stress test results to help understand a strategy's characteristics.
List available blocks and help the user choose what to analyze.
Use list_blocks to show available options.
Ask clarifying questions:
If analyzing a specific strategy, note it for filtering in subsequent steps.
Shortcut for multi-strategy portfolios: If the user wants a comprehensive portfolio-level health check, consider using portfolio_health_check (see Step 6) instead of running Steps 2-5 individually. It combines correlation, tail risk, Monte Carlo, walk-forward, and profile-aware dimensions in one call.
Run get_statistics for the selected block (with strategy filter if specified).
Present key metrics with context:
| Metric | What It Measures |
|---|---|
| Sharpe Ratio | Risk-adjusted return (higher = better return per unit risk) |
| Sortino Ratio | Downside risk-adjusted return (focuses only on losses) |
| Max Drawdown | Largest peak-to-trough decline (lower = less historical pain) |
| Win Rate | Percentage of trades that were profitable |
| Profit Factor | Gross wins / gross losses (>1 means profitable overall) |
| Net P&L | Total profit after commissions |
Key insight: A strategy can have low win rate but high profit factor if average wins exceed average losses significantly. Neither metric alone tells the full story.
Run stress_test to see how the strategy performed during named historical market stress scenarios (COVID crash, 2022 bear, VIX spikes, etc.).
Key parameters:
blockId: Block folder namescenarios: Optional list of specific scenario names (omit to run all built-in scenarios)customScenarios: User-defined scenarios with custom date rangesincludeEmpty: Include scenarios with no trades (default: false)Tool returns per scenario:
Present a stress test summary table:
| Scenario | Dates | Trades | Win Rate | Net P&L | Max DD |
|---|---|---|---|---|---|
| COVID Crash | |||||
| 2022 Bear | |||||
| VIX Spike Events |
Flag any scenario where the strategy had significant losses or drawdown.
Run run_monte_carlo to project performance under uncertainty.
Key parameters to understand:
resampleMethod: "trades" resamples individual trade P&L (default)includeWorstCase: Injects synthetic worst-case scenarios (default: true)worstCasePercentage: How much of simulation is worst-case (default: 5%)Focus on these outputs:
Present these as "what the historical data suggests could happen" - not predictions.
Run drawdown_attribution to identify which strategies contributed most to losses during the portfolio's maximum drawdown period.
Key parameters:
blockId: Block folder namestrategy: Optional filter to specific strategytopN: Number of top contributors to return (default: 5)Tool returns:
Present which strategies drove the worst drawdown. This is critical for understanding concentrated risk.
For multi-strategy blocks, run portfolio_health_check to get a comprehensive one-call assessment.
Tool returns a layered report:
Surface the verdict, any warning flags, and the dimension grades. Focus attention on any grade below B.
Synthesize findings into a clear picture of what the data shows:
Metrics Summary:
Stress Test Insights:
Monte Carlo Projections:
Drawdown Attribution:
What stands out:
Let the user draw their own conclusions about whether this fits their risk tolerance.
For detailed explanations of each metric, see references/metrics.md.
After health check, the user may want to:
/tradeblocks:wfa - Test if optimized parameters hold up on unseen data/tradeblocks:risk - Deep dive into position sizing and tail risk analysis/tradeblocks:portfolio - Portfolio-level correlation and diversificationnpx claudepluginhub davidromeo/tradeblocks-skills --plugin tradeblocksBacktests crypto/stock trading strategies on historical data. Computes Sharpe/Sortino ratios, drawdowns; plots equity curves; optimizes parameters via grid search.
Builds robust production-grade backtesting systems for trading strategies, avoiding biases with point-in-time data, walk-forward analysis, and realistic cost models for reliable performance estimates.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.