Register
Strategy guide

Dynamic Delta Hedging Algo for Indian Indices

A delta-neutral strategy holds options positions whose overall delta is close to zero, so small moves in the index barely change their value. Traders use it to earn from time decay or changes in volatility rather than from direction. Because delta changes as the market moves, the position must be rebalanced, which is where rules and automation come in.

QuantPower Research · Updated 12 Nov 2026 · 17 min read

This guide explains what delta neutrality means, where the idea came from, how positions drift away from it, the main ways to hedge, rebalancing rules with worked numbers, gamma scalping, costs, and how to automate and test a delta-hedging strategy on Nifty. The rules shown are examples to test and change, not recommendations.

Delta-neutral strategy at a glance

Delta-neutral strategy
GoalEarn from theta or vega while staying close to direction-neutral
Typical positionsShort straddles and strangles, iron flies, iron condors, ratio spreads; long straddles for gamma scalping
Hedging toolsIndex futures, options, or re-centring the strikes
Key ruleRebalance when the position's delta moves outside a band
Main riskGamma: large moves change delta faster than you can hedge
Hidden costEvery hedge pays charges and slippage, and locks in part of the move
Nifty futures delta65 rupees a point per lot

A short history of delta hedging

Delta hedging is older than most option strategies, because it is how options were first priced. Fischer Black and Myron Scholes, in their 1973 paper, showed that an option's price could be found by building a portfolio of the option and the underlying that has no exposure to small moves, and adjusting it continuously.1 The amount of the underlying needed at each moment is the option's delta. In theory, a perfectly hedged option earns the risk-free rate; in practice, hedging happens in steps, at a cost.

That cost became its own field of study. In 1985 Hayne Leland showed that charges on each hedge change the price of an option and that a hedger must trade less often than the theory assumes.2 Later work, such as Whalley and Wilmott's in 1997, showed that a sensible rule is to hedge only when delta leaves a band around its target, rather than at fixed times, which is the rule most traders use today.3 Option market makers on every exchange still run their books this way: they quote options, hedge the delta with futures, and earn from the spread and from volatility rather than from direction. Practitioners' accounts, such as Nassim Taleb's book on dynamic hedging, described how messy this is in real markets, with gaps, jumps in volatility and costs that the models leave out.4

In India, index options began on the NSE in June 2001, and NSE began publishing India VIX, a measure of Nifty's implied volatility, in 2008. Delta-neutral selling spread among retail traders with weekly options, as short straddles and strangles sold in the morning and hedged or stopped out during the day. SEBI's measures of 1 October 2024, which added an extra 2% margin on short options on expiry day and cut weekly expiries to one index per exchange, changed the economics of these positions and made hedged, defined-risk versions more common.7

What delta neutral means

Delta measures how much a position gains or loses for a one-point move in the underlying. One lot of Nifty futures has a delta of 65 rupees per point, because one lot is 65 units.6 An at-the-money call has a delta of about +0.5 per unit, so one lot of it moves about ₹32.5 for each point; an at-the-money put has about −0.5. A position with a delta of zero gains or loses almost nothing from a small move.

A short straddle on Nifty at 25,000, using model prices with 12 days to expiry and IV of 14%, has a delta of about −5 rupees per point per lot. It is close to neutral at entry. Our guide to the options Greeks explains delta and its relatives in detail.

Delta neutral describes the position at one moment, at one price. It says nothing about what happens after a large move, and it does not mean the position is safe. A short straddle can be perfectly delta-neutral and still lose a large amount in a gap, because its gamma and vega are not neutral.

How neutrality drifts

The short straddle has negative gamma, so its delta moves against the market:

Nifty levelShort straddle delta per lot
24,800+₹11.3 per point
25,000−₹5.0 per point
25,100−₹13.0 per point
25,200−₹20.7 per point

After a 200-point rally, the "neutral" straddle behaves like a short position of about a third of a futures lot. If the rally continues, losses grow faster with each point. Rebalancing brings the delta back toward zero.

Short straddle payoff with delta marked: about −₹5 a point per lot at 25,000, +₹11.3 at 24,800 and −₹20.7 at 25,200 (model prices, numbers from this page)

