Why a Backtest Profit Factor Can Mislead: A Beginner’s Guide for Indian Traders

Blog by Aliceblue News Desk

06 November 2026

9 minutes

Alice Blue - Growth Inevitable

You backtest a strategy on Nifty 50 stocks and the profit factor comes out at 2.0. It looks like you earn ₹2 for every ₹1 you lose. You go live, and a few months later the account has barely moved.

That gap is common. A backtest profit factor can mislead because it often leaves out costs, depends on a few lucky trades, comes from too few trades, or reflects rules that were tuned to old prices. Here’s how to check each of these before real money is involved.

Table of Contents

Quick Answer

Profit factor is the total profit from winning trades divided by the total loss from losing trades. A backtest can overstate it when brokerage, STT and slippage are missing, when a few big wins carry the result, when there are too few trades, or when the rules were tuned to past prices. Check the figure after costs and across at least 50 trades.

What Is a Backtest Profit Factor?

Profit factor compares what your winning trades made with what your losing trades lost. A backtest means running your trading rules on past price data to see how they would have done.

Above 1 means your winners beat your losers on paper. At 1 you broke even. Below 1, the strategy lost money.

People like it because one number can stand in for hundreds of trades. What it can’t tell you is how many trades there were, how bad the worst fall got, or whether charges were counted.

How Does a Backtest Profit Factor Work?

The calculation takes four steps.

  1. Run your rules on historical data and list every trade.
  2. Add up the profit from all winning trades. That’s your gross profit.
  3. Add up the loss from all losing trades and drop the minus sign. That’s your gross loss.
  4. Divide gross profit by gross loss.

Profit Factor = Gross Profit ÷ Gross Loss

Alice Blue’s guide to backtesting a trading strategy shows a test of 100 trades with ₹6,00,000 of gross profit and ₹3,50,000 of gross loss. Divide one by the other and you get 1.71.

One odd case: if a test has no losing trades, you’d be dividing by zero. Software may show infinity or leave it blank. Treat that as a sign the test is too short.

Practical Example With Numbers

These numbers are made up to show the idea. Say a swing strategy took 100 trades on liquid Nifty 50 stocks, about ₹1 lakh in each trade. The first test ignored all costs.

Item

Backtest without costs

Winning trades

45

Gross profit

₹1,35,000

Losing trades

55

Gross loss

₹67,500

Profit factor

2.0

Net profit

₹67,500

Now add real costs. On a ₹1 lakh delivery trade, buying and selling costs about ₹293 in charges with a broker that takes ₹20 per order, at October 2026 rates. Add ₹200 for slippage, which is the gap between the price you expected and the price you got. Round it to ₹500 per trade.

Every winner now earns ₹500 less, so gross profit drops by ₹22,500 to ₹1,12,500. Every loser costs ₹500 more, so gross loss rises by ₹27,500 to ₹95,000. The new profit factor is ₹1,12,500 divided by ₹95,000, which is 1.18.

So 2.0 became 1.18, and net profit fell from ₹67,500 to ₹17,500. Slightly worse fills live could push it under 1. You can check your own charges on the Alice Blue brokerage calculator.

Now a second case. A test has 20 trades, ₹1,50,000 gross profit and ₹60,000 gross loss, so the profit factor is 2.5. But one trade, a stock that gapped up at the open, made ₹90,000 on its own. Take it out and you’re left with ₹60,000 divided by ₹60,000, which is 1.0. That strategy had one lucky trade, not an edge.

What Is a Good Profit Factor?

Education sites don’t agree on one number. Some call 1.5 or higher good, and others set the bar above 1.75. One source says 1.0 to 1.2 is breakeven territory where costs can wipe out the gain, and that anything above 3.0 should send you back to check the data.

Here’s a simple way to read it:

  • Under 1.0 after costs: the strategy lost money.
  • 1.0 to 1.2: too thin. Slippage alone can erase it.
  • 1.2 to 2.0: worth a closer look if it holds after costs.
  • Above 3.0: look for a small sample, one huge trade or overfitting.

Trade count matters as much as the ratio. Alice Blue’s backtesting guide treats fewer than 30 to 50 trades as a red flag. Another guide says results start to feel reliable around 50 trades and strong at 100 or more. A 1.4 from 200 trades tells you more than a 3.0 from 15.

Key Features of Profit Factor

  • It gives one number for a whole list of trades.
  • It doesn’t show how many trades produced it.
  • One big trade can lift it sharply.
  • It shifts a lot once costs are included.
  • It says nothing about how deep your worst fall was.

