Backtest vs Alerts
The Backtest vs Alerts analysis tool identifies logic divergence between your TradingView strategy’s backtested performance and the actual alerts it generates in real-time. This is your first line of defense against deploying a strategy that looks profitable in backtesting but fails to execute correctly in live markets.
Why This Matters
Section titled “Why This Matters”Many traders assume that if their backtest shows profit, their live alerts will replicate those results. In reality, several factors cause drift:
- Repainting signals that look perfect historically but disappear in real-time
- Bar timing differences between historical and live data feeds
- Complex conditional logic that behaves differently on closed vs. forming bars
- Timezone mismatches between your data sources
This tool gives you visibility into exactly where and why your strategy diverges.
Quick Navigation
Section titled “Quick Navigation”Workflow Overview
Section titled “Workflow Overview”The analysis follows a structured 4-step workflow:
-
Data Scope — Define your analysis window (date range) and select your alert data source (webhooks or CSV import)
-
Strategy Properties — Identify your strategy by name and symbol for tracking and reporting
-
Backtesting Results — Upload your TradingView Strategy Tester CSV export as the baseline
-
Analysis Configuration — Set time and price tolerances for signal matching
Once all steps are complete, click Run Analysis to generate your comparison report.
Prerequisites
Section titled “Prerequisites”Before starting, ensure you have:
- A TradingView strategy with backtesting results
- Alert data from one of these sources:
- Webhook events received in Algo Trade Analytics
- A CSV file of your alert history
- Access to TradingView’s Strategy Tester export feature
Understanding the Results
Section titled “Understanding the Results”After running an analysis, you’ll receive:
| Metric | Description |
|---|---|
| Match Rate | Percentage of backtest trades that found a corresponding alert |
| Missed Alerts | Backtest signals that never generated a real-time alert |
| False Alerts | Real-time alerts with no corresponding backtest trade |
| Time Drift | Average timing difference between expected and actual signals |
| Price Drift | Average price difference at signal time |
Performance Benchmarks
Section titled “Performance Benchmarks”| Match Rate | Status | Recommendation |
|---|---|---|
| 95%+ | ✅ Production Ready | Strategy logic is stable |
| 80-95% | ⚠️ Minor Issues | Review timing settings and edge cases |
| Below 80% | ❌ Needs Investigation | Do not trade live until resolved |
Next Steps
Section titled “Next Steps”Related Documentation
Section titled “Related Documentation”- Alerts vs Fills — After validating your logic, audit your execution quality
- Pine Script Editor — Fix identified issues with AI assistance
- Webhook Configuration — Set up real-time alert capture