Delta drifts for reasons other than price, too:

  • Time. As expiry nears, an at-the-money option's delta becomes more sensitive to each point, so the same move shifts delta more on the last day than a week earlier.
  • Volatility. When implied volatility falls, out-of-the-money options' deltas shrink toward zero and in-the-money options' deltas move toward one, which changes a strangle's delta even if the index does not move.
  • Expiry day. Gamma is highest on expiry day, which is why delta-neutral positions on expiry day can swing from neutral to strongly directional within minutes.

Ways to hedge delta

Futures

Buy or sell index futures to offset the delta. One Nifty futures lot offsets 65 rupees per point. The limitation is size: you cannot buy a third of a lot, so futures hedges suit larger positions where the delta adds up to whole lots. Futures also add their own margin, and a futures hedge has no time decay, so it does not change the position's theta.

Options

Buy or sell options to adjust delta in smaller steps. For example, after a rally, selling a put or buying a call adds positive delta. Options hedges change the position's other Greeks too, so check gamma, theta and vega after each adjustment. A hedge with a far out-of-the-money option is cheap but adds little delta; one near the money adds more delta but also more gamma.

Re-centring the strikes

Close the position and reopen it centred on the new at-the-money strike. This resets delta to near zero and also resets gamma, so the position starts fresh. It locks in the loss so far and pays charges on every leg, which is why most traders re-centre only after a large move.

Exiting the losing side

Close the leg that is losing and keep the other, which turns a neutral position into a directional one that is now on the market's side. It is quick and cheap, but it leaves the position exposed if the market reverses.

Rebalancing rules

A rule-based approach rebalances when delta leaves a band:

  1. Band: keep the position's delta between −20 and +20 rupees per point per lot.
  2. Check: recalculate delta every few minutes, or on every move of a set size in the index.
  3. Hedge: when delta leaves the band, adjust back toward zero using the chosen tool.
  4. Limit: cap the number of adjustments per day to control costs.
  5. Stop: exit the whole position if the combined loss reaches a limit, regardless of the hedge.

Choosing the band

Band widthHedges per dayCostDirectional risk
Narrow, such as ±10 per lotManyHigh: charges and slippage on every hedgeLow
Medium, such as ±20 per lotA fewModerateModerate
Wide, such as ±40 per lotRareLowHigh: the position acts directional for longer

There is no width that suits every market. A narrow band works on quiet, choppy days and costs a lot on trending ones; a wide band saves costs in chop and gives up more on trends. The band is a setting to test, not a fact to look up.

A worked example: a futures hedge

This is a hypothetical example using model prices.

  • You hold 3 lots of the Nifty 25,000 short straddle. Delta is about −15 rupees per point.
  • Nifty rallies to 25,200. The delta becomes about 3 × −20.7 = −62 rupees per point, outside the band.
  • Buying one lot of Nifty futures adds +65, bringing the delta to about +3.
  • If Nifty then falls back to 25,000, the futures lose about 200 × 65 = ₹13,000 while the straddle recovers. The hedge has cost money on the round trip.

This is the central trade-off of delta hedging. Hedging protects against a continued move, but it locks in losses when the market reverses. A wider band means fewer hedges and lower costs but more directional risk; a narrower band means the reverse.

A worked example: re-centring

This is a hypothetical example using model prices.

  • You hold 1 lot of the Nifty 25,000 short straddle, sold for ₹507.60 per unit.
  • Nifty rallies to 25,250 the same morning. The call is now worth about ₹434 and the put about ₹131: the straddle costs about ₹565 to buy back, a loss of about ₹57 per unit, or about ₹3,725 per lot.
  • Delta is now about −24 rupees per point, outside a ±20 band. The rule says: square off and re-enter at the new at-the-money strike.
  • The 25,000 straddle is bought back, and the 25,250 straddle is sold for about ₹513 per unit.

The position is neutral again, the ₹3,725 loss is booked, and four more orders have been paid for. If Nifty settles near 25,250, the new straddle decays and can recover the loss. If it rallies another 250 points, the rule fires again. Capping the number of re-centres per day stops a trending day from becoming a series of booked losses.

A worked day: a short strangle with a delta band