Advantages of Profit Factor

  1. It earns its place when you use it carefully.
  2. If the net figure is under 1, you can drop the idea quickly and move on. It also counts the size of wins and losses, which win rate ignores. A 70% win rate means little when each loss is three times a win.
  3. You can track it over time too, comparing your backtest figure with your live figure each month. And when you change a rule, say a tighter stop loss, it shows whether the net figure improves on fresh data.

Why Can a Backtest Profit Factor Mislead You?

Charges often go missing. In India you pay brokerage, Securities Transaction Tax (STT), exchange charges, SEBI fees, stamp duty and GST. STT on equity delivery is 0.1% on both buy and sell. From 1 April 2026, it’s 0.05% on futures sales and 0.15% of the premium on options sold. A SEBI study of FY23 intraday traders found that loss making traders spent an extra 57% of their losses on costs, while profitable traders gave up 19% of their profits.

Slippage never appears on a contract note, only as a smaller return. Thin stocks and far strike options suffer most.

Then there’s overfitting, which means adjusting your rules until they fit past prices perfectly. The rules end up describing noise instead of a pattern that repeats. 

The data itself can also flatter you. Lookahead bias is when the test uses information that wasn’t available at the time of the trade. Survivorship bias is when it only includes companies still listed today. A test that runs only through a rising market has the same problem.

Profit factor also hides your average win and loss. Two strategies can both show 1.5, yet one wins small and often while the other wins big and rarely.

Finally, there’s your own behaviour. A high number can make a strategy feel safe, so people raise quantity too early, skip paper trading, or ignore a losing streak because the backtest said it works. Paper trading means practising with virtual money.

Tips for Beginners

  • Use the net profit factor, after every charge.
  • Aim for at least 50 trades, and 100 or more if possible.
  • Remove the top two winners and recalculate.
  • Keep the rules few and simple. Every extra setting is another chance to overfit.
  • Set some data aside and test your final rules on it just once.
  • Paper trade first, then go live with a small quantity and compare real fills with the backtest.
  • Read profit factor next to drawdown.
  • Include trade quantity in the test. That’s your position sizing, meaning how many shares you buy each time.

Profit Factor vs Other Backtest Metrics

Metric

What it shows

What it misses

Read it with

Profit factor

Gross profit relative to gross loss

Trade count, timing, costs if left out

Drawdown and trade count

Win rate

How often trades win

Size of wins and losses

Average win and loss

Maximum drawdown

Biggest fall from a peak

Overall profit

Profit factor

Average trade return

Typical profit per trade

Spread and outliers

Trade count

Picture two strategies that both show 1.6. One fell 10% at its worst and the other fell 35%. The ratio alone won’t tell you which one you could actually stick with.

Common Mistakes to Avoid

  • Trusting the gross number. Costs can erase the edge, so recalculate after charges.
  • Chasing a high ratio on a handful of trades. Wait for a bigger sample.
  • Retuning until it looks perfect. Fix the rules first, then test once on fresh data.
  • Ignoring drawdown. Ask yourself if you could sit through the worst fall.
  • Testing liquid stocks, then trading thin ones. Your fills will be worse than the test assumed.
  • Treating the backtest as a promise. Past results don’t guarantee future returns.

Who Should Use Profit Factor?

It suits swing traders, intraday traders and beginners who build rule based strategies. To test ideas without coding, try the DIY strategy builder.

It’s a weaker fit for long term investors, who trade rarely and care more about business quality than a trade by trade ratio. Scalpers should be careful too, since charges eat a big share of small gains. When you’re ready to compare real fills with your backtest, you can open an account with Alice Blue.

Conclusion

Profit factor is a good first filter, but it only describes a simulation. Missing costs, slippage, a few lucky trades, short tests and over tuned rules can all push it above reality. Before you trust a figure, recalculate it after charges, check how many trades sit behind it, remove the best two and test on fresh data. Then trade small and compare live results with the backtest. Start by recalculating your last backtest after costs.

Frequently Asked Questions

Edit Content

There’s no single cutoff. Many sources treat 1.5 or higher as good, but only after costs and across enough trades. Anything above 3.0 deserves a closer look at the data.

Edit Content

Mostly because of charges, slippage and fills the test couldn’t see. Live orders can fill late or only partly, which a backtest rarely shows.

Edit Content

Only if your backtest does. Many tools show gross results by default, so switch on the cost settings.

Edit Content

No. It can come from a few big trades or a small sample. Remove the largest winners and see whether it still holds.

Edit Content

At least 50, and 100 or more is better. Cover rising, falling and sideways markets too.

avatar

Blog by Aliceblue News Desk

The Alice Blue Research Team is a passionate group of analysts delivering expert market insights, comprehensive coverage of stocks, economy, commodities, and personal finance through clear, actionable research.

Take your first step into the market with ₹0 opening charges

Open Free Demat Account
Alice Blue mobile app with 1lyAlgos