Profit factor is gross profit divided by gross loss. A result above 1.0 means the winning trades paid for the losing ones and left something over. A result below 1.0 means they did not. For a TradingView trader, it is one of the first numbers worth reading in the Strategy Tester, because it tells you whether a strategy’s trade list is even worth turning into live orders.
This guide shows the calculation, three worked examples, how to read the number next to win rate, and what can make a healthy profit factor on a chart shrink once real orders are filled.
Key Takeaways
- Profit factor = total winning trades ÷ absolute total losing trades. Above 1.0 is profitable on the data tested, below 1.0 is losing.
- It only counts closed trades, so open positions do not move it.
- Read it together with win rate and the average win to average loss ratio, because those two set the result.
- Fees, spread and slippage are not guaranteed to be in a backtest, so check your strategy’s cost settings before trusting a high figure.
- A strategy with a solid profit factor still has to reach the exchange on time: your alerts need a reliable path to live orders.
Table of Contents
- What profit factor measures
- How to calculate profit factor
- What a profit factor above or below 1 tells you
- Read it with win rate and the win/loss ratio
- Why a backtested profit factor can shrink in live trading
- Profit factor is not the whole picture
- A practical routine for TradingView strategies
- From a good profit factor to live orders
- Our perspective
- FAQ
- Sources
What profit factor measures
TradingView’s support documentation defines profit factor as the profit a strategy generates for every unit of loss it incurs. It is calculated from realized figures only, which means open positions are excluded. The same page states that a value greater than 1.0 indicates a profitable strategy and a value below 1.0 a losing one.
That makes it a compact summary of a strategy’s risk-to-reward profile. A profit factor of 1.5 means that for every $1 the strategy lost, it made $1.50 in winning trades. It does not say how much was made in total, how large the drawdowns were, or how many trades produced the result. It is a ratio, not a return.
How to calculate profit factor
The formula has two inputs, both taken from your closed trades:
- Gross profit: add up the profit of every winning trade.
- Gross loss: add up the losses of every losing trade and take the absolute value, so it is a positive number.
- Divide: gross profit ÷ gross loss.
Strateda’s backtest metrics reference uses the same definition: the sum of winning trade P&Ls divided by the absolute sum of losing trade P&Ls. It also notes that the value shows as infinite when there are no losing trades at all, and that profit factor is different from the average win/loss ratio, which compares averages instead of totals. Keep that difference in mind, because it matters in the next section.
Worked example
Say your strategy closed 40 trades.
- 18 winners totaling $3,600 gross profit
- 22 losers totaling $2,400 gross loss
Profit factor = 3,600 ÷ 2,400 = 1.5.
Notice that this strategy wins only 45% of the time (18 of 40). A profit factor above 1 does not require winning most trades. It requires the wins to be large enough relative to the losses.
What a profit factor above or below 1 tells you
The line at 1.0 is the break-even point before costs. Anything under it means the strategy lost money on the sample tested. Anything over it made money on that sample, and the further above, the more cushion there is between the strategy and break-even.
Traders often ask whether 1.3, 1.5 or 1.8 is “good”. There is no official cut-off, and the answer depends on the style of the strategy, the number of trades and the costs. What you can do is judge the number against the shape of the strategy that produced it.
Read it with win rate and the win/loss ratio
Profit factor is the product of two things: how often you win and how big the average win is compared with the average loss. Optuma’s knowledge base recommends reading win percentage together with the average win to average loss ratio for this reason. It describes a low win rate of 40% or less with a profit factor above 2.0 as typical of trend following, with long runs of small losses between large wins. A 50 to 60% win rate with a profit factor above 1.5 means more winners than losers, with larger winners.
Here is how three very different strategies land on similar profit factors, using 10 trades each:
| Strategy style | Win rate | Average win | Average loss | Gross profit | Gross loss | Profit factor |
|---|---|---|---|---|---|---|
| Trend following | 40% (4 wins) | $300 | $100 | $1,200 | $600 | 2.0 |
| Balanced | 60% (6 wins) | $150 | $100 | $900 | $400 | 2.25 |
| High win rate, large losers | 80% (8 wins) | $50 | $200 | $400 | $400 | 1.0 |
The last row is the trap. Eight winners out of ten feels comfortable, yet one pair of losing trades erases everything. Profit factor catches what win rate hides. The first row shows the opposite: six losses in ten trades, yet a profit factor of 2.0. If you are going to run that strategy live, you need to be ready for the long losing runs it contains, because they are part of the profile that produced the number.
Why a backtested profit factor can shrink in live trading
A profit factor is only as honest as the trades behind it. Three things commonly separate the chart from the account.
Costs: fees, spread and slippage
The CFA Institute’s research brief on model validation explains that implementation costs can erode performance: direct costs such as fees and commissions, and indirect costs such as bid-ask spreads and market impact. A model can be informative and still unprofitable in practice once those are paid.

