strategy-report

GitHub

用于生成Pine Script策略的综合性能报告,涵盖指标、交易分析、权益曲线及改进建议。在回测后触发,通过收集数据、截图和分析,输出结构化报告以评估策略表现并提供优化方向。

skills/strategy-report/SKILL.md tradesdontlie/tradingview-mcp

Trigger Scenarios

用户要求生成策略性能报告 完成Pine Script策略回测后

Install

npx skills add tradesdontlie/tradingview-mcp --skill strategy-report -g -y
More Options

Use without installing

npx skills use tradesdontlie/tradingview-mcp@strategy-report

指定 Agent (Claude Code)

npx skills add tradesdontlie/tradingview-mcp --skill strategy-report -a claude-code -g -y

安装 repo 全部 skill

npx skills add tradesdontlie/tradingview-mcp --all -g -y

预览 repo 内 skill

npx skills add tradesdontlie/tradingview-mcp --list

SKILL.md

Frontmatter
{
    "name": "strategy-report",
    "description": "Generate a comprehensive strategy performance report — metrics, trade analysis, equity curve, and recommendations. Use after backtesting a Pine Script strategy."
}

Strategy Performance Report

You are generating a detailed performance report for a Pine Script strategy on TradingView.

Step 1: Gather Data

Collect all available performance data:

  1. data_get_strategy_results — overall metrics (net profit, win rate, profit factor, etc.)
  2. data_get_trades — individual trade list (max 20)
  3. data_get_equity — equity curve data points
  4. chart_get_state — current symbol, timeframe, and studies on chart
  5. symbol_info — symbol metadata for context

Step 2: Capture Visuals

  1. capture_screenshot with region "chart" — the chart with strategy overlay
  2. capture_screenshot with region "strategy_tester" — the Strategy Tester panel

Step 3: Analyze

Key Metrics

Report these if available:

  • Net Profit and % return
  • Total Trades and Win Rate
  • Profit Factor (target > 1.5)
  • Max Drawdown ($ and %)
  • Average Trade ($ and %)
  • Sharpe Ratio if available
  • Max Consecutive Losses

Trade Analysis

From the trade list:

  • Largest winner and largest loser
  • Average winner vs average loser (reward:risk)
  • Long vs short performance breakdown
  • Time in market

Equity Curve Assessment

  • Is it smooth and upward-sloping?
  • Any extended drawdown periods?
  • Does it show consistency or was profit front/back-loaded?

Step 4: Generate Report

Format as a structured report:

## Strategy Report: [Strategy Name]
**Symbol:** [symbol] | **Timeframe:** [tf] | **Period:** [date range]

### Summary
[1-2 sentence overview of performance]

### Key Metrics
| Metric | Value |
|--------|-------|
| Net Profit | ... |
| Win Rate | ... |
| Profit Factor | ... |
| Max Drawdown | ... |

### Strengths
- [bullet points]

### Weaknesses
- [bullet points]

### Recommendations
- [specific actionable improvements]

Step 5: Suggest Improvements

Based on the analysis:

  • If win rate < 50% but profit factor > 1: suggest tighter entries
  • If max drawdown > 20%: suggest position sizing or stop loss adjustments
  • If profit factor < 1.2: suggest the strategy may need fundamental changes
  • If few trades: suggest widening the lookback or loosening entry criteria

Version History

  • 1d733f5 Current 2026-07-05 14:43

Same Skill Collection

skills/chart-analysis/SKILL.md
skills/multi-symbol-scan/SKILL.md
skills/pine-develop/SKILL.md
skills/replay-practice/SKILL.md

Metadata

Files
0
Version
c05b8f5
Hash
5935c67c
Indexed
2026-07-05 14:43

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 20:30
浙ICP备14020137号-1 $방문자$