Platform & protection · 12 min read
Risk management & protection for options bots
Selling options earns small, steady premium — the risk is the occasional large loss. Good results come less from the entry and more from the protections around it. KXalgo layers several defenses on top of every strategy; this guide walks through each, what it does, and when to use it. They stack — use the ones that fit your risk appetite.
1. Defined-risk structure (the first line of defense)
The cheapest protection is structural: choosing a strategy whose loss is capped by design. Iron Condors, Iron Flies, butterflies and credit/debit spreads all buy protective wings so the maximum loss is known the moment you enter. Naked structures (short straddle/strangle) collect more but leave the loss open-ended. If certainty of worst-case matters to you, start with a defined-risk shape.
2. Stop loss and profit target
The core exits. A stop loss closes the position once total loss hits a limit; a profit target books gains once P&L reaches a level. KXalgo lets you set each as a rupee amount or a percentage (of premium / deployed capital), and supports a separate expiry-day profit target since the risk profile changes on the last day.
3. Profit-lock: breakeven & trailing
A profit-lock protects gains you have already made. Once P&L reaches an arm level, the floor activates: in BREAKEVEN mode it pins to zero (you keep unlimited upside but will not give the trade back to a loss); in TRAILING mode it follows the running peak a set distance below, locking in more as the trade works. This is how a winning condor avoids round-tripping back to flat.
4. Per-leg stop loss
Total-P&L stops treat the position as one number. Per-leg stops (CE leg SL / PE leg SL) close just the side whose premium has run against you — useful when one wing is breached but the other is fine, so you de-risk the threatened side without abandoning the whole trade.
5. Dynamic profit target
A fixed target can be too greedy on a calm day and too timid on a volatile one. The dynamic profit target scales the target with realised volatility between a floor and a cap — taking profit sooner when conditions are choppy and letting it run when they are calm.
6. Straddle insurance
Optional crash protection layered on an Iron Condor: a long ATM call + put bought at entry. If the index makes a sharp move, the long straddle gains and offsets the condor's loss. It re-centres if the spot drifts past a set distance, can lock the winning leg, and has its own stop. It costs premium (a drag in quiet markets) but defends against the gap days that hurt sellers most.
7. Overnight hedge
Positions carried overnight are exposed to gap moves at the next open. The overnight hedge buys close-OTM protective wings at end of day and closes them the next morning after the open, so an overnight gap is cushioned. State persists across restarts so the morning check survives even if the worker is recycled.
8. Trend-exit (the circuit breaker)
When a market trends hard, repeatedly adjusting a range-bound position just feeds a loss. Trend-exit is a circuit breaker: if the bot has adjusted N times and is still down more than a set amount, it force-closes everything and stops fighting the trend. It turns an unbounded grind into a bounded, pre-decided loss.
9. Volatility & event filters (avoiding the trade)
The best protection is sometimes not entering. KXalgo can block entries when conditions are unfavourable:
- VIX filters — skip when India VIX is too high (risky) or too low (no premium)
- Range / trend filters — skip when the day is already moving too much
- Gap filters — skip after a large overnight gap
- Event calendar — skip around scheduled high-risk events (results, policy, budget)
10. Operational guards
Smaller but important safeguards: market open/close freeze windows (skip stop/target/adjustment checks in the thin, whippy minutes right after the open and before the close), end-of-day force-close, a hard cap on lots per position, and paper trading so you can validate every protection with zero risk before going live.
11. Regime & trend entry gates
The best loss is the trade you never put on. Beyond the VIX/event filters above, these gates read the market regime and block or reshape entries that are likely to go wrong:
- NIFTY direction filter — classifies NIFTY's intraday move as UP / DOWN / NEUTRAL, then gates entry per regime and can swap the entry shape per regime (e.g. trade an Iron Condor only in neutral, switch to a directional spread in a trend). Applies across the IC family, with NIFTY as the market-regime proxy even for stock bots.
- Moving-average / trend confirmation — computes a fast/slow MA and either blocks entries that run against the trend or requires confirmation first, so you are not selling premium into a strong trending day.
- Dynamic VIX gap — for Iron Condors, picks a tighter gap on low-VIX days and a wider one on high-VIX days, so strikes adapt to implied volatility instead of a single fixed distance.
- Uncertain-regime sizing — when VIX, daily range and AI confidence all sit in a "mixed" zone, scales the lot count down so you take less risk in regimes that are neither clearly calm nor clearly volatile.
12. Directional hedges
When one side of a short position gets tested, these add a directional layer to neutralise the threat rather than just closing:
- Momentum hedge — layers a directional debit spread on top of an IC/IF when sustained momentum threatens one side; a small debit to insure against a runaway tail move (index strategies).
- Futures delta hedge — when net portfolio delta breaches a threshold, opens futures contracts in the opposite direction to flatten delta (index strategies with a futures contract).
- Breakeven-futures roll — as spot drifts toward the IC's breakeven, opens a small futures position in the breach direction to defend the breakeven without rolling option strikes — cheaper than a roll when slippage is high.
13. Smarter adjustment triggers
If you run adjustments, how and when they fire matters as much as whether they do. These refine the trigger logic:
- Breakeven shield buffer — defines how close spot must get to a breakeven before an adjustment fires (points-trigger mode). Pairs with the smart trigger for ATR-scaled distances.
- Smart trigger & reversal — replaces the fixed-point trigger with an ATR-scaled breakeven trigger plus trend/momentum confirmation and an intraday reversal cap, so triggers are neither too eager on calm days nor too slow on volatile ones.
- Adjustment time windows — restricts adjustments to chosen intraday windows (e.g. 10:15–12:30, 13:30–15:00) with an optional mid-day cooldown, avoiding lunchtime chop and the open/close.
- Regime-adaptive adjustments — picks a different adjustment type per market regime (reversal / strong trend / high vol / weak trend) instead of always using one.
14. Intraday scalp mode
A profit-taking style rather than a defense: once a position has been open a minimum time and reaches a smaller target (a fraction of the credit), it books the gain early. Useful in choppy markets where riding to full profit invites late-day drawdowns — lock 30–50% rather than chase 80%.
How to combine them
A common conservative setup: a defined-risk Iron Condor + a total stop loss + a profit-lock + per-leg stops, with the volatility/event filters on to skip ugly days. Add overnight hedge if you carry positions, and straddle insurance or trend-exit if you trade through trending regimes. Paper-trade the combination first, then backtest it to see how the protections would have behaved historically.
FAQ
Which protections should a beginner turn on?
Start with a defined-risk strategy plus a stop loss and a profit target, and keep paper trading on. Add a profit-lock and the volatility/event filters next. Layer straddle insurance, overnight hedge and trend-exit as you get comfortable.
Do more protections mean more cost?
Some do — straddle insurance and overnight hedges cost premium that drags returns in calm markets. Stops, profit-locks, filters and freeze windows cost nothing; they just change when you exit or whether you enter.
Can I backtest with protections enabled?
The backtester models core exits (target, stop, expiry) on Iron Condors today; richer protection modeling is on the roadmap. Paper trading is the best way to see every protection behave live before committing capital.
Want to run this on autopilot?
Paper-trade it free on your own broker, then go live when you're ready.
Start free →