The TradingView Strategy Tester is one of the most powerful tools available to a systematic trader. It is also one of the most misread. Most people open it, look at the net profit number, and either continue or abandon the strategy based on that alone. That single number is one of the least informative in the panel, and using it in isolation reliably produces the wrong conclusion.
This guide walks through every metric the Strategy Tester reports, explains what each one actually measures, and identifies the specific ways each one can mislead you. By the end you should be able to look at a full Strategy Tester result and know exactly what it is and is not telling you about the strategy behind it.
The metrics at a glance
| Metric | What it measures | When it misleads |
|---|---|---|
| Net profit | Total P&L after all trades | Ignores drawdown; a 200% gain with a 90% drawdown is not tradeable |
| Win rate | % of trades that closed profitably | Meaningless without the average win/loss sizes |
| Profit factor | Gross profit ÷ gross loss | Inflated on small samples; needs 50+ trades to mean anything |
| Max drawdown | Largest peak-to-trough equity decline | Measured on closed trades only by default; intrabar can be worse |
| Sharpe ratio | Return per unit of total volatility | Penalises upside volatility the same as downside |
| Sortino ratio | Return per unit of downside volatility | More honest than Sharpe for skewed return distributions |
| Avg trade | Average P&L per closed trade | Only useful compared to per-trade risk (expectancy in R) |
| Payoff ratio | Average win ÷ average loss | Read alongside win rate; neither means anything alone |
Net profit: necessary but not sufficient
Net profit is the total return after all commissions and slippage across every trade in the test period. It is the first number everyone looks at and the one that most often misleads. A large net profit number says nothing about how you would have experienced that strategy in real time. A strategy that returned 300% but fell 80% from peak at some point in the middle is functionally untradeble for most people. They would have stopped out of it long before the recovery.
Net profit also scales with the test period. A strategy that returned 50% over six months and one that returned 50% over three years are not the same thing. Always read net profit alongside the time span of the test and the drawdown profile.
Win rate: the most watched, least informative number
Win rate is the percentage of trades that closed profitably. It is intuitive, easy to understand, and largely meaningless without the average win and average loss. A strategy that wins 80% of its trades but loses 10 times more on each loser than it makes on each winner has a negative expectancy and will slowly destroy your account. A strategy that wins 30% of its trades but makes 4R on each winner needs only to be right less than a third of the time to be profitable.
The correct mental model: win rate tells you the shape of the trade distribution. Payoff ratio tells you the magnitude. Expectancy combines both into the single number that predicts long-term results. None of the three means much without the other two. For a detailed treatment, see the guide on why win rate is a trap.
Profit factor: the quick viability check
Profit factor is gross profit divided by gross loss. A value above 1.0 means the strategy made more than it lost in aggregate. Below 1.0, it is a losing strategy by definition. Values between 1.0 and 1.5 are marginal. Values above 1.5 indicate a strategy worth examining further, assuming the sample is large enough to trust.
The main trap with profit factor is small sample size. On 15 trades, a profit factor of 2.5 could easily be random. On 200 trades across different market conditions, a profit factor of 1.6 is meaningful. A common minimum is 50 closed trades before any metric in the Tester deserves serious attention, and that number should be higher for strategies that trade infrequently. Use the profit factor calculator to compute it separately from gross figures.
Maximum drawdown: the number that determines whether you can actually trade it
Maximum drawdown is the largest peak-to-trough decline in the equity curve over the test period. This is the number that most directly answers the question of whether a strategy is psychologically tradeable. A 60% maximum drawdown means at some point during the test, your account balance fell by 60% from its previous high. Most traders will not stay in a strategy through a 60% drawdown regardless of what the eventual recovery looks like.
There is an important caveat to how TradingView reports this number. By default, the Strategy Tester calculates drawdown on closed trades only. Intrabar equity — the value of open positions during their life — is not included unless you enable calc_on_every_tick. A strategy with a reported 15% drawdown might have experienced 40% intrabar drawdowns on individual trades that simply recovered before close. The closed-trade drawdown is an optimistic figure.
The companion to drawdown is recovery. A 30% drawdown that took two weeks to recover from is very different from a 30% drawdown that took two years. The Tester does not report drawdown duration directly, but you can see it in the equity curve chart. Use the drawdown recovery calculator to see the gain required to recover from any given percentage decline.
Sharpe and Sortino: risk-adjusted return
The Sharpe ratio divides the return above the risk-free rate by the standard deviation of returns. It answers the question: how much return did you earn per unit of volatility? A higher Sharpe is better. A Sharpe above 1.0 is considered reasonable; above 2.0 is strong.
The specific limitation of Sharpe is that it penalises upside volatility the same way it penalises downside volatility. A strategy that occasionally makes very large gains will have high return volatility and therefore a lower Sharpe, even though large unexpected gains are not a problem. The Sortino ratio fixes this by using only downside deviation in the denominator. For strategies with asymmetric returns — lots of small losses and occasional large wins — Sortino is the more honest metric.
Both are visible in the TradingView Strategy Tester. You can compute them from your own figures using the Sharpe ratio calculator and the Sortino ratio calculator.
Average trade and payoff ratio: what the typical trade looks like
Average trade is simply net profit divided by number of trades. It tells you the expected dollar value of a single trade in this sample. The most useful way to read this figure is relative to the average losing trade: if the average trade is $40 and the average loss is $200, your expectancy in R is 0.2R per trade. That is positive but thin.
Payoff ratio is average win divided by average loss. This is one of the two numbers that compose expectancy (the other is win rate). A payoff ratio of 2.0 means your average win is twice your average loss. Whether that is good depends entirely on your win rate. At 2.0 payoff ratio, you break even at a 34% win rate. Above that, you are profitable. Below it, you are not. The trade expectancy calculator lets you plug in both numbers and see the resulting expected value per trade.
Sample size and the limits of every number here
Every metric in the Strategy Tester describes the sample of trades in the test period. That is all it can do. A strategy with stellar metrics on five years of data for one instrument may perform completely differently on a different instrument, a different time period, or in a different market regime. This is not a flaw in the Tester. It is the nature of historical testing.
The habit that protects against over-reading the results is to test across multiple instruments and time periods before drawing conclusions, to hold back a portion of data that you never look at during development, and to decide in advance what a passing result looks like rather than adjusting your definition after you see the numbers. The guide on why backtest results differ from live trading covers the additional gaps between Strategy Tester results and real-world performance.
Getting a strategy into the Tester
All of these metrics only appear once your trading rules are expressed as a Pine Script strategy. The step from "I have an indicator idea" to "I have numbers I can evaluate" is the step of writing the code. If you describe your entry and exit rules in plain English, PineScripter generates the Pine Script v6 strategy code built to compile on the first paste, so you can open the Strategy Tester and start reading real numbers rather than estimating them. The guide on how TradingView backtesting actually works covers the fill assumptions, intrabar behavior, and commission settings that determine whether those numbers accurately reflect a real trading scenario.
Disclaimer: PineScripter is a coding tool for Pine Script development. It does not provide financial advice and does not guarantee trading profits. Always backtest strategies thoroughly and understand the risks before live trading.