This is a hypothetical example using model prices, with Nifty's implied volatility held at 14% and the passage of time within the day ignored, to show the mechanics only.

Two lots, Nifty short strangle with a ±40 delta band (model prices)
  1. 9:30 amNifty 25,000, 12 days to expiry. Sell 2 lots of the 25,300 call at ₹150.10 and the 24,700 put at ₹113.40. Credit ₹263.50 per unit, ₹34,255 for 2 lots. Delta about −9 rupees per point for the position, inside the ±40 band.
  2. 10:45 amNifty 25,100. The strangle is worth ₹276.20. Delta about −24, still inside the band. No action.
  3. 11:30 amNifty 25,180. Worth ₹294.20. Delta about −35. Still inside, but close.
  4. 12:15 pmNifty 25,250. Worth ₹315.50, a loss of ₹52 per unit, ₹6,760 for 2 lots. Delta about −44, outside the band. The rule re-centres: buy back both legs and sell the 25,550 call and 24,950 put for ₹268.10. Delta back to about −9.
  5. 3:10 pmNifty 25,240. Time exit: the new strangle has decayed a little and Nifty is near its new centre. The day ends with most of the 12:15 pm loss still booked, plus charges on 12 orders.

The band did what it was meant to do: it stopped the position from turning into a large short as the rally went on. It did not turn the day into a gain. A rally of 250 points against a strangle sold that morning is a losing day for this strategy whatever the hedge; the hedge decides how large the loss is if the rally continues, and how much is given up if it reverses.

Delta-neutral positions compared

Neutral positions differ in how fast their delta drifts and how they are usually hedged. Model figures for Nifty at 25,000, 12 days to expiry, IV 14%:

PositionDelta at entry, per lotHow fast delta driftsUsual adjustment
Short straddle 25,000About −5Fast: highest gammaRe-centre, or exit the losing leg
Short strangle 25,300 / 24,700About −5Slower until the index nears a short strikeRe-centre or roll the tested side
Iron fly 24,700 / 25,000 / 25,300Close to 0Slow at first, fast near expiryUsually a stop, not a hedge: the wings cap the loss
Iron condorClose to 0Slow inside the short strikesRoll the tested spread, or exit
Long straddle 25,000About +5Fast, in your favourGamma scalping with futures or options

The defined-risk versions, flies and condors, are often traded with a stop instead of a hedge, because their wings already limit the damage. Naked straddles and strangles are where delta bands matter most.

Delta neutral on Nifty, Sensex and Bank Nifty

  • Nifty has the deepest options market, weekly expiries on Tuesday, 50-point strikes and a lot of 65, so small hedges with options and whole-lot futures hedges are both practical.6
  • Sensex has weekly expiries on Thursday on the BSE and a lot of 20. Its options move closely with Nifty's, so neutral positions on both indices are not two separate risks.
  • Bank Nifty has monthly expiries only and a lot of 30. It usually moves more in percentage terms, so its delta drifts faster for the same band, and wider bands or wider strikes are common.

Gamma scalping

Traders who are long options, such as long straddles, have positive gamma. As the market moves, their delta moves with it, so they can rebalance by selling into rallies and buying into falls, locking in small gains each time. This is called gamma scalping.5

  • Example. A trader buys one lot of the Nifty 25,000 straddle. Nifty rallies to 25,150 and the straddle's delta turns positive, about +₹17 a point per lot. The trader sells futures or calls to bring it back to zero. When Nifty falls back to 25,000, the hedge gains while the straddle gives back part of its rise.
  • The trade-off. Each rebalance books a small gain from the movement. Time decay works against the long straddle every day. Gamma scalping makes money when the market moves more than implied volatility suggested, and loses to decay when it moves less.

Gamma scalping is the mirror image of short-straddle hedging: the short straddle seller pays for each rebalance, while the long straddle buyer earns from each one and pays the decay instead.

Delta neutral and the other Greeks

A position can be neutral in delta and strongly exposed in everything else. Before you hedge, check what you are left holding:

GreekShort straddle (neutral delta)Long straddle (neutral delta)
GammaNegative: losses grow with the size of the movePositive: gains grow with the size of the move
ThetaPositive: earns from each quiet dayNegative: pays for each quiet day
VegaNegative: hurt by a rise in implied volatilityPositive: helped by a rise in implied volatility

