Backtesting Data Upload
The Backtesting Results section is where you upload your TradingView Strategy Tester export. This trade history becomes the baseline against which your real-time alerts are compared.
Overview
Section titled “Overview”Your backtest data represents the “expected” behavior of your strategy — the trades it should generate based on historical data. By comparing this to actual alerts, you can identify where and why your strategy diverges between testing and live execution.
Exporting from TradingView
Section titled “Exporting from TradingView”Follow these steps to export your trade history:
-
Open Your Strategy Chart
Section titled “Open Your Strategy Chart”Navigate to TradingView and open the chart with your strategy applied. Make sure the strategy is actively running on the chart (you should see position markers and the Strategy Tester panel).
-
Access Strategy Tester
Section titled “Access Strategy Tester”At the bottom of your TradingView screen, locate and click the Strategy Tester tab. If you don’t see it:
- Click the three-dot menu (⋮) near the bottom panel tabs
- Select “Strategy Tester” from the list
The Strategy Tester panel shows your strategy’s performance metrics.
-
Navigate to List of Trades
Section titled “Navigate to List of Trades”Within the Strategy Tester panel, you’ll see several tabs:
- Overview
- Performance Summary
- List of Trades ← Click this one
- Properties
The List of Trades tab displays a table of all executed trades.
-
Export the Data
Section titled “Export the Data”In the top-right corner of the trades table, look for the Export icon (a download arrow or ”↓” symbol).
Click it to download the CSV file. The file will be named something like
Strategy Tester Trade List.csv. -
Verify the Export
Section titled “Verify the Export”Open the downloaded CSV to verify it contains:
- Trade # column
- Type (Entry/Exit)
- Signal name
- Date/Time
- Price
- Profit information
If any columns are missing, check your TradingView version or strategy settings.
Uploading Your Data
Section titled “Uploading Your Data”Once you have your CSV file:
Drag and Drop Upload
Section titled “Drag and Drop Upload”- Locate your downloaded CSV file
- Drag the file over the upload zone (dotted border area)
- Drop the file when the zone highlights
- Wait for validation to complete
Browse for File
Section titled “Browse for File”- Click anywhere in the upload zone
- A file browser dialog opens
- Navigate to your CSV file
- Select the file and click “Open”
- Wait for validation to complete
Paste CSV Content
Section titled “Paste CSV Content”- Open your CSV in a text editor or spreadsheet
- Select all content (Ctrl+A / Cmd+A)
- Copy to clipboard (Ctrl+C / Cmd+C)
- Click in the paste area of the upload zone
- Paste content (Ctrl+V / Cmd+V)
CSV Format Specification
Section titled “CSV Format Specification”The system expects TradingView’s standard export format:
Required Columns
Section titled “Required Columns”| Column | Description | Example |
|---|---|---|
Trade # | Sequential trade number | 1, 2, 3 |
Type | Entry or Exit | Entry Long, Exit Long |
Signal | Strategy signal name | Buy Signal, Take Profit |
Date/Time | Trade timestamp | 2024-01-15 09:30:00 |
Price | Execution price | 245.50 |
Contracts | Position size | 100 |
Optional Columns (Enhanced Analysis)
Section titled “Optional Columns (Enhanced Analysis)”| Column | Description | Used For |
|---|---|---|
Profit % | Trade profit percentage | Performance analysis |
Profit | Trade profit in currency | Performance analysis |
Cum. Profit % | Cumulative profit | Equity curve |
Cum. Profit | Cumulative profit value | Equity curve |
Run-up % | Maximum favorable excursion | Risk analysis |
Drawdown % | Maximum adverse excursion | Risk analysis |
Example CSV Content
Section titled “Example CSV Content”Trade #,Type,Signal,Date/Time,Price,Contracts,Profit %,Profit,Cum. Profit %,Cum. Profit1,Entry Long,Buy Signal,2024-01-15 09:30:00,245.50,100,,,,1,Exit Long,Take Profit,2024-01-15 14:45:00,248.20,100,1.10%,$270.00,1.10%,$270.002,Entry Long,Buy Signal,2024-01-16 10:15:00,242.80,100,,,,2,Exit Long,Stop Loss,2024-01-16 11:30:00,241.50,100,-0.54%,-$130.00,0.56%,$140.00Timezone Configuration
Section titled “Timezone Configuration”Your backtest data and alert data may be in different timezones:
| Data Source | Typical Timezone |
|---|---|
| TradingView Backtest | Exchange timezone or UTC |
| Webhook Alerts | UTC (server time) |
| Your Local CSV | Your local timezone |
Timezone Offset Adjustment
Section titled “Timezone Offset Adjustment”Use the Timezone Offset slider to align your data:
| Offset | Use Case |
|---|---|
0 hours | Both sources are already in UTC |
-5 hours | Convert EST → UTC |
-8 hours | Convert PST → UTC |
+1 hour | Convert CET → UTC |
How to determine the offset:
- Find a trade that appears in both backtest and alerts
- Compare the timestamps
- Calculate the difference
- Apply that offset to the slider
Validation & Processing
Section titled “Validation & Processing”After upload, the system:
- Parses the CSV structure
- Validates required columns exist
- Extracts trade information
- Normalizes dates and formats
- Displays trade count and date range
Successful Upload Indicators
Section titled “Successful Upload Indicators”- ✅ Green checkmark appears
- Trade count displayed (e.g., “247 trades loaded”)
- Date range shown (e.g., “Jan 1 - Jan 31, 2024”)
- Step marked as complete in workflow
Validation Errors
Section titled “Validation Errors”| Error | Cause | Solution |
|---|---|---|
| ”Invalid CSV format” | File is corrupted or wrong format | Re-export from TradingView |
| ”Missing required columns” | CSV doesn’t have standard headers | Verify TradingView export |
| ”No trades found” | CSV is empty or filtered out | Check date range, re-export |
| ”Parse error on row X” | Invalid data in specific row | Check/fix that row manually |
Completion Criteria
Section titled “Completion Criteria”The Backtesting Results step is marked complete (✓) when:
- A valid CSV file is uploaded
- At least one trade is successfully parsed
- Trade count is displayed
Once complete, the Analysis Configuration step automatically expands.
Best Practices
Section titled “Best Practices”Before Exporting
Section titled “Before Exporting”- Set your chart date range to match your intended analysis period
- Verify your strategy settings are the same as when alerts were generated
- Check trade visibility — ensure all trades are displayed in the Strategy Tester
After Uploading
Section titled “After Uploading”- Verify trade count seems reasonable for the period
- Spot-check timestamps against your expectations
- Confirm symbol matches your strategy properties entry
Common Issues
Section titled “Common Issues”Fewer Trades Than Expected
Section titled “Fewer Trades Than Expected”Causes:
- TradingView limited the export
- Chart date range is narrower than you think
- Strategy has fewer historical signals than expected
Solutions:
- Extend chart date range and re-export
- Check TradingView plan export limits
- Verify strategy was active for the entire period
”No Trades in Date Range” After Upload
Section titled “”No Trades in Date Range” After Upload”Cause: Your uploaded trades don’t overlap with your Data Scope date range.
Solutions:
- Adjust Data Scope dates to match your backtest data
- Re-export backtest with a different date range
- Check timezone offset isn’t shifting dates outside your range
Duplicate Trade Numbers
Section titled “Duplicate Trade Numbers”Cause: Multiple entries/exits share the same trade number (this is normal — each trade has an entry and exit).
Note: This is expected behavior. Trade #1 will have both an “Entry” and “Exit” row.
Related Sections
Section titled “Related Sections”- Strategy Properties — Previous step: identify your strategy
- Analysis Configuration — Next step: set matching tolerances
- Troubleshooting — Full troubleshooting guide