This hits some strategies much harder than others. Take a scalping strategy with a profit factor of 1.15 across thousands of trades. Each trade earns a thin margin, so a small per-trade cost is a large share of it. A swing strategy with a profit factor of 1.15 and a few dozen trades has more room per trade. When you review a result, ask what commission and slippage settings the strategy used, and compare those to the fees on the exchange or broker where you plan to trade.
Our own article on Pine Script Strategy Tester limitations goes deeper on what the tester does and does not simulate.
Sample size
A profit factor from 12 trades is a small piece of evidence. The same CFA brief warns that a model whose gains come from a small number of scattered trades may be capitalizing on lucky trades rather than a systematic pattern. One outsized winner can lift gross profit enough to turn a poor strategy into an impressive-looking one.
A quick check: remove your single best trade and recalculate. If the profit factor falls below 1.0, the result depended on one event. Also look at whether the winners are spread across different months and market conditions.
Overfitting
If you tweak parameters until the profit factor looks excellent on historical data, you may have fitted the strategy to the past rather than found something repeatable. Our guides on how to test strategy robustness and effective validation of trading strategies cover ways to stress a result before relying on it.
Profit factor is not the whole picture
Profit factor ignores the order and timing of trades. Two strategies can share a profit factor of 1.8 while one suffers a drawdown twice as deep as the other. Pair it with:
- Maximum drawdown, the largest peak-to-trough decline in equity.
- Net profit and number of trades, to judge scale and sample size.
- Average win/loss ratio and win rate, to see where the ratio comes from.
- Risk-adjusted measures such as the Sharpe ratio. For background, see what risk-adjusted return means for investors.
Academic work on automated systems points the same way. A peer-reviewed study of ten automated trading systems across forex pairs, gold, oil and Bitcoin proposed a weighted evaluation metric combining profit, Sharpe ratio, maximum drawdown and expected payoff rather than relying on a single number.
For a broader walk-through of reviewing a strategy’s numbers, see how to evaluate trading results like a pro.
A practical routine for TradingView strategies
If you write Pine Script strategies or use someone else’s, this sequence keeps profit factor honest:
- Set realistic costs. Enter commission and slippage in the strategy properties that match the market you will trade.
- Check the trade count. Prefer a result built on many trades across different market phases.
- Read profit factor with win rate and average win/loss. Make sure you understand which one drives the result and whether you can live with the losing streaks that come with it.
- Remove the best trade. Recalculate and see if the strategy survives.
- Compare against drawdown. A profit factor you cannot stay in for is not usable.
- Test on the exchange’s demo account. Run the strategy’s alerts against a demo account before real funds, so you see how fills compare with the chart.
Position sizing, stops and risk rules belong in your TradingView strategy itself, so they shape the profit factor you see in step 3 and are carried into live trading as part of the strategy logic.
From a good profit factor to live orders
A profit factor describes a strategy on paper. To earn it in an account, every alert has to become an order on time, on the right exchange, every time. Late or missed fills change the entries and exits that the metric was calculated from, which is why execution is part of strategy performance, not an afterthought. Our guide on how orders move from signal to fill explains where that time goes.

Tickerly turns TradingView strategy alerts into live orders, with no coding and no VPS required for supported exchanges, and it executes within a fraction of a second of the alert. It connects to crypto, forex, stocks, futures and prop firm markets, including MetaTrader 4 and 5 through your own running MetaTrader terminal.
We offer a 30-day free trial, and plans start at $19 per month for Level 2, with Level 3 at $29 per month and Level 4 at $39 per month. Level 4 Ultra is also available for heavier use. You can compare them on the Tickerly plans page.
If you want the setup steps, read how to automate trading on TradingView using Tickerly.
Our perspective
We talk to traders who judge a strategy by a single headline number, and profit factor is the one we hear about most. It is a good number. It is also incomplete without the story behind it.
Our view is that a strategy deserves automation once you understand why its profit factor is what it is: how often it wins, how large the wins are, what the costs do to them, and how deep the losing runs go. When you know that, automating is a matter of making sure the strategy you designed runs exactly as designed, around the clock, without hesitation.
That is what Tickerly is built for. Your logic stays in your TradingView strategy, including sizing and stops. We take each alert and route it to your exchange within a fraction of a second, across as many strategies as your plan supports, without a VPS or code. Consistent execution is how a strategy you have studied stays close to the one you studied.
Nothing here promises any particular result. Profit factor measures the past, and markets change. But a trader who reads it carefully and executes it consistently is working from a much better position than one who guesses.
Jay
FAQ
What is a good profit factor for trading?
There is no official threshold, only the break-even line at 1.0 that TradingView documents. Many traders look for a margin comfortably above it, and what counts as comfortable depends on strategy type, trade count and costs. A trend-following strategy and a high win rate strategy produce very different profiles for the same number.
Is a profit factor of 1.3 or 1.5 good?
Both are above 1.0, so both were profitable on the sample tested. A 1.3 leaves less room for fees and slippage than a 1.5, so check the cost settings and the number of trades before judging. A 1.5 built on a few dozen trades can be less reliable than a 1.3 built on several hundred.
How do I calculate profit factor in TradingView?
The Strategy Tester reports it for you from closed trades. To check it by hand, add all winning trades, add all losing trades as a positive number, and divide the first total by the second. Open positions are excluded from the figure.
Can profit factor be too high?
A very high value on a small number of trades often reflects luck or overfitting rather than an edge. Test the result on more data and different market periods, and check whether one or two trades account for most of the profit.
Sources
- Profit factor, TradingView Support
- Backtest Metrics Reference, Strateda
- Interpreting Test Results, Optuma Knowledge Base
- Investment model validation, CFA Institute Research and Policy Center
- Automated trading systems’ evaluation, Investment Management and Financial Innovations, 2020
Recommended
- Why Trading Strategies Fail: What Traders Must Know
- The Role of Risk-Reward in Trading: A Practical Guide
- How to Evaluate Trading Results Like a Pro
- Why Optimize Trading Strategies: A Trader’s Guide
This article was produced with Al assistance and reviewed for accuracy. It is provided for general information only and is not professional or financial advice.

