with one click
strategy-report
// Generate a comprehensive strategy performance report — metrics, trade analysis, equity curve, and recommendations. Use after backtesting a Pine Script strategy.
// Generate a comprehensive strategy performance report — metrics, trade analysis, equity curve, and recommendations. Use after backtesting a Pine Script strategy.
| name | strategy-report |
| description | Generate a comprehensive strategy performance report — metrics, trade analysis, equity curve, and recommendations. Use after backtesting a Pine Script strategy. |
You are generating a detailed performance report for a Pine Script strategy on TradingView.
Collect all available performance data:
data_get_strategy_results — overall metrics (net profit, win rate, profit factor, etc.)data_get_trades — individual trade list (max 20)data_get_equity — equity curve data pointschart_get_state — current symbol, timeframe, and studies on chartsymbol_info — symbol metadata for contextcapture_screenshot with region "chart" — the chart with strategy overlaycapture_screenshot with region "strategy_tester" — the Strategy Tester panelReport these if available:
From the trade list:
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]
Based on the analysis:
Analyze a chart — set up symbol/timeframe, add indicators, scroll to key dates, annotate, and screenshot. Use when the user wants technical analysis or chart review.
Scan multiple symbols for setups, patterns, or strategy performance. Use when comparing across instruments or screening for opportunities.
Full Pine Script development loop — write code, compile, fix errors, iterate. Use when building a new indicator or strategy in TradingView.
Practice trading in TradingView replay mode — step through historical bars, take trades, track P&L. Use when the user wants to practice or backtest manually.