AI Insights
The AI Insights feature uses artificial intelligence to analyze your alerts vs fills comparison data and provide actionable recommendations for improving execution quality.
Overview
Section titled “Overview”AI Insights examines your execution data and provides:
- Pattern recognition — Identifies trends and anomalies
- Root cause analysis — Explains why issues occur
- Optimization recommendations — Actionable steps to improve
- Strategy suggestions — Code-level improvements
Prerequisites
Section titled “Prerequisites”Before using AI Insights, ensure:
- Basic or Pro plan — Required for AI features
- AI Assistant configured — Set up in Account Settings
- Comparison data available — Generate an alerts vs fills comparison first
- Sufficient credits — AI insights consume credits based on analysis size
How to Use AI Insights
Section titled “How to Use AI Insights”-
Generate Comparison Data
Complete your alerts vs fills analysis:
- Select symbol and date range
- Load TradingView alerts (webhook or CSV)
- Load Alpaca fills
- Wait for matching to complete
-
Open AI Insights
Click the “Analyze with AI” button in the header:
- Button appears after comparison is complete
- Shows loading state while generating
- Opens the AI Insights drawer
-
Review Analysis
The AI Insights drawer displays:
- Executive summary — High-level findings
- Key insights — Top issues identified
- Recommendations — Actionable steps
- Reasoning trail — How AI reached conclusions
-
Take Action
Use the insights to:
- Copy prompt — Use in Pine Script AI Editor
- Open in Editor — Send context to AI editor
- Save snapshot — Preserve analysis with insights
Understanding AI Insights
Section titled “Understanding AI Insights”Executive Summary
Section titled “Executive Summary”The summary provides:
- Overall assessment — Good, acceptable, or concerning
- Primary issues — Top 2-3 problems identified
- Impact estimate — How much these issues cost you
Key Insights Section
Section titled “Key Insights Section”Each insight includes:
- Issue description — What the problem is
- Evidence — Data supporting the finding
- Frequency — How often it occurs
- Impact — Financial or performance cost
Recommendations
Section titled “Recommendations”AI provides specific, actionable recommendations:
| Category | Examples |
|---|---|
| Infrastructure | Network optimization, server location |
| Order Types | Switch to limit orders, adjust timing |
| Strategy | Code changes, parameter adjustments |
| Broker | API settings, account configuration |
Reasoning Trail
Section titled “Reasoning Trail”The reasoning trail shows:
- Step-by-step analysis — How AI processed your data
- Data points considered — What metrics were analyzed
- Conclusion logic — Why recommendations were made
Opening in Pine Script AI Editor
Section titled “Opening in Pine Script AI Editor”You can send your analysis context directly to the Pine Script AI Editor for code-level optimization.
How It Works
Section titled “How It Works”- Click “Open in Pine Script AI” in the AI Insights drawer
- Context is prepared — Analysis data is formatted for AI
- Editor opens — Pine Script AI Editor loads with context
- Chat is pre-populated — Initial prompt includes your analysis
What Gets Sent
Section titled “What Gets Sent”The context includes:
- Comparison summary — Match rate, latency, slippage
- Key metrics — Top issues and patterns
- Trade examples — Sample problematic trades
- AI insights — Generated recommendations
Use Cases
Section titled “Use Cases”- Code optimization — Get specific Pine Script improvements
- Strategy refinement — Adjust strategy based on execution data
- Parameter tuning — Optimize strategy settings
- Bug fixes — Identify and fix code issues
AI Insights Workflow
Section titled “AI Insights Workflow”Standard Workflow
Section titled “Standard Workflow”Generate Comparison → Analyze with AI → Review Insights →Take Action → Monitor Results → RepeatAdvanced Workflow
Section titled “Advanced Workflow”- Generate comparison for a time period
- Save snapshot with baseline metrics
- Generate AI insights and recommendations
- Implement changes based on recommendations
- Generate new comparison after changes
- Compare snapshots to measure improvement
- Iterate until execution quality improves
Best Practices
Section titled “Best Practices”When to Use AI Insights
Section titled “When to Use AI Insights”Good times:
- After completing a comparison with concerning metrics
- When you see patterns but don’t understand them
- Before making significant strategy changes
- When comparing different time periods
Less useful:
- With very small datasets (<10 trades)
- When metrics are already excellent
- Without comparison data
Getting Better Insights
Section titled “Getting Better Insights”- Larger datasets — More trades = better pattern recognition
- Complete data — Ensure all trades are loaded
- Relevant timeframes — Use recent, representative periods
- Clear questions — Know what you want to optimize
Interpreting Results
Section titled “Interpreting Results”- Consider context — AI doesn’t know your full strategy
- Validate recommendations — Test changes before deploying
- Review reasoning — Understand why AI suggests changes
- Combine with expertise — Use AI as a tool, not replacement
Limitations
Section titled “Limitations”What AI Can’t Do
Section titled “What AI Can’t Do”- Predict future performance — Only analyzes past data
- Account for all factors — May miss external influences
- Guarantee improvements — Recommendations are suggestions
- Replace human judgment — Use as input, not final decision
Data Quality Matters
Section titled “Data Quality Matters”AI insights are only as good as your data:
- Incomplete data → Incomplete insights
- Inaccurate data → Misleading recommendations
- Small datasets → Less reliable patterns
- Outdated data → Irrelevant suggestions
Troubleshooting
Section titled “Troubleshooting””AI Insights Unavailable”
Section titled “”AI Insights Unavailable””Causes:
- No comparison data generated
- AI Assistant not configured
- Insufficient credits
- Service temporarily unavailable
Solutions:
- Generate comparison data first
- Configure AI Assistant in Account Settings
- Purchase credits if needed
- Try again later
”Loading AI Credentials”
Section titled “”Loading AI Credentials””Meaning: System is checking your AI configuration.
Wait time: Usually 1-2 seconds.
If it persists: Check Account Settings → AI Assistant configuration.
Insights Seem Incorrect
Section titled “Insights Seem Incorrect”Possible reasons:
- Small dataset (not enough data)
- Unusual market conditions
- Data quality issues
Actions:
- Review reasoning trail
- Check data completeness
- Generate insights for different time period
- Validate with manual analysis
Related Sections
Section titled “Related Sections”- Advanced Analytics — Detailed analysis tools
- Metrics & Analysis — Understanding metrics
- Pine Script Editor — Code optimization
- Account Settings — AI Assistant configuration