Delta hedging removes the first-order effect of direction. What remains is a bet on how much the market moves (gamma and theta) and on what happens to implied volatility (vega). That is the real trade, and it should be the reason for the position.

How market makers hedge, and how retail traders differ

Option market makers live on delta neutrality. They quote prices on both sides, end up holding whatever customers sell to or buy from them, and hedge the combined delta of thousands of options with futures, often many times a day. They earn from the bid-ask spread and from the difference between the volatility they sell at and the volatility the market delivers. Their edge comes from scale, low costs and constant hedging.

A retail delta-neutral trader is in a different position:

  • Costs are higher per hedge, so the band must be wider and hedges fewer.
  • Positions are small, so futures hedges are often too large and option hedges change the other Greeks.
  • There is no spread to earn. The retail trader pays the spread on every order instead of collecting it.
  • The edge, if any, is in the choice of trade: selling when implied volatility looks high against what the market has been delivering, or buying when it looks low, and controlling losses on the days that go wrong.

Delta hedging does not create an edge. It controls one risk so that the position's result depends on the thing the trader meant to trade.

Beyond delta: vega and theta targets

Some traders aim at a different Greek and use delta neutrality only as a starting point.

  • Theta-focused positions, such as short strangles and iron condors, are built to earn decay and are kept roughly delta-neutral so that small moves do not swamp the decay. An algo can also exit when its net theta leaves a band you set.
  • Vega-focused positions, such as calendar spreads that sell a near expiry and buy a far one, take a view on how implied volatility will change between expiries while keeping delta near zero.
  • Gamma-focused positions, such as long straddles before an event, are bought for the size of the move and hedged to collect from the swings.

Whatever the target, the same question applies: what does the position earn or lose if the index does nothing, if it moves sharply, and if implied volatility jumps? A neutral delta answers only the first part of that question.

When delta-neutral strategies work, and when they fail

Work best when:

  • The market moves in a range, letting the position earn decay while hedges stay small.
  • Volatility falls after entry, for short-vega positions.
  • For long-gamma positions, the market swings more than implied volatility priced.

Struggle when:

  • The market trends hard, forcing repeated hedges that each lock in losses.
  • The market gaps, moving delta far beyond the band before any hedge can be placed.
  • Costs from frequent rebalancing eat the edge.
  • Implied volatility jumps, for short-vega positions, even if the index barely moves.

Costs and slippage

Each hedge pays brokerage, STT on any option sold, exchange charges, the SEBI fee, stamp duty and GST, plus the bid-ask spread. A futures lot round trip costs a little over ₹100 at ₹20 an order plus statutory charges; re-centring a straddle costs four option orders. On a busy day with five hedges, costs can take a large share of the day's decay. STT on futures and options went up from 1 April 2026, which makes frequent hedging a little more expensive than in older backtests.8

Automating delta hedging

Delta changes continuously, so manual hedging is slow and inconsistent. In QuantPower:

  • The [strategy builder](/strategy-builder) shows the position's delta, gamma, theta and vega and its payoff as you build it, so you can see how neutral it is before you trade.
  • Strikes by Greek. A rule leg can pick its strike by delta, theta, gamma or vega, such as "the call nearest 0.30 delta", so a strangle starts with the delta you choose.
  • A net delta band. An algo can exit when its net delta leaves a band you set, or re-centre: the rule "square off and re-enter" closes the legs and enters again, with rule legs picking fresh strikes at the new price. You can limit re-entries to between 1 and 20 a day, and after the last one the next hit exits every leg.
  • Monitoring. Targets, stops and bands are checked on every tick, or once per 1, 3, 5 or 15-minute candle close, as you choose.
  • Account limits above everything. Smart Exit squares off every position and stops the algos when the account's profit or loss for the day reaches its level, and the daily loss limit refuses new orders once the day's loss reaches it.

