TradingView Strategy Tester Explained
Every number in the Strategy Tester panel decoded. What each metric means, where the built-in view stops, and how to push the analysis further with the same CSV export.
What the Strategy Tester Panel Is Telling You
When you press "Add to Chart" on a Pine Script strategy in TradingView and run the backtest, the Strategy Tester panel at the bottom of the screen shows you a compact dashboard of performance numbers. Four main sections shape your first impression: the Summary tab with overall results, the Performance Report with breakdowns, the List of Trades, and the Properties that show strategy parameters.
The dashboard is a useful starting point. But each number has blind spots that can mislead you if you take it at face value. I have spent hundreds of hours staring at those panels, exporting CSVs, and recalculating things by hand in spreadsheets before I built a tool to do it properly.
Net Profit
Net profit is the most obvious number. It is gross profit minus gross loss. A positive net profit means the strategy made money over the backtest period. A negative one means it lost money.
The problem is net profit alone tells you nothing about risk, consistency, or whether the profit came from a few lucky trades. I have seen strategies that pulled in 40,000 net profit over five years but 32,000 of it came from a single trade. Remove that one trade and the strategy is a loser. Net profit cannot surface that.
Net profit is also sensitive to starting capital and position size. A strategy that makes 10,000 on a 100,000 account is a 10 percent return. The same 10,000 on a 1,000,000 account is 1 percent. The strategy tester shows net profit as a raw number with no context of percentage return or annualized return.
Profit Factor
Profit factor is gross profit divided by gross loss. A profit factor of 2.0 means you made 2 for every 1 you lost. Most traders consider 1.5 or higher acceptable. Below 1.0 means the strategy loses overall.
Profit factor is more useful than net profit because it is a ratio. It normalizes for scale. But it has its own blind spot: it ignores how those wins and losses are distributed. A strategy with a profit factor of 2.5 can still hit a 20 percent drawdown if the losses cluster together. I tested a mean reversion strategy on EURUSD that showed a 2.1 profit factor across 400 trades. The equity curve had three separate 15 percent drawdowns because the losses came in streaks. Profit factor never flags that.
Check your profit factor both overall and filtered by long and short trades. Some strategies profit on one side and lose on the other. The aggregate profit factor hides that asymmetry.
Max Drawdown
Max drawdown measures the largest peak-to-trough decline in your equity curve. If your account goes from 100,000 to 80,000 before recovering, your max drawdown is 20 percent. This is the single most important risk metric in the Strategy Tester panel.
TradingView shows max drawdown as a dollar amount and as a percentage. What it does not show is drawdown duration, drawdown depth distribution, or which trades caused the drawdowns. A strategy that recovered from a 25 percent drawdown in two weeks is different from one that took six months, but the panel treats them the same.
I ran a trend-following strategy on Nasdaq futures that had a 22 percent max drawdown. The panel showed it as a single number. When I pulled the CSV into Pineify, the Monte Carlo simulation showed that at the 95th percentile of random trade sequences the drawdown hit 38 percent. That changed whether I was willing to trade it.
Win Rate
Win rate is the percentage of trades that closed in profit. Many traders chase high win rates. That is often a mistake. A strategy with 80 percent win rate can lose money if average loss exceeds average win by a large enough margin. And a strategy with 35 percent win rate can be highly profitable if the wins are 3 times larger than the losses.
The Strategy Tester panel shows win rate prominently. It does not show the average win to average loss ratio alongside it, which is what you actually need to understand the risk-reward profile. The combination of win rate and profit factor tells a more complete story. A 70 percent win rate with a 0.9 profit factor is a red flag that your winners are too small relative to your losers.
In one of my own strategies on ES futures, I had a 64 percent win rate that looked solid. When checked against Pineify's returns distribution, the skewness was negative at -0.8. That told me the losses were not just larger on average, they were extreme. The win rate had been hiding a fat left tail.
Average Trade and Average Bar in Trade
Average trade is net profit divided by total trades. It gives you a per-trade expectation. If your average trade is 50 and you take 500 trades per year, you expect 25,000 on average. This number is useful for position sizing.
Average bar in trade tells you how long the typical trade lasts. A 4-hour strategy that averages 6 bars in trade (6 hours on a 1H chart) is a different beast from one that averages 40 bars. The first demands constant screen time or an automated execution setup. The second can tolerate wider stops and slower exits.
The panel shows these as raw averages. It does not show the distribution. When I checked my own data, the average trade was 120 but the median was 40. A handful of large winners pulled the average up. The panel only showed the average, which gave a false impression of consistency. Pineify's returns distribution histogram would have made that obvious in seconds.
Profit and Loss Curves
The Strategy Tester draws an equity curve and a P&L bar chart in the Performance Report section. The equity curve is cumulative profit. The P&L bars show individual trade outcomes. These visuals are your first line of defense against over-optimized strategies.
Look for a smooth upward slope with moderate drawdowns. A curve that looks like a staircase going up is the ideal. A curve with sharp drops and slow recoveries signals a strategy that bleeds during bad regimes.
What the panel does not do is show you confidence intervals around that equity curve. A strategy with 500 trades might look stable in the single equity line drawn. But the Monte Carlo simulation in Pineify would show 1000 randomized versions of that same trade list. I once did this on a breakout strategy and found that at the 5th percentile the equity curve was in negative territory after 400 simulated runs. The single line in TradingView had looked just fine.
What the Strategy Tester Panel Does Not Show
The Strategy Tester panel is a basic dashboard. It was designed for quick checks, not deep analysis. Here is what it leaves out.
- Risk-adjusted returns. No Sharpe ratio, no Sortino ratio, no Calmar ratio. You get raw profit and loss but no way to compare how much risk was taken to generate that return.
- Rolling or time-segmented analysis. The panel shows the entire period as one lump. You cannot see whether the strategy worked in 2023 but failed in 2024.
- Statistical distribution of returns. No skewness, no kurtosis, no VaR or CVaR. The panel has no way to surface tail risk.
- Monte Carlo simulation. The single equity curve in TradingView is your only scenario. There is no stress testing, no range of outcomes, no confidence interval.
- Trade efficiency metrics. MFE and MAE analysis requires exporting the CSV and doing the math yourself or using a tool that does it.
- Excel export with structured sheets. TradingView exports a raw CSV. Building a formatted Excel workbook with KPIs, heatmaps, and distribution data takes manual work.
The panel also has no way to filter by long versus short trades, no per-month or per-week or per-day heatmaps, and no time-of-day analysis. If you want to know whether your strategy performs best in the morning or after lunch, you need to export and analyze elsewhere.
The List of Trades Export
The List of Trades tab inside the Strategy Tester panel contains every individual trade from the backtest. TradingView lets you export this as a CSV file through the download icon at the top right of the panel. This CSV is the raw data that powers deeper analysis.
Each row in the CSV includes the entry time, exit time, entry price, exit price, quantity, commission, and net profit. With this data you can reconstruct everything. You can calculate risk-adjusted metrics, run simulations, build rolling statistics, and generate visualizations that the Strategy Tester panel was never designed to provide.
The CSV is your unlock key. The Strategy Tester panel is the front door. Exporting the CSV is like walking through the back into the full workshop.
What Pineify Adds With the Same CSV
When you take that same TradingView CSV export and drop it into Pineify backtest report, you get a completely different view of the same strategy.
- Sharpe ratio, Sortino ratio, Calmar ratio, and SQN. The risk adjustment that the panel skips. When I uploaded a strategy I had been trading live for six months, the Sharpe ratio came back at 0.7, not the 1.3 I had assumed from looking at the equity curve in the panel.
- Value at Risk and CVaR. If you want to know what your worst 5 percent of outcomes look like, VaR tells you. CVaR tells you the average severity within that worst 5 percent. The panel cannot tell you either.
- Monte Carlo simulation with 1000 bootstrap runs. Instead of one equity curve, you see a fan of 1000 possibilities. The 95th percentile worst drawdown is often much larger than the single max drawdown shown in the panel.
- Rolling window analysis. Sharpe, Sortino, and win rate plotted over a sliding 20-trade window. You can see when the strategy started degrading, often weeks or months before the equity curve turned down. This flagged a regime change in my SPY strategy three months before the drawdown hit.
- Returns distribution with a normal curve overlay. The histogram tells you immediately whether your returns are normally distributed or have fat tails and skewness. My own strategies almost always showed negative skew when I stopped guessing and started looking.
- MFE and MAE scatter plot. Maximum Favorable Excursion versus Maximum Adverse Excursion shows you exactly how much profit you left on each trade. You can use that data to set better take-profit and stop-loss levels. The MFE/MAE analysis tool in Pineify makes this interactive.
- Recovery factor and Ulcer Index. Two metrics that measure how efficiently the strategy recovers from drawdowns and how deep those drawdowns really are. The recovery factor calculator and Ulcer Index calculator pages walk through the math.
- 8-sheet Excel export with KPI overview, full trade list, heatmaps, rolling stats, and Monte Carlo data.
Everything runs in the browser. The CSV never touches a server. No account needed for the basic report.
When the Numbers Lie: Common Traps
The Strategy Tester panel shows you what happened. It does not show you whether the results are meaningful. Three traps catch most traders.
Low trade count. Below 30 trades the win rate and profit factor jump wildly from one test to another. The Monte Carlo simulation in Pineify will show you wide confidence intervals that make the uncertainty visible. Below 100 trades, I treat every metric as a directional hint, not a reliable statistic.
Data snooping. If you ran 100 optimization passes and picked the best one, the panel metrics are all biased upward. The profit factor, win rate, and max drawdown you see come from the luckiest parameter combination, not the most reliable one. Walk-forward analysis or Monte Carlo on out-of-sample data is the only way to check.
Survivorship bias and look-ahead bias.TradingView bar replay avoids look-ahead bias if you run it correctly. But standard backtests can accidentally include future data in signal calculations. Always cross-check your strategy on bar replay mode to confirm it did not peek into the future.
A Worked Example
I ran a simple SMA crossover on ETHUSD daily from January 2023 to June 2024. The Strategy Tester panel showed the following:
- Net profit: 14,230 (starting capital 100,000)
- Profit factor: 1.65
- Max drawdown: 12.4 percent
- Win rate: 58 percent
- Total trades: 87
These numbers look okay. A reasonable trader might consider funding this strategy. But the panel cannot show the next layer.
I exported the CSV and dropped it into Pineify. The Sharpe ratio came back at 0.52. That is below the 1.0 threshold most institutional traders consider the minimum. The Sortino ratio was 0.61, which means the strategy was not being penalized enough for the modest drawdown. The real story was in the Monte Carlo simulation: at 95 percent confidence, the worst drawdown hit 31 percent, almost triple the panel's 12.4 percent. The reason was trade sequence clustering, something no single number in the Strategy Tester panel can capture.
The returns distribution showed a kurtosis of 5.2, well above the normal distribution's 3.0. That confirmed the fat tails I suspected. The 87 trades (below 100) meant the confidence intervals were wide enough to question the entire backtest.
The panel said "tradeable." The deeper analysis said "caution." I did not trade it live.
From Panel to Full Picture
The TradingView Strategy Tester panel is a great place to start. It gives you the ground truth of how a strategy performed: net profit, profit factor, max drawdown, win rate. These four numbers are the foundation. But they are only four numbers.
The CSV export from the List of Trades tab contains the full trade-by-trade data. With that CSV you can calculate everything the panel leaves out. You can measure risk-adjusted returns through ratios like Sharpe, Sortino, and Calmar. You can stress test with Monte Carlo simulation. You can track decay with rolling window analysis. You can visualize trade efficiency through MFE and MAE. You can see your returns distribution and know whether fat tails are hiding in your strategy.
The panel answers "did it make money?" The CSV answers "why, and should I trust it?"
Pineify makes that second question easy. Free, no signup, all client-side. Drop the same CSV you already export from TradingView and get the full picture in seconds. Visit the backtest report page to try it. And if you want to refine the strategy itself after the analysis, the strategy optimizer helps tune entries and exits based on what the analysis reveals.
FAQ
Go Deeper With Your TradingView Backtest Data
Drop the same CSV you already export. Get Sharpe, Sortino, Monte Carlo simulation, MFE/MAE analysis, and 16+ KPIs. All in your browser, no data leaves your device.
Analyze Your Backtest Now