TradingView Backtest & Robustness Lab guide
Move from checking backtest profit to challenging the assumptions behind it
TradingView Backtest & Robustness Lab is a browser-based tool for loading CSV or XLSX files exported from TradingView Strategy Tester and descriptively aggregating, diagnosing and visualizing key KPIs, equity, drawdown, Monte Carlo results, risk of ruin, stress tests and robustness. Free includes unlimited core analyses; Pro adds saving, practical diagnostics and export; Premium adds walk-forward and out-of-sample testing, parameter stability, multi-strategy portfolios, batch reporting and custom analysis workflows.
- Unlimited core analysis for freeImport CSV/XLSX and review KPIs, equity, drawdown, Monte Carlo and stress tests.
- Local-first analysisCSV and XLSX analysis data is not transmitted to SG Group; analysis runs on the browser side.
- Descriptive validationThe Lab does not provide trade signals, forecasts, guaranteed returns, auto-trading or order execution.
About TradingView Backtest & Robustness Lab
A backtest should not stop at the question “did it make money in the past?” Data quality, trading costs, the depth and duration of losses, trade ordering, out-of-sample degradation and stability around neighboring parameter values are separate questions. The Lab re-aggregates imported backtest results in one workspace so you can identify which assumptions a result depends on and inspect weaknesses hidden by one attractive headline number.
- Intended users
- Traders who use TradingView Strategy Tester, Pine Script strategy developers, and individuals or organizations that repeatedly save, compare, validate and report on backtests.
- Intended data
- Strategy Tester trade lists or summaries and generic CSV/XLSX files with equivalent fields. The available analysis depends on the columns and granularity in the file.
- What it does
- Mechanically, statistically and descriptively aggregates past trade results, then visualizes, diagnoses, compares assumptions and produces reports.
- What it does not do
- Investment advice, trade timing, instrument, size or parameter recommendations, price forecasts, real-time market data, auto-trading, order execution or guarantees of future results.
“Robustness” is not an absolute pass certificate. It is a way to describe how a result changes as different validation layers challenge it, within the limits of the imported data and selected settings.
What you can examine with the Lab
Profitability, efficiency and loss behavior
- Net profit, gross profit, gross loss, win rate and average win or loss
- Expectancy, payoff ratio, Profit Factor and trade count
- Equity, drawdown and underwater views
- Risk-adjusted metrics such as Sharpe, Sortino and SQN
Sequence, distribution and cost sensitivity
- Monte Carlo, bootstrap, losing-streak and sequence-risk analysis
- Risk of ruin, VaR, CVaR, skewness and kurtosis
- Commission, spread and slippage sensitivity
- Stress tests, return distributions and rolling statistics
Overfitting, OOS and multiple strategies
- Walk-forward splits and the OOS reliability score
- Parameter-stability matrices and plateau or cliff detection
- Rolling robustness, regime change and MFE/MAE diagnostics
- Inter-strategy correlation, portfolio composition, allocation and clustering
The analyses that can be produced depend on the imported columns, period, trade count, timestamp granularity and cost settings. An aggregate-only file cannot recreate trade order, intratrade MFE/MAE, sessions or a common time axis across several strategies.
Files and data you can import
The standard input formats are CSV and XLSX. If Strategy Tester column names differ by language or version, generic column mapping can match source columns to analysis fields. The Lab also supports multi-file import.
| Input | Typical contents | Best suited to | Important limitation |
|---|---|---|---|
| Strategy Tester List of Trades | Trade number, direction, entry and exit timestamps and prices, quantity, P&L and cumulative P&L | KPI reconstruction, trade sequence, losing streaks, equity, drawdown and Monte Carlo | The preferred source for trade-level analysis. Confirm column meaning, timestamps, currency and units. |
| Performance Summary | Aggregate net profit, win rate, Profit Factor, maximum drawdown and other summary values | Top-level review and reconciliation with the source report | Without individual trades, detailed sequence, distribution and MFE/MAE diagnostics cannot be reconstructed. |
| Generic CSV or XLSX | Custom fields with equivalent meanings or trade detail cleaned in another environment | Core analysis and comparison after column mapping | Define date, time, direction, P&L, quantity and cost fields; keep one trade per row in a clean, flat table. |
| Multiple files | Different strategies, versions, instruments, timeframes, periods or cost assumptions | Cross-sectional summaries, version comparison, group analysis and multi-strategy work | Do not blindly merge files with different currencies, initial capital, periods, time zones or cost assumptions. |
| Optional run-up, drawdown or session fields | Intratrade favorable or adverse excursion, time-of-day and session information | MFE/MAE, exit efficiency and session analysis | If the fields are missing, the same detail cannot be recreated. Coarse price data also understates intratrade extremes. |
Record these assumptions before import
- Backtest start and end dates, instrument, timeframe and time zone
- Initial capital, base currency and position-sizing method, such as fixed, percentage or compounding
- Whether commission, spread, slippage, financing and other costs are included
- Open trades, duplicate rows, missing values, encoding, delimiter and date format
- Look-ahead, repainting, synthetic bars and fill assumptions in the source backtest
Data source, as-of dates and refresh timing
The Lab’s data source is the backtest file you import; it is not a service that periodically distributes live market data. Record the backtest start and end dates, trade timestamps and time zone, file-export date, analysis date and report-generation date separately. Re-export and re-import whenever the strategy version, parameters, instrument, timeframe, initial capital, cost assumptions or source data change. There is therefore no fixed refresh frequency: the as-of point of every result depends on the imported file and analysis settings.
A chart-data CSV contains OHLC price history, not a trade history. The Lab does not import Pine Script source, screenshots, PDFs or a real-time price feed and automatically decide whether a strategy is valid. See the Strategy Tester CSV export guide for the practical export workflow.
Analysis results and outputs
| Category | Typical displays and results | What they help you examine | Main plan |
|---|---|---|---|
| Core KPIs | Net P&L, win rate, average P&L, expectancy, Profit Factor, Sharpe and trade count | The balance among profitability, efficiency, stability and sample size | Free and above |
| Curves and drawdown | Equity, drawdown, peak and trough, recovery and core charts | The depth, duration, frequency and recovery shape of losses | Free and above |
| Sequence and stress | Monte Carlo, risk of ruin, stress tests, robustness score and basic quality diagnostics | Distributions produced by changing trade order or selected assumptions | Free and above |
| Practical diagnostics | Confidence intervals, sample size, risk and sequence, cost sensitivity, distributions, rolling views and calendars | Uncertainty around point estimates and dependence on time, costs or outliers | Pro and above |
| Cross-analysis, saving and export | Saved analyses, strategy versions, groups, pivots, Excel/XLSX, report history and Vault | Compare several results under aligned assumptions and retain a reproducible research trail | Pro and above |
| Advanced robustness | Walk-forward, OOS, parameter stability, Rolling Robustness Pro and regime-change detection | Inspect signs of overfitting from out-of-sample, neighboring-parameter and time perspectives | Premium |
| Multi-strategy, exit and advanced stress | Portfolios, correlation, allocation, clustering, MFE/MAE, sessions and the 2D Stress Grid | Strategy overlap, simultaneous losses, exit behavior and interactions among several assumptions | Premium |
| Reporting and custom workflows | Batch, unbranded and advanced reports, custom CSV parser and implementation requests | Standardize recurring validation, produce shareable outputs and accommodate proprietary formats | Premium |
Under the current plan description, analyses, file imports, available diagnostic runs and report generation are unlimited within the feature scope of each plan. Save capacity, available diagnostics and report formats still differ by plan.
How to use the Lab
- Lock the assumptions.Record the instrument, timeframe, period, initial capital, sizing, commission, slippage and time zone.
- Export the trade list.Open List of Trades in TradingView Strategy Tester and save it as CSV or XLSX. Labels and export behavior can change, so confirm the current interface and official help.
- Import the file.Drag and drop or select the file, then map date, direction, prices, quantity, P&L and other columns when needed.
- Review quality warnings first.Check missing or duplicate rows, timestamps, units, open trades, sample size, outliers and cost fields; return to the source when a repair is required.
- Read KPIs together.Do not stop at net profit or win rate; combine expectancy, Profit Factor, trade count, maximum drawdown, Sharpe and the return distribution.
- Challenge the assumptions.Run Monte Carlo, risk-of-ruin, cost-sensitivity and stress checks to move from one path to a distribution of possible paths under the model.
- Inspect OOS and neighboring values.When needed, add OOS or walk-forward analysis, parameter stability, time or regime checks and multi-strategy analysis.
- Keep a comparable record.Save or export the settings, strategy version, data period and run date with the result so the validation can be reviewed later.
A practical order is: data quality → KPIs → drawdown → Monte Carlo and stress → costs → OOS → parameter neighborhood → multiple strategies. Lock each earlier assumption before relying on a later layer.
Metrics and diagnostic logic
Metrics are computed mechanically from the imported trade fields and selected settings. Diagnostic comments are rule-based. No single number or color is a universal pass or fail; compare results only when definitions, units, periods and cost assumptions are aligned.
| Metric | Basic logic | What it describes | Important caveat |
|---|---|---|---|
| Net profit | Sum of realized trade P&L, with selected costs deducted where configured | The result over the tested period | Do not compare raw amounts across different capital, sizing, currencies, compounding methods or periods. |
| Win rate | Winning closed trades divided by all closed trades | How often trades won | Read with average win, average loss and costs. A high win rate can still have negative expectancy. |
| Payoff ratio and expectancy | Payoff ratio is average win divided by absolute average loss; expectancy is average P&L per trade | The combination of win/loss size and frequency | Check whether a few large wins or outliers dominate the result; review medians, distribution and trade count. |
| Profit Factor | Gross profit divided by absolute gross loss | Gross profit earned per unit of gross loss | It is unstable when the sample has no losses. There is no universal passing threshold. |
| Maximum drawdown | Largest peak-to-subsequent-trough decline in the selected equity or balance series | The deepest historical decline | Also review recovery time, time underwater and whether the series is balance- or equity-based. |
| Sharpe, Sortino and SQN | Standardize mean return by total variability, downside variability or trade P&L standard deviation | Risk-adjusted stability | Frequency, annualization, risk-free rate and sample definition change the values; compare like with like. |
| Calmar, Recovery Factor and Ulcer | Relate return or net profit to drawdown; Ulcer uses the root mean square of percentage drawdowns | Recovery relative to losses and the depth and persistence of declines | Align annualization, currency versus percentage and balance versus equity definitions. |
| VaR and CVaR | Loss quantile at the selected confidence level and the mean loss beyond that quantile | Typical-tail and deeper-tail loss under the observed distribution | They depend on historical data and model assumptions and do not state the maximum possible loss. |
| Monte Carlo and bootstrap | Repeatedly reorder or resample observed trades to form distributions of ending P&L, drawdown and streaks | Sensitivity to trade sequence and sample variation | This does not forecast a market structure absent from the source data. Record method, run count and seed. |
| Risk of ruin | Share of simulations that reach the user-defined ruin threshold | How often the chosen capital floor is reached under the simulation | It is conditional on the threshold, initial capital, risk size and resampling model. |
| Robustness score and quality diagnostics | Rule-based summary of several data-quality, sample, loss and sensitivity signals; exact weights and thresholds are not disclosed in the public description | A compact pointer to areas that need investigation | It is not a certification of future effectiveness. Read the component warnings and source values. |
| Cost sensitivity and stress | Change commission, spread, slippage or other assumptions and recompute KPIs and drawdown | The amount of room left after friction increases | Align units and avoid counting costs twice when they are already included in the TradingView result. |
| OOS and walk-forward | Split time-ordered data into fitting, validation and out-of-sample folds, then compare degradation and repeatability | Whether behavior persists outside the period used to tune the strategy | Repeatedly tuning against the same OOS period fits that OOS too. Review trade count and distributions. |
| Parameter stability | Arrange neighboring parameter results in a matrix and inspect connected high regions and sharp drop-offs | A broad plateau versus a one-point cliff | Read the neighborhood, not only the highest point. Product-specific thresholds are not disclosed publicly, and a broad plateau still does not guarantee future results. |
| MFE, MAE and exit efficiency | Compare maximum favorable and adverse movement during a trade with realized P&L | Profit giveback, adverse excursion and exit behavior | Sign conventions vary; confirm direction, intratrade high/low, granularity, costs and zero denominators. |
| Correlation and portfolio analysis | Align return series on a common time axis, then calculate correlation, combined P&L, combined drawdown and allocations | Duplication, simultaneous loss and apparent diversification | Do not correlate unmatched individual trades. Align currency, frequency, period and capital; correlation is not causation. |
Display precision, annualization, missing-value handling, the risk-free rate, ruin threshold and simulation method can change a result. Attach settings, period, units and data version to every report and reconcile differences between tools by checking definitions first.
Sample analysis
The following values are fictional educational data used only to demonstrate how to read several metrics together. They are not a real strategy, actual performance, recommended parameters or user averages.
| Metric | Fictional value | Impression in isolation | Read alongside |
|---|---|---|---|
| Total trades | 214 | A non-trivial sample | Concentration by period, instrument and regime |
| Win rate | 47% | Below half | Average win/loss and expectancy |
| Average win / average loss | +1.56R / −1.00R | Winners are larger | Distribution, outliers and losing streaks |
| Expectancy | +0.20R per trade | Positive in sample | Confidence interval, costs and OOS |
| Profit Factor | 1.38 | Above 1 | Maximum drawdown, subperiods and concentration |
| Sharpe | 0.82 | Moderate relative to variability | Frequency, annualization and return distribution |
| Maximum drawdown | −15.3% | Shows historical loss depth | Recovery, streaks and Monte Carlo drawdown |
How to read this result
- Win rate does not reject it by itself.Although 47% is below half, the fictional average win is larger than the average loss and expectancy is positive.
- Profit Factor does not approve it by itself.A PF of 1.38 means gross profit exceeded gross loss in this past sample, but it must be read beside the −15.3% maximum drawdown and recovery time.
- Trade count is only a starting point.Check whether 214 trades are concentrated in one regime or depend on a few exceptional winners.
- Challenge costs and sequence.Raise commission and slippage assumptions, then use Monte Carlo to examine losing-streak and drawdown distributions.
- Finish with unseen data.Do not call the strategy robust until OOS, walk-forward and neighboring-parameter checks have been reviewed.
The sample conclusion is not “good” or “bad.” It is: the in-sample profitability looks positive, but loss behavior, costs, distribution, OOS and neighboring parameters still need to be challenged. Use the Lab’s diagnostics to identify the next assumption to test, not as a final trading decision.
Free and paid plans compared
Free is for correctly aggregating the file and seeing the core picture. Pro is for saving the work, running deeper practical diagnostics and exporting it. Premium is for extending the workflow into out-of-sample periods, neighboring parameters, time, multiple strategies and recurring reports. The table is a summary reviewed on July 15, 2026. The current plans page takes precedence.
| Area | Free | Pro | Premium |
|---|---|---|---|
| Primary purpose | Core analysis and visualization | Saving, practical diagnostics and export | Robustness, multi-strategy, reports and custom workflows |
| Input and core analysis | CSV/XLSX, generic mapping, multiple files, key KPIs, equity and drawdown | Everything in Free | Everything in Pro |
| Risk analysis | Monte Carlo, risk of ruin, stress, basic robustness and quality diagnostics | Confidence intervals, sequence, costs, distributions, rolling views, calendar and Kelly reference statistics | Rolling Robustness Pro, MFE/MAE, sessions and the 2D Stress Grid |
| Saving, comparison and export | Basic report and lite cross-sectional summary | Unlimited saves, version comparison, batch import, templates, encrypted Vault, Excel/XLSX and history | Batch, unbranded and advanced reports plus Strategy Version Lab Pro |
| OOS and parameters | — | — | Walk-forward, OOS reliability, stability matrix, plateau/cliff and regime change |
| Multiple strategies | Lite summary | Cross-sectional groups, multi-axis pivots and segment analysis | Portfolio composition, correlation, allocation, capital simulation, clustering and similarity |
| Custom workflows | — | — | Custom CSV parser, full rule-based commentary and implementation requests, subject to scope and a separate quote |
| Price | $0 | $5.90/month or $59/year | $14.90/month or $149/year |
No plan includes investment advice, trade signals, forecasts, guaranteed win rates or returns, auto-trading, order execution or real-time market data. Annual billing is priced at ten monthly payments, equivalent to two months off.
Paid features: turn a one-off result into a reproducible validation workflow
The value of a paid plan is not only a longer metric list. Pro turns a check that disappears after each session into a saved, comparable and exportable record. Premium extends the workflow across out-of-sample data, neighboring parameters, time and relationships among several strategies.
Save, investigate and export recurring validation
$5.90/month or $59/year
- Unlimited saved analyses, strategy-version comparison and batch import
- Multi-layer data quality, KPI reliability, cost sensitivity and return/drawdown deep dives
- Rolling and calendar views, trade-sequence replay, cross-sectional groups and pivots
- Excel/XLSX export, report history, local workspace management and encrypted Vault
Best for: people who repeatedly compare a strategy by settings, period and version and need a saved, reusable validation record.
Inspect how the result breaks across OOS, parameters and multiple strategies
$14.90/month or $149/year
- Walk-forward splits, OOS reliability and out-of-sample degradation checks
- Parameter stability, plateau/cliff, rolling robustness and regime-change detection
- Multi-strategy portfolios, correlation, allocation, capital simulation and clustering
- MFE/MAE, exit efficiency, session optimization and the 2D Stress Grid
- Batch, unbranded and advanced reports plus a custom CSV parser
- Subscriber-only requests for additional analysis features, subject to scope and a separate quote
Best for: people who want to challenge a result across unseen periods, nearby values, time, costs and several strategies instead of relying on one optimum.
Upgrade when the next validation stage becomes necessary
- Free: confirm file compatibility and review KPIs, drawdown and Monte Carlo
- Pro: save results, deepen costs and distributions, compare versions and export
- Premium: standardize OOS, parameter, multi-strategy and recurring report workflows
Start with your own CSV/XLSX for free, then choose the plan that matches the work you need to keep repeating.
How your data is handled
- Transmission of analysis data
- CSV and XLSX analysis data is not transmitted to SG Group. Analysis follows a local-first design.
- Vault and storage location
- Pro and above can manage saved analyses and report templates in the encrypted Vault. When server Vault is used, data is stored in the customer’s own WordPress environment.
- User responsibility
- You are responsible for rights to the source file, removing confidential data, backups, passphrases and safe storage of local workspace and Vault files.
- What calculation verification means
- Cross-checking against independent reference implementations verifies calculation processing and output values; it does not validate the strategy or guarantee future profitability or live fills.
Data-safety checklist
- Remove names, account numbers, email addresses, order IDs and other personal or confidential fields that the analysis does not need.
- Keep the original file separately and import a cleaned copy. Export important work so browser-data removal, device failure or a lost passphrase does not leave you without a recoverable copy.
- Before using third-party or organizational data, confirm contracts, internal rules, confidentiality obligations and licenses.
- Attach period, currency, initial capital, costs, time zone, data version, missing-value treatment and analysis settings to shared reports.
“Not transmitted to SG Group” describes the standard CSV/XLSX analysis data. Stripe billing, contact forms and a server Vault in the customer’s own WordPress environment are separate functions with their own communications and terms.
Frequently asked questions
Can I use Monte Carlo and stress tests on the free plan?
Yes. Under the current plans, you can try Free without logging in. It includes CSV/XLSX import, key KPIs, equity and drawdown, Monte Carlo, risk of ruin, stress tests and the basic robustness and quality diagnostics, with unlimited analysis runs. Check the current plans page for the latest scope.
Which TradingView export should I use?
Strategy Tester’s List of Trades is the preferred source for trade-level analysis. Performance Summary is useful for reconciling aggregates but cannot recreate trade order or losing streaks. The download follows the active tab, so confirm the tab before export.
Are both CSV and XLSX supported?
Yes. The Lab supports CSV and XLSX, generic column mapping and multi-file import. When column names differ by language or environment, map each source column to the field with the same meaning. A clean, flat, one-trade-per-row sheet is easier to recognize than a heavily formatted workbook.
Can I analyze a chart-data CSV or Pine Script source?
A chart-data CSV is price history rather than a trade history, so by itself it is not suitable for trade-level KPIs and sequence diagnostics. The Lab is also not a Pine Script code auditor or execution service; it analyzes backtest results that you import.
Is my CSV or XLSX sent to SG Group?
Standard analysis data is not transmitted to SG Group and follows a local-first design. If you use server Vault, its storage location is your own WordPress environment. Remove unnecessary confidential columns and manage originals, backups and passphrases yourself.
Which markets and instruments are supported?
No fixed public market whitelist is stated. Compatibility depends on whether the necessary timestamps, direction, P&L, currency, units and related fields can be imported and mapped, rather than on the asset-class name alone. Align currency, initial capital, return frequency, period and costs before comparing different markets.
Do analysis results update in real time?
No. The Lab is not a real-time market-data service; it analyzes the period and assumptions in the imported file. Export, import and analyze a new file after changing the strategy, period, parameters, costs or source data.
Does a high robustness score mean the strategy will remain profitable?
No. The robustness score and diagnostics are rule-based reference values for the imported historical data and selected settings. They help point to data quality, sample size, losses, costs, sequence, OOS and neighboring parameters; they do not guarantee future profit, win rate or live results.
Is the Monte Carlo risk of ruin an actual probability of the future?
No. It is the share of modeled paths that reach a specified threshold under the chosen initial capital, risk amount, ruin definition, resampling method and source-trade distribution. It does not fully represent unknown future market structures or losses absent from the sample.
What is the decisive difference between Pro and Premium?
Pro extends Free into saving, practical diagnostics, cross-comparison, Excel export and the encrypted Vault. Premium adds walk-forward and OOS, parameter stability, regimes, multi-strategy portfolios, MFE/MAE, session analysis, the 2D Stress Grid, batch reporting and custom CSV workflows.
How are plan changes, cancellation and refunds handled?
Billing, subscription management and cancellation are handled through Stripe. A paid-plan change is treated as a new subscription to the destination plan and creates a new charge. There are no prorated refunds, offsets or credits for unused time. In general, features remain available until the end of the paid term after cancellation.
Is this an official TradingView product?
No. The Lab is independently provided by SG Group and is not provided, approved or sponsored by TradingView, Inc. TradingView is a trademark of TradingView, Inc. The Lab supports CSV/XLSX files exported from tools such as Strategy Tester.
Will the Lab tell me when to trade or which parameter is optimal?
No. The diagnostics descriptively aggregate and compare historical data; they do not recommend an instrument, direction, entry, exit, size or “optimal” parameter. The purpose is to let you inspect OOS, neighboring values, costs and regimes rather than trust the single best point.
Update history
- — Added the static guide and organized inputs, outputs, workflow, metric logic, the sample, plans, data handling, FAQs, related reading and the disclaimer.
- — Published or updated the ten English and ten Japanese articles in the Backtest Validation Series.
No dedicated public product changelog was confirmed at the time of review, so this section records changes to the static copy. The live tool and current plans page take precedence for features, prices, permissions and verification figures.
Disclaimer
TradingView Backtest & Robustness Lab is software for educational, informational and validation-support purposes. It mechanically, statistically and descriptively aggregates, diagnoses, compares and visualizes historical backtest results imported by the user. It does not provide investment advice, trade signals, solicitation, instrument, size or parameter recommendations, entries, exits, price forecasts, personalized portfolio advice, managed trading or guaranteed returns.
- Backtests are results under past data and assumptions. They do not indicate or guarantee future prices, win rates, returns, maximum loss, fills or live performance.
- Results change with data quality, period, instrument, timeframe, sizing, initial capital, currency, commissions, spread, slippage, taxes or financing, fill models, look-ahead, repainting and market regime.
- Monte Carlo, risk of ruin, VaR, CVaR, robustness and OOS scores, parameter stability, correlation and allocations are conditional reference values under the imported data, settings and model. They do not cover every unknown future event.
- You are responsible for source-file accuracy and rights, removal of personal or confidential data, backups, passphrases and safe management of saved files.
- TradingView is a trademark of TradingView, Inc. The Lab is independently provided by SG Group and is not provided, approved or sponsored by TradingView, Inc.
- Prices, plans, features, calculation specifications and output formats may change without notice. Confirm the current interface and plans page.
- Trading and investing can result in the loss of some or all capital, and leveraged products can produce losses beyond the amount deposited. Final decisions and all resulting profit, loss, costs and tax consequences remain the user’s responsibility.

