1.9 KiB
1.9 KiB
| name | description |
|---|---|
| tradelab-backtest-interpretation | Use when reviewing TradeLab backtest output so recommendations are grounded in getBacktestResults data and mapped to concrete strategy changes. |
TradeLab Backtest Interpretation
Overview
Use getBacktestResults output as the source of truth for strategy feedback. Interpret risk and return metrics first, then propose specific code-level changes through the strategy workflow.
When to Use
- User asks why strategy performance is good or bad.
- User asks how to improve a strategy after a backtest.
- A new
currentBacktestIdis available in context.
Non-Optional Rules
- Retrieve metrics via
getBacktestResultsbefore proposing optimizations. - Anchor every recommendation to returned fields, not guesses.
- Separate analysis into: performance, risk, and action plan.
- If code changes are needed, route them through full-class
saveStrategyflow.
Metric Interpretation Baselines
sharpeRatio:< 1.0weak,1.5-2.0good,> 2.0elite.profitFactor:< 1.2fragile,1.5-2.5robust,> 3.0possible overfit.maxDrawdown: flag if> 15%; suggest volatility controls or regime filters.winRate < 40%: verify payoff ratio; add entry-quality filters.
Tool Usage Pattern
{
"backtestId": "optional-explicit-id",
"strategyId": "optional-fallback-id",
"includeTrades": false,
"metricFilter": ["performance", "risk", "ratios"]
}
Output Pattern
- State key facts from tool output.
- Explain likely failure mode (entries, exits, regime mismatch, risk sizing).
- Propose 2-3 prioritized improvements tied to those facts.
- If user approves changes, produce full updated class through
saveStrategy.
Common Mistakes
- Recommending changes without calling
getBacktestResults. - Giving generic advice not tied to metric values.
- Treating high
profitFactorwithout checking overfit risk.