Friction is where a backtest and a live account part company. This page documents exactly what the engine charges, and shows what it took out of one backtested run.
Every rupee figure on this page is hypothetical. It comes from backtested runs on historical NSE data — projected, not advice, and not indicative of future results. Every trade is sized at today's lot size.
The Costs panel: slippage mode and value, brokerage mode and value. 'None' turns off the whole statutory stack, not just commission.
Why it matters more than it sounds
Costs feel like a rounding error until you count them. They are not charged once — they are charged per leg, per side, on every fill.
Think of a toll booth on every leg of a journey, in both directions. One leg out and back is two tolls. A four-leg iron condor, entered and exited, is eight. Re-entry adds more. None of it is large individually, and together it is routinely a third of the result.
What gets charged
Slippage is applied first, to the price itself: added when buying, subtracted when selling, on entry and again on exit. It models the spread you cross to get filled.
Charges are then applied on the turnover of each fill:
| Component | Applied to | Rate |
|---|---|---|
| Brokerage | Your setting | ₹20 per leg per side by default, or % of turnover, or none |
| STT | Sell side only | 0.0625% → 0.1% from 2024-10-01 → 0.15% from 2026-04-01 |
| Exchange transaction charge | Both sides | 0.0495% → 0.03503% (2024-10-01) → 0.03553% (2026-03-01) |
| SEBI turnover fee | Both sides | ₹10 per crore |
| Investor Protection Fund levy | Both sides | ₹50 per crore |
| GST | Brokerage + exchange + SEBI + IPF | 18% |
| Stamp duty | Buy side only | 0.003% |
Every rate is applied as it stood on that fill's own date, so a backtest spanning October 2024 is charged the old STT before and the new STT after. A run that quietly used today's rates for 2021 trades would be rewriting history in whichever direction happened to be convenient.
One thing deliberately not modelled: STT on exercised options. The engine never carries a position into settlement, so that charge could never arise.
What it took from one backtested run
NIFTY short strangle (ATM±2), 1 lot, 81 sessions, 2025-01-01 to 2025-04-30, entry 09:20 exit 15:15 IST, 30% position stop. Four runs of the identical strategy, varying only friction. Projected, not advice.
Lot size: every trade is sized at today's lot size, whatever its date. Premiums are per unit, so rupee figures are comparable across a window that crosses a lot-size change.
| Run | Net P&L | Brokerage + statutory | Slippage |
|---|---|---|---|
| Costs on (₹20/order, slippage 0.25%) | +₹34,994 | ₹9,277 | ₹4,321 |
| Fees off, slippage on | +₹44,271 | ₹0 | ₹4,321 |
| Fees on, slippage off | +₹42,392 | ₹9,280 | ₹0 |
| Frictionless | +₹51,672 | ₹0 | ₹0 |
Friction took ₹16,678 of a ₹51,672 result — about 32.3%. Two legs, one round trip a session, eighty-one sessions.
That is the number to carry into any comparison with a tool that reports gross. A strategy showing ₹51,672 elsewhere and ₹34,994 here is not a worse strategy; it is the same strategy with the toll booths counted.
The part that surprises people: friction is not subtraction
Look at the table again. Frictionless ₹51,672, minus ₹4,321 slippage, minus ₹9,277 fees, gives ₹38,074. The measured net is ₹34,994. The arithmetic is wrong by ₹3,080, and that is not a rounding error.
Here is why. Slippage changes the entry fill price. The stop is a percentage of that entry price. A worse entry means a differently-placed stop, which means different minutes trigger it — in this run, 36 trades stopped out with slippage on and 35 with it off.
The common misconception. Traders assume they can run a backtest gross and mentally deduct costs afterwards. You cannot. Friction changes which trades happen, not just what they are worth. The only way to know a strategy's net result is to run it net.
Reading the Costs panel
Slippage takes % of premium (the default, 0.25%), % of premium, min ½ tick, or ₹ per leg (points).
The tick-floored mode exists for a specific failure. A flat 0.25% of a ₹5 wing is ₹0.0125 — a quarter of one tick, a fill nobody has ever received. If you are testing defined-risk structures whose wings are cheap, the plain percentage mode is flattering you exactly where it hurts.
Costs takes ₹ per order, % of turnover, or None — gross P&L. Two things to know:
- The
₹ per orderlabel is loose; the charge is applied per leg, per side. A two-leg round trip at ₹20 is ₹80, not ₹20. Noneturns off everything statutory too — STT, exchange, SEBI, IPF, GST, stamp. It is a gross-P&L switch, not a zero-brokerage broker. Any run using it is labelled gross, in the headline, in the biggest type on the screen.
There is one guard worth knowing about: if your position stop is smaller in rupees than the slippage the engine just charged on entry, that stop is disabled for the trade and reported. A stop tighter than your own cost assumption is not a rule — it is arithmetic that fires the moment you enter.
What mistakes do traders make?
Testing gross "to see the strategy cleanly". What that shows is the strategy in a market with no spread and no tax. Every real fill crosses one and pays the other.
Comparing a net result here against a gross result elsewhere. Check what the other tool charged before concluding anything about the strategy.
Setting slippage as a flat percentage while testing wings. Use the tick-floored mode when any leg is cheap, or the far legs of your condor will fill at prices that do not exist.
Forgetting that re-entry multiplies friction. Every re-entry is another entry and another exit. In a measured run, enabling one re-entry per leg took brokerage and statutory charges from ₹9,287 to ₹14,830 and slippage from ₹4,343 to ₹6,784.
Reading "costs off" as "low-brokerage broker". It is gross. There is no broker in India who does not collect STT on your behalf.
Next step
Open /backtest, run your strategy once with the cost model on and once with None — gross P&L, and read the gap. Then read how fills work for the price each of those charges is applied to.