OptionDesk

How Stops and Targets Work on OptionDesk

The two kinds of stop the engine runs — one on the whole position, one on each leg — which rules they unlock, and a hypothetical backtested comparison of both.

Updated 2026-11-28 · 7 min read

On this page
  1. Two stops, two questions
  2. Why this distinction decides whether features work
  3. What a position stop costs, measured
  4. What a per-leg stop costs, measured
  5. The details that decide close calls
  6. Exit all legs when one fires
  7. What mistakes do traders make?
  8. Next step

The engine runs two different kinds of stop, and choosing the wrong one is the most common reason an advanced feature appears to do nothing. This page explains both, and shows what each costs.

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.

Position risk: one stop and one target on the whole structure. Each leg row carries its own SL% and TP% separately. Position risk: one stop and one target on the whole structure. Each leg row carries its own SL% and TP% separately.

Two stops, two questions

A position stop asks: how much is this whole trade allowed to lose? Set it and the engine watches the combined P&L of every leg. When the structure as a whole is down by your limit, everything closes.

A per-leg stop asks: how far is this one option allowed to run against me? It is an SL% on that leg's own premium. A short call entered at ₹100 (an illustrative price) with SL% 30 closes if its premium reaches ₹130 — regardless of what the put is doing.

The analogy: a position stop is the fuse box for the whole house. A per-leg stop is a fuse on each appliance. Trip the house fuse and everything goes dark. Trip the toaster's and the fridge keeps running — which is fine, unless the fridge was the dangerous one.

Why this distinction decides whether features work

Here is the trap, and it is worth stating bluntly because it is measurable.

Re-entry, the stepped trail, and move-SL-to-cost all trigger off a LEG stop. A position stop ends the trade — there is no surviving leg to tighten, and nothing to put back on. So a run configured with a position stop and re-entry enabled produces zero re-entries, silently.

We measured exactly this. The same NIFTY short strangle with a 30% position stop, re-entry set to one per leg: identical result, re-entry count zero. The same structure with the 30% expressed per leg: 98 re-entries fired.

The common misconception. "I set a 30% stop loss" is ambiguous, and the two readings produce different strategies. 30% of what — the position's combined P&L, or each leg's own premium? The screen has both boxes because they are genuinely different rules.

What a position stop costs, measured

NIFTY short strangle (ATM±2), 1 lot, 81 sessions, 2025-01-01 to 2025-04-30, entry 09:20 exit 15:15 IST, costs on. 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.

No stop 30% position stop
Net P&L +₹46,693 +₹34,994
Win rate 69.1% 51.9%
Max drawdown -₹27,407 -₹24,542
Profit factor 1.42 1.36
Worst intraday MTM -₹25,365 -₹7,475

Both profitable, and neither simply better. The stop cost ₹11,699 of profit and bought ₹2,865 less drawdown, and took the worst intraday loss from −₹25,365 to −₹7,475. It also cut the win rate by seventeen points, because a stop converts trades that would have recovered by 15:15 into realised losses.

Which side of that you want depends on capital, temperament and what else is in the book — none of which a backtest knows.

What a per-leg stop costs, measured

Same structure and window, with the 30% expressed per leg instead:

No stop 30% per-leg stop
Net P&L +₹46,693 +₹23,243
Win rate 69.1% 59.3%
Max drawdown -₹27,407 -₹18,544
Worst intraday MTM -₹25,365 -₹8,328

Note the leg stop was more expensive here than the position stop — ₹23,243 against ₹34,994 — on the same nominal 30%. A leg stop fires on one option's move regardless of whether the other leg was covering it, so a strangle whose call spikes gets its call cut even on a day the put was paying for it comfortably.

That is not an argument against leg stops. It is an argument for knowing which one you enabled.

The details that decide close calls

The position stop gets first refusal, every bar. It is checked before any leg rule. Running the leg rules first would let a deep leg close itself and let the position sail through its own stop while still being labelled as having stopped there.

Stop before target, within a bar. If one minute touched both of a leg's levels, the engine books the stop. The candle does not record the order, and assuming the good one came first would inflate results on exactly the violent minutes where the gap is biggest.

