Skip to content
Algo Trade Analytics Docs

AI Insights

Basic & Pro Plans

The AI Insights feature provides automated analysis of your backtest vs alerts comparison, identifying patterns in mismatches and generating actionable recommendations to improve your strategy.


After running your analysis, click “Analyze with AI” to open the AI Insights panel. The AI assistant reviews your:

  • Match rate and key metrics
  • Pattern of missed alerts and false alerts
  • Time and price drift distributions
  • Strategy configuration

It then provides:

  • Diagnosis of likely issues
  • Specific recommendations for fixes
  • Direct path to implement changes in the Pine Script Editor

To use AI Insights, you need:

  • Basic or Pro plan — AI features require a paid subscription
  • Completed analysis — Run the comparison first
  • AI credentials configured — Set up in Account Settings
  • Available credits — AI requests consume token credits

  1. Finish the 4-step workflow and click “Run Analysis” to generate your comparison results.

  2. Click the “Analyze with AI” button in the header or results section.

    A drawer panel opens on the right side of the screen.

  3. The AI processes your data, which typically takes 10-30 seconds depending on:

    • Size of your dataset
    • Complexity of patterns
    • Current AI model load
  4. The AI presents its analysis in a structured format:

    • Summary — High-level assessment
    • Issues Identified — Specific problems found
    • Recommendations — Actionable fixes
    • Code Suggestions — Pine Script modifications (if applicable)
  5. Choose your next step:

    • Apply recommendations manually
    • Open in Pine Script Editor for AI-assisted code changes
    • Save snapshot to preserve this context

AnalysisWhat It Checks
Time Drift DistributionAre delays consistent or variable?
Price Drift DistributionAre price gaps within expected ranges?
Match Rate by Signal TypeDo entries match better than exits?
Match Rate by Time of DayAre certain hours problematic?
Outlier DetectionAre there extreme mismatches?
AnalysisWhat It Evaluates
Strategy ConfigurationAre your tolerances appropriate?
Data QualityAre there obvious data issues?
Common Issue PatternsDoes this match known problems?
Risk LevelHow critical are the issues?

The AI provides a brief overall assessment:

“Your strategy shows a 82% match rate, which indicates minor timing issues. The primary cause appears to be a consistent 3-minute delay in alert delivery, likely due to timezone misconfiguration.”

Specific problems are listed with severity:

SeverityMeaning
🔴 CriticalMust fix before live trading
🟡 WarningShould address, but not blocking
🟢 InfoMinor optimization opportunity

Example issue:

🟡 WARNING: Exit signals show 15% higher miss rate than entries.
Cause: TradingView alert may not be configured for exit signals.
Impact: Exit orders may not execute in live trading.

Actionable steps to resolve each issue:

Example recommendations:

1. Timezone Adjustment
→ Go to Backtesting Upload step
→ Set timezone offset to -3 hours
→ Re-run analysis to verify
2. Alert Configuration
→ Open TradingView alert settings
→ Add condition for exit signals
→ Verify alert webhook URL is correct

If the AI detects Pine Script issues, it may suggest code changes:

// Current (problematic):
if (crossover(fast, slow))
strategy.entry("Long", strategy.long)
// Suggested (fixed):
if (barstate.isconfirmed and crossover(fast, slow))
strategy.entry("Long", strategy.long)

For code-level fixes, click “Open in Pine Script Editor”:

  1. Your analysis snapshot is saved automatically
  2. The Pine Script Editor opens with context loaded
  3. The AI assistant has full knowledge of your issues
  4. You can ask follow-up questions about fixes

The AI uses your configured model from Account Settings:

ModelBest For
Advanced (5-codex)Complex analysis, detailed code suggestions
Fast (5-mini)Quick assessments, lower credit usage

AI Insights consumes credits based on:

  • Input size (your analysis data)
  • Output length (AI response)
  • Model selected

Typical usage: 500-2000 tokens per analysis.


  • ✅ Identify statistical patterns in your data
  • ✅ Correlate mismatches with known issues
  • ✅ Suggest configuration adjustments
  • ✅ Propose Pine Script modifications
  • ❌ Access your TradingView account
  • ❌ Automatically fix your alerts
  • ❌ Guarantee predictions are correct
  • ❌ Access real-time market data

To preserve your AI analysis session:

  1. Save Snapshot — Stores your analysis data and AI response
  2. Export Report — Downloads a summary document
  3. Note in Editor — AI context carries over to Pine Script Editor

Saved snapshots can be reloaded later to:

  • Compare with future analyses
  • Resume AI conversation
  • Share with support if needed

CauseSolution
No analysis dataRun the comparison first
AI not configuredSet up credentials in Account Settings
Free planUpgrade to Basic or Pro
No creditsPurchase additional credits
CauseSolution
Large datasetTry narrowing date range
Complex patternsWait longer, or use simpler model
Service loadRetry in a few minutes
CauseSolution
Insufficient contextProvide more detail in follow-up
Unusual strategyExplain your specific setup
Edge caseUse manual analysis for verification