How to exit a multi-leg F&O position on Zerodha
Exiting a multi-leg F&O position on Zerodha requires closing every leg in a controlled sequence that avoids leaving any open naked exposure. A poorly managed exit, where one leg closes but another remains open, can transform a defined-risk strategy into an unhedged position with potentially large losses. This guide explains how to close all legs cleanly using the basket order method and what to do in an emergency.
For entry via basket order see How to use basket order for multi-leg options on Kite. For building the strategy initially see How to build an options strategy on Sensibull.
Why exit sequencing matters
A multi-leg strategy is designed so that the legs together form a specific risk profile. Closing legs out of sequence can temporarily or permanently alter that profile:
- Closing long wings before short core: if you close the long wings (protective legs) of an iron condor first, you are left holding a naked short strangle with unlimited upside and downside risk. This must be avoided unless you are intentionally converting the strategy.
- Closing short legs before long legs: the long wings become a long strangle or straddle (capped maximum loss equal to premium paid for the wings). This is less dangerous than the reverse but locks in a cost equal to the remaining wing premium.
- Correct order for minimum risk: for short-premium strategies, close the short legs first, then close the long wings. The long wings have no time sensitivity once the shorts are gone.
For spread strategies (bull call spread, bear put spread), the exit is more straightforward: close both the long and short legs simultaneously via the basket order.
Step-by-step procedure
Open the Positions page
Log in to Kite and press P or click Portfolio → Positions in the sidebar. The Positions page shows:
- Day tab: intraday (MIS product type) positions opened and not yet closed today.
- Net tab: overnight (NRML product type) positions carried from previous sessions.
Find every contract that belongs to the multi-leg strategy. For a 4-leg iron condor on Bank Nifty with 1 lot per leg, you will see four separate rows. Note the quantity and average price for each leg to confirm the position is as expected.
Identify all legs and the closing-order direction
For each leg, the closing order is the opposite of the opening order:
| Opening transaction | Closing transaction |
|---|---|
| Bought (long) | Sell to close |
| Sold (short) | Buy to close |
Map this out for all legs before building the basket:
Example: short iron condor on Nifty
| Leg | Open position | Close order |
|---|---|---|
| Short 24200 CE | Sold 1 lot | Buy 1 lot |
| Long 24400 CE | Bought 1 lot | Sell 1 lot |
| Short 23800 PE | Sold 1 lot | Buy 1 lot |
| Long 23600 PE | Bought 1 lot | Sell 1 lot |
Build a basket with opposing orders
Open Basket Orders in Kite. Add each closing order as a separate leg:
- Search for the contract.
- Set transaction type (Buy or Sell as per the close order direction).
- Set product type to NRML for overnight positions (match the original product type).
- Set order type to Limit.
- Set quantity to match the open quantity (in shares, not lots: quantity = lots × lot size).
- Set the limit price:
- For a buy-to-close leg: set limit price at or slightly above the current Ask price. You are buying back a short; paying slightly above the best ask improves fill probability.
- For a sell-to-close leg: set limit price at or slightly below the current Bid price.
Repeat for all legs. Review the basket table to confirm all legs are present with correct directions.
Review the margin impact
Before submitting, Kite shows the margin estimate for the basket. For a full close-out, the margin of the closed strategy should be released upon complete execution. However, if partial fills occur, remaining open legs may have a higher margin requirement than when the full strategy was on. Ensure your account has enough margin to absorb the transient state during execution.
Submit the basket and monitor fills
Click Submit All. Kite routes all legs to the exchange simultaneously. Open the Order Book (press O) and monitor fill status for each leg:
- Complete: filled, the leg is closed.
- Open: still pending in the exchange order book.
- Rejected: not filled; review the rejection reason.
For liquid index options (Nifty, Bank Nifty ATM and near-OTM strikes), limit orders priced at or near the bid/ask typically fill within seconds. For less liquid contracts (stock options, far-OTM strikes), fills can take longer.
Handle unfilled or partially filled legs
If a leg remains Open after two to three minutes:
- Click the order in the Order Book to modify it.
- Move the limit price toward the mid-price (for a buy-to-close, move it slightly higher; for a sell-to-close, move it slightly lower).
- If execution is urgent (approaching auto-square-off time, news event imminent, or margin shortfall), convert the limit order to a market order by modifying the order type. Expect worse execution than the current bid/ask for illiquid options.
Do not leave a situation where the short legs are closed but the long hedges (wings) remain open if the strategy was a spread. The long wings’ premium is a sunk cost; close them at market if necessary.
Verify zero positions
After all orders show Complete in the Order Book, reload the Positions page. Confirm that the net quantity for each contract is 0 (zero). If any row still shows a non-zero quantity, there is a residual open position; investigate and close it immediately.
Check Kite Funds to confirm the margin for the closed strategy has been released. The margin update typically takes a few seconds after the position is squared off.
Urgent close-out: emergency exit procedure
In situations requiring immediate exit (for example, a flash crash, surprise news event, or a margin shortfall notification), a basket limit order may not fill fast enough. In these cases:
- Prioritise closing the short legs first (the legs with unlimited or large risk potential).
- Use market orders for the short legs, accepting slippage.
- After the shorts are closed, close the long legs at the next available opportunity using limit or market orders.
Alternatively, Kite’s Exit button on the Positions page can be used to square off a single leg instantly at market. For each leg, click the row in the Positions page and click Exit (or the square-off icon). This places a market order for the full quantity of that leg. Repeat for each leg in the correct sequence.
Closing positions near expiry
If the strategy is approaching expiry and you want to close rather than let it expire:
- Cash-settled index options (Nifty, Bank Nifty): you can allow OTM options to expire worthless (no action required, no cost on expiry day for worthless OTM options). However, this requires certainty that the options will expire OTM. If there is any risk of an option going ITM, close it before expiry.
- Stock options: ITM stock options are physically settled. Close all stock option positions before the close-out deadline (typically 3:30 PM on the Wednesday of expiry week). See How to avoid physical settlement.
- Near-ATM options on expiry day: liquidity can be thin and bid-ask spreads very wide on expiry afternoon for near-ATM options. Place limit orders well in advance; do not wait until 3:00 PM on expiry day for a large multi-leg exit.
What can go wrong
- Accidentally placing the same direction instead of the opposite. A common error is placing a buy order for a long leg (buying more instead of selling to close). Double-check each leg’s direction before submitting the basket.
- Exiting in wrong sequence (long wings before short core). Closes the protective hedge while short legs remain; creates naked exposure. Follow the sequence: short legs first, then long legs.
- Kite session timeout. If the Kite session times out mid-basket, the submitted orders remain live in the exchange. Log back in, check the Order Book, and complete the exit as needed.
- Auto-square-off before manual exit is complete. For MIS positions, Zerodha RMS squares off at 3:25 PM at market price. If you are in the middle of a basket exit when auto-square-off triggers, you may receive duplicate exit orders. Check the Order Book carefully for double-filled legs; if overexited (now net short where you intended flat), open a new buy order immediately.
Related guides
- How to use basket order for multi-leg options on Kite
- How to build an options strategy on Sensibull
- How to roll over an F&O position on Zerodha
- How to avoid physical settlement
- How to understand peak margin penalty
- How to interpret the margin shortfall SMS on Zerodha
- F&O segment on Zerodha
- Kite, Zerodha’s trading platform
References
- Zerodha support article: “How to square off F&O positions”, support.zerodha.com.
- Zerodha support article: “What is auto square-off?”, support.zerodha.com.
- NSE F&O physical settlement circular, NSE/FAOP/39225.
- SEBI Circular SEBI/HO/MRD/MRD-PoD-2/P/CIR/2020/198 dated 1 December 2020, Peak margin reporting.
- SEBI Circular SEBI/HO/MRD/MRD-PoD-3/P/CIR/2024/120 dated October 2024, Rationalisation of weekly index derivatives contracts.