Backtest vs Alerts
Backtest vs Alerts compares the events in a TradingView List of Trades export with either captured webhook events or an alert-history CSV. It helps you find missing, extra, late, or price-divergent events before you investigate broker fills.
What the comparison establishes
Section titled “What the comparison establishes”The report pairs backtest events with alerts under the direction, timestamp, and price rules you select. It shows which records matched, which remained unmatched, and the measured time and price differences for the matched set.
Those observations help you choose a next check; they do not prove why a difference occurred. A timezone or scope mismatch, alert configuration, Pine behavior, source data, or the matching tolerances can all change the result. Hold the scope fixed and inspect specific rows before changing strategy logic.
Choose what you need
Section titled “Choose what you need”Set up the comparison
Section titled “Set up the comparison”Complete these four inputs, then run the comparison:
-
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
You do not need to connect Alpaca to run the comparison itself. Alpaca is only needed when the page must load chart bars and platform-served market data is not enabled for Backtest vs Alerts.
Read the result
Section titled “Read the result”After running an analysis, you’ll receive:
| Metric | Description |
|---|---|
| Match Rate | Percentage of backtest trades that found a corresponding alert |
| Missed Alerts | Backtest events with no alert match under the selected rules |
| False Alerts | Alert events with no backtest match under the selected rules |
| Time Drift | Average timing difference between expected and actual signals |
| Price Drift | Average price difference at signal time |
Interpret metrics in context
Section titled “Interpret metrics in context”A match rate is the share of backtest events that found an alert under the selected direction, time, and price rules. Read it together with the number of events, false alerts, the size and consistency of drift, and the strategy’s own expected timing.
There is no universal match-rate or latency threshold that proves a strategy is stable or ready for live capital. First confirm the data scope and timezone, then inspect the unmatched rows and compare the result with your own prior baseline.
Run it
Section titled “Run it”Related documentation
Section titled “Related documentation”- Alerts vs Fills — After reviewing signal alignment, audit broker-reported fills
- AI Pine Editing — Fix identified issues inside Algo Lab
- Webhook Configuration — Set up real-time alert capture