Gaps are honoured. A stop fills at its level only if the market was there to fill you. If the minute opened past your stop, you get the open — worse than you asked for.

Position stops fill exactly at the stop amount. When the stop is reached mid-bar, each live leg's exit price is scaled so the legs sum precisely to the stop level, rather than each leg being marked independently to something that would not add up.

Exit all legs when one fires

The Exit all legs when one leg's SL or TP fires toggle converts a leg stop into a whole-structure exit. It answers the naked-leg problem directly: a strangle that has lost its call is a naked put, and this closes the put rather than leaving it out there.

Two consequences to know before enabling it:

  • It disables re-entry. Ending the trade leaves nothing to put back on, and the screen greys the re-entry controls with that reason rather than accepting a setting that could never fire.
  • It converts one leg's bad minute into the whole structure's exit, including the leg that was winning.

What mistakes do traders make?

Enabling re-entry or trailing on a position-stop run. They will never fire. Check the exit mix: if every exit reads STOP or TIME and none read BY LEG, no leg rule ran.

Assuming a leg stop is gentler than a position stop because it only closes one leg. Measured above, it was the more expensive of the two on the same number.

Setting a stop tighter than your own slippage. The engine disables it and reports it, because a stop inside your assumed spread fires on entry.

Reading the drawdown improvement without the P&L beside it. Every stop reduces drawdown. That is what stops do. The question is what it charged you for the privilege.

Treating a higher win rate as evidence the stop helped. Removing the stop here raised the win rate to 69.1%, because trades that would have been stopped recovered by the close. Win rate moves for reasons that have nothing to do with edge.

Next step

Open /backtest and run your strategy three times — no stop, position stop, per-leg stop — and read net P&L against max drawdown each time. Then read trailing stops and re-entry, both of which need the per-leg version to do anything at all.

Common questions

What is the difference between a position stop and a per-leg stop?
A position stop is a rupee or percentage limit on the whole structure's combined P&L — when the position as a whole is down that much, everything closes. A per-leg stop is an SL% on one leg's own premium, and it closes only that leg, leaving the rest of the structure open. They answer different questions and they produce materially different results on the same strategy.
Which stop do I need for re-entry, trailing or move-SL-to-cost to work?
A per-leg stop. Re-entry, the stepped trail and move-SL-to-cost all trigger off a LEG stop or leg target, never off the position stop — a position stop ends the trade, so there is no leg left to put back on or tighten. Setting a position stop and then enabling re-entry produces a run with zero re-entries, which is easy to mistake for the feature not working.
Where do I set each one?
The per-leg stop is the SL% box on each leg row in the Strategy step. The position stop is in the Position risk row, which opens a panel, alongside the position target. A leg can carry SL%, TP% and its own trailing settings; the position carries a single stop and target on the combined P&L.
What happens when one leg hits its stop and the others are still open?
By default the stopped leg closes and the rest of the structure stays on — which is what makes a strangle whose call has just been cut into a naked put. The 'Exit all legs when one leg's SL or TP fires' toggle changes that to close everything. Note that enabling it also disables re-entry, because ending the trade leaves nothing to re-enter.
If a minute touches both a leg's stop and its target, which one is booked?
The stop. A 1-minute candle records the high, the low and the close but not the order they occurred in, so the engine cannot know which came first and books the worse of the two.
Does the position stop get checked before the leg rules?
Yes, first, every bar. Running the leg rules first would let a deeply losing leg close itself and let the position blow straight through its own stop while still being labelled as having stopped there.
Is a wider stop always better?
No — it is a trade-off with two real sides, and the direction depends on the strategy. On one measured NIFTY short strangle, removing a 30% position stop entirely raised net P&L from ₹34,994 to ₹46,693 but deepened max drawdown from ₹24,542 to ₹27,407. The stop cost ₹11,699 of profit and bought ₹2,865 less drawdown. Which of those you want is not a question a backtest can answer for you. Those are hypothetical backtested figures from one strategy over one window, do not represent actual trading, and are not indicative of future results. Every trade is sized at today's lot size.

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