Test the rules with backtesting and in Forward test on live prices before going live. A live algo costs 200 tokens per 28 days and a Forward-test algo 100.

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Testing a delta-neutral strategy

  • Use real option prices at each rebalancing time, so changes in IV are included.
  • Test several bands, such as ±10, ±20 and ±40 rupees per point.
  • Count every hedge's cost. Frequent rebalancing can cost more than it saves.
  • Look at gap days. They show the losses that hedging cannot prevent.
  • Separate expiry days. Gamma on expiry day changes how often the band is hit.
  • Compare with no hedging. Run the same position with only a stop and a time exit. If hedging does not improve the worst days enough to pay for itself, the simpler rule may be enough.

Common delta-neutral mistakes

  • Treating neutral as safe. It removes small-move risk, not gap or volatility risk.
  • Hedging too often and paying away the decay the position was meant to earn.
  • Hedging a futures-sized delta with options without checking what the hedge does to gamma and vega.
  • Re-centring without a cap on a trending day, booking a loss each time.
  • Ignoring margin. A futures hedge adds its own margin, and the expiry-day margin on short options rises by 2%.
  • Forgetting the exit. A hedge is not a stop. Every delta-neutral position still needs a loss limit and a time exit.
  • Hedging on stale prices. Greeks calculated from a delayed quote or a wide bid-ask midpoint can trigger a hedge that is not needed, especially in far strikes.
  • Running neutral positions on two closely linked indices, such as Nifty and Sensex, and treating them as separate risks.

Pre-trade checklist

  • The reason for the position is written down: decay, volatility, or movement.
  • The band, the hedge tool and the cap on hedges per day are set before entry.
  • Every hedge's cost is counted in the backtest, including re-centring.
  • The position has a loss limit and a time exit, separate from the hedge.
  • Margin covers the position, any futures hedge and the expiry-day addition.
  • The rules have run in Forward test through at least one expiry.

Where delta-neutral trading is going

The tools are moving from the dealing room to the retail screen. Greeks that once needed a pricing system now update live on retail platforms, strikes can be picked by delta, and algos can watch a net delta band on every tick. At the same time, the market around these positions has changed: fewer weekly expiries since November 2024, higher STT from April 2026, and NSE F&O trading until 3:40 pm from August 2026. A band that worked on older data deserves a fresh test on recent months, and since 1 April 2026, an algo that hedges for a retail trader runs through a broker under exchange rules, with its rules registered.8

Frequently asked questions

Is a delta-neutral strategy risk-free?

No. It reduces the effect of small moves but keeps gamma and vega risk. Large moves and gaps can still cause large losses.

How often should I rebalance?

When delta leaves a set band, rather than at fixed times. The band width is a trade-off between costs and directional risk.

Can I hedge with futures on a small account?

Futures come in whole lots, so they suit positions large enough to need whole-lot hedges. Smaller positions are usually adjusted with options or by re-centring.

What is the difference between delta neutral and market neutral?

Delta neutral refers to options positions with near-zero delta. Market neutral is broader and can include stock pairs or portfolios hedged against the index, such as pairs trading.

Does a delta-neutral position earn money if the market does not move?

A short straddle or strangle does, from time decay, as long as implied volatility does not rise. A long straddle loses money if the market does not move, because it pays the decay.

References

  1. Black, F. and Scholes, M. (1973). The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81(3), 637–654
  2. Leland, H. E. (1985). Option Pricing and Replication with Transactions Costs. Journal of Finance, 40(5), 1283–1301
  3. Whalley, A. E. and Wilmott, P. (1997). An Asymptotic Analysis of an Optimal Hedging Model for Option Pricing with Transaction Costs. Mathematical Finance, 7(3), 307–324
  4. Taleb, N. N. (1997). Dynamic Hedging: Managing Vanilla and Exotic Options. Wiley
  5. Hull, J. C. Options, Futures, and Other Derivatives. Pearson
  6. NSE: Equity derivatives contract specifications (Nifty lot size 65), checked 12 November 2026
  7. SEBI circular SEBI/HO/MRD/TPD-1/P/CIR/2024/132: Measures to strengthen the equity index derivatives framework, 1 Oct 2024 (sebi.gov.in)
  8. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, in force from 1 April 2026; Union Budget 2026-27 on STT from 1 April 2026 (sebi.gov.in, indiabudget.gov.in)
The examples on this page are hypothetical and use model prices. Options trading involves substantial risk. This guide is for education and is not investment advice.