OptionDesk

How Costs and Slippage Are Modelled on OptionDesk

Options backtest costs and slippage: brokerage, STT, exchange charges and GST per leg per side, plus slippage, and their toll in one hypothetical backtested run

Updated 2026-11-28 · 6 min read

On this page
  1. Why it matters more than it sounds
  2. What gets charged
  3. What it took from one backtested run
  4. The part that surprises people: friction is not subtraction
  5. Reading the Costs panel
  6. What mistakes do traders make?
  7. Next step

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. 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 order label is loose; the charge is applied per leg, per side. A two-leg round trip at ₹20 is ₹80, not ₹20.
  • None turns 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.

Common questions

What costs does the OptionDesk backtester charge?
Brokerage as you configure it, plus the full statutory stack applied per leg per fill: STT on the sell side, the exchange transaction charge, the SEBI turnover fee, the Investor Protection Fund levy, GST at 18% on the brokerage and exchange components, and stamp duty on the buy side. Each is applied at the rate in force on that fill's own date, so a 2023 trade is charged 2023 rates.
How much do costs and slippage actually take from a backtest?
On a measured NIFTY short strangle over 81 sessions at 1 lot, friction was about 32.3% of the frictionless result — ₹51,672 before friction became ₹34,994 after, with ₹9,277 in brokerage and statutory charges and ₹4,321 in slippage. Two legs, one round trip a day. A four-leg structure pays roughly twice that. These are hypothetical backtested figures from a historical simulation, do not represent actual trading, and are not indicative of future results. Every trade is sized at today's lot size.
Why is net P&L not simply gross minus fees minus slippage?
Because slippage changes the entry fill price, and the stop level is a percentage of that entry price. A different entry means a different stop, which means different bars trigger it. In one measured run the arithmetic 'gross minus both' gave ₹38,074 while the actual net was ₹34,994 — the difference is trades that stopped out in one version and not the other. Friction is not a deduction applied at the end; it changes which trades happen. These are hypothetical backtested figures from a historical simulation, do not represent actual trading, and are not indicative of future results. Every trade is sized at today's lot size.
Does turning brokerage off remove only the broker's commission?
No. Setting brokerage to 'None — gross P&L' turns off the entire statutory stack — STT, exchange charge, SEBI fee, IPF levy, GST and stamp duty — not just the commission. That is deliberate: it exists to show a clean gross figure, and the result is labelled as gross so it can never be mistaken for a net one.
How is slippage applied — once per trade or per leg?
Per leg and per side, always against you. A two-leg strangle pays it four times over a round trip; a four-leg iron condor pays it eight times. The default is 0.25% of the premium.
Why does the slippage setting have a 'min ½ tick' mode?
A flat percentage under-charges cheap options badly. At 0.25%, a ₹5 wing is charged ₹0.0125 of slippage — a quarter of one tick, which is not a fill anyone has received. The '% of premium, min ½ tick' mode floors the charge at half a real tick, which matters most on exactly the far-out wings that defined-risk structures are built from. The rupee figures here are illustrative arithmetic, not a backtested result. Every trade is sized at today's lot size.
Are the STT rates in the backtester current?
They are date-aware rather than current. STT on option selling was 0.0625% of premium before 2024-10-01, 0.1% from then, and 0.15% from 2026-04-01 — and the engine charges whichever applied on the fill's own date, so a backtest spanning a rate change is charged both.

Disclosures

  • Not investment advice. OptionDesk provides tools, analytics, backtesting and education for NSE F&O only. It is not a SEBI-registered Investment Adviser or Research Analyst, and does not provide investment advice, buy/sell calls, tips or trade execution. You place every order yourself, through your own broker.
  • Projected, not promised. Every projected figure — payoffs, max profit/loss, probability of profit, target-date P&L and similar estimates — is “projected, not advice.” Backtested and simulated results are hypothetical, do not represent actual trading, and are not indicative of future results.
  • Delayed market data. Market data shown on OptionDesk is delayed by approximately one minute — it is not a live feed. It is provided for analysis and education only, and must not be relied on for time-sensitive execution.
  • F&O risk. Trading in futures & options carries a high risk of loss and is not suitable for every investor. Consider your objectives and risk tolerance, and seek independent advice where appropriate.

More in How the engine works