agentleFS
ShubhamkumartrichyShubhamkumartrichy/claude-trading-skills-india/skills/fno-options-analysis/SKILL.md

fno-options-analysis

Skill64 starsChanged 17 days agoMITView on GitHub

Indian F&O analysis for NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY, SENSEX and stock derivatives: lot sizes, holiday-adjusted expiry calendar (NIFTY Tuesday weekly, SENSEX Thursday weekly), option-chain reading (OI walls, change in OI, PCR, max pain, ATM straddle, IV skew), India VIX and expected move, Black-Scholes Greeks and IV, futures OI buildup, margins, F&O ban, physical settlement and SEBI's 2024–26 rule changes. options.py computes all of it from numbers or an NSE option-chain CSV.

The file

Files
SKILL.md

F&O and Option-Chain Analysis (India)

Contract basics (verified 31 Oct 2026)

UnderlyingExchangeLotExpiriesNotes
NIFTYNSE65Weekly Tuesday + monthly (last Tue)Among the most traded option contracts globally
BANKNIFTYNSE30Monthly (last Tue)No weeklies since Nov 2024
FINNIFTYNSE60Monthly (last Tue)
MIDCPNIFTYNSE120Monthly (last Tue)
NIFTYNXT50NSE25Monthly (last Tue)
SENSEXBSE20Weekly Thursday + monthly (last Thu)
BANKEXBSE30Monthly (last Thu)
Stock F&ONSEvariesMonthly (last Tue)Physically settled, European style

Index options are European and cash-settled. If an expiry day is a holiday, expiry moves to the previous trading day. 2026 had several Tuesday holidays: 3 Mar, 31 Mar, 14 Apr, 20 Oct, 10 Nov and 24 Nov.

python3 scripts/options.py expiries NIFTY --count 6          # holiday-adjusted, flags monthly
python3 scripts/options.py lots

Toolkit

python3 scripts/options.py greeks --spot 23050 --strike 23200 --type CE --iv 14 --expiry 2026-11-03 --lot-size 65
python3 scripts/options.py iv --spot 23050 --strike 23200 --type CE --premium 85 --days 3
python3 scripts/options.py move --spot 23050 --iv 15.3 --days 1          # India VIX → daily 1σ
python3 scripts/options.py chain nifty_chain.csv --spot 23050            # NSE CSV download or simple CSV
python3 scripts/options.py buildup --price-change 1.4 --oi-change 9      # futures OI interpretation
  • Time uses calendar days to 15:30 IST on expiry. Use --expiry for the exact date.
  • --rate defaults to 6%; pass the current 91-day T-bill yield for precision.
  • Chain input: NSE's option-chain page "Download (.csv)", whose columns mirror around STRIKE, or a simple CSV with strike, call_oi, put_oi, call_chg_oi, put_chg_oi, call_ltp, put_ltp, call_iv, put_iv. Broker MCPs that expose chains (Dhan with its Data API, Fyers, the Upstox skill) can be saved to that format.

Reading the option chain

MetricHow to read itCaveats
Call OI wall (max call OI strike)Writers expect price to stay below it, so it acts as resistance into expiryWalls migrate intraday; read change in OI
Put OI wallSupportSame caveat
Change in OIFresh writing shows where conviction is todayWriting vs buying can't be separated from OI alone; use price
PCR (OI)>1 means more puts written (supportive); <0.7 call-heavy (bearish lean)Contrarian at extremes (>1.5 crowded bullish, <0.6 washed out)
Max painStrike where option buyers' total intrinsic value is lowestWeak magnet; matters most in the last 1–2 sessions
ATM straddlePremium sum ≈ market's expected move to expiryUse alongside IV and VIX
IV / skewOTM put IV above OTM call IV is normal (crash protection). Rising skew means fearCompare to its own history, not to other underlyings

Combine chain levels with chart levels (technical-analysis). A call wall at a round number that is also a Fib extension and prior resistance is a strong cap.

India VIX and expected move

India VIX is NIFTY's 30-day implied volatility, annualised on a calendar-day basis.

1σ move over N days ≈ Spot × VIX% × √(N/365)
VIX 15.3, NIFTY 23,050, 1 day → ±185 pts (±0.80%); 7 days → ±488 pts
VIXRegimeImplication
< 12ComplacentOptions cheap. Favour debit spreads and long options over naked selling
12–18NormalBoth sides workable
18–25ElevatedRich premiums. Defined-risk credit spreads, smaller size
> 25FearGap risk is extreme. Cut size and avoid naked shorts

Spikes before the Budget, RBI policy, elections and US Fed meetings usually unwind afterwards (IV crush).

Greeks (per unit; multiply by lot size)

  • Delta is the ₹ change per 1-point move, roughly the probability of expiring in the money.
  • Gamma is delta's sensitivity. It explodes on expiry day for ATM strikes, which is why Tuesday/Thursday expiries swing wildly.
  • Theta is daily decay. It accelerates in the last week, and weekly options lose most of their time value in the final 2–3 sessions.
  • Vega is the ₹ change per 1 vol point. It matters around events.

Futures OI buildup

PriceOIRead
↑↑Long buildup (bullish)
↓↑Short buildup (bearish)
↑↓Short covering (bullish, often short-lived)
↓↓Long unwinding (bearish, often short-lived)

Exchanges and brokers publish daily buildup lists. Rollover % and cost of carry near monthly expiry show whether positions are carried forward. Participant-wise OI (FII, DII, Pro, Client), published daily by NSE, shows FII index-futures long/short ratios, which are a positioning gauge.

Rules that change P&L (SEBI 2024–26)

  • Contract value is at least ₹15 lakh at introduction, and lot sizes are revised periodically.
  • One weekly index expiry per exchange (NIFTY Tue, SENSEX Thu).
  • Option premium is collected upfront from buyers.
  • Expiry day: an extra 2% ELM on short options, and no calendar-spread margin benefit.
  • Intraday position-limit monitoring. OI and the F&O ban have been measured on delta-based (future-equivalent) OI since Dec 2025. MWPL is reviewed quarterly.
  • Pre-open session for current-month futures (09:00–09:08) since Dec 2025.
  • STT from 1 Apr 2026: futures 0.05% (sell), options 0.15% of premium (sell), and exercised options 0.15% of intrinsic value. Selling an ITM option before expiry and letting it exercise now cost similar STT, so the old "STT trap" is mostly gone.
  • Stock F&O physical settlement: ITM positions at expiry become delivery or receipt of shares. Brokers ramp margins from about 4 sessions before expiry and may square off. Close or roll early.
  • F&O ban: at more than 95% of MWPL, positions can only be reduced until OI falls below 80%.
  • Retail API algos need a registered app and a static IP (from 1 Apr 2026).

Risk reality

SEBI's studies found that about 91% of individual F&O traders lost money in FY25 (aggregate losses ≈ ₹1.06 lakh crore), and about 88% in FY26. Mention this when a beginner asks about F&O, and steer them toward defined-risk structures, small size, and the position-sizing rules.

Output

NIFTY [spot] | VIX [x] | next expiry [date, weekday] ([n] sessions)
Chain: PCR x.xx ([read]) | max pain ₹.. | call wall .. | put wall .. | ATM straddle .. → range ..–..
Fresh writing: calls at .., puts at ..
Expected move (1σ): ±.. to expiry
Read: [range/bias], levels that would change it: ..

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.