/india-trading-skills:fii-dii-flowsfrom india-trading-skills
Analyzes institutional money flow in Indian equities from downloaded CSVs: FII/FPI and DII cash flows with multi-session sums, streaks, absorption ratios, NIFTY correlation; NSE participant-wise F&O open interest; quarterly shareholding changes with pledge flags; bulk/block deals by symbol and client.
Ships in india-trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
market-pulse quotes last evening's FII/DII figures. This skill turns weeks of downloaded data into
streaks, absorption, positioning extremes and holder changes, so a single day's number gets context.
python3 scripts/flows.py cash --csv fii_dii.csv # flows, streaks, absorption
python3 scripts/flows.py cash --csv fii_dii.csv --nifty nifty.csv --json # + NIFTY correlation
python3 scripts/flows.py participants --oi participant_oi/ --days 10 # folder of daily NSE files
python3 scripts/flows.py shareholding --csv shp.csv [--symbol HDFCBANK,ITC]
python3 scripts/flows.py deals --csv bulk.csv --csv block.csv [--symbol XYZ] [--client "fund"]
Common flags: --json (strict JSON), --as-of DATE, --date-format dmy|mdy. Tuning: --lookback 60,
--top 5 (cash); --long-low 20 --long-high 70 --shift-pp 5 (participants); --min-change 1,
--promoter-drop 0.5, --pledge-watch 10 --pledge-red 20 --pledge-severe 50 (shareholding);
--kind bulk|block --from --to (deals). Errors exit 2 with one error: line.
Dates are never guessed. ISO, 30-Oct-2026, 30-OCT-2026, Oct 30, 2026 and 30-10-2026 (dashes =
day first, NSE style) parse directly. Slash dates like 05/10/2026 work only if some row in the file
proves the order (a day above 12); otherwise the script stops and asks for --date-format.
nseindia.com blocks scripted requests: download in a browser, or use WebSearch/WebFetch on sites that republish the figures (cite them). Never invent a missing day.
| Command | Source | Format handled |
|---|---|---|
cash | NSE → Reports → FII/FPI & DII trading activity (provisional, NSE+BSE+MSEI); Moneycontrol FII/DII table; NSDL FPI daily report | Wide date,fii_buy,fii_sell,fii_net,dii_buy,dii_sell,dii_net; NSE rows Category,Date,Buy Value,Sell Value,Net Value (FII/FPI, DII); Moneycontrol two-row header (FII/DII × Gross Purchase/Gross Sales/Net); FPI-only files (NSDL: rename to date,fii_net). Net is derived from buy − sell if blank. Totals rows are skipped |
participants | NSE → All Reports → Derivatives → "F&O – Participant wise Open Interest" (fao_participant_oi_DDMMYYYY.csv, one per day) | Title row ("…as on Oct 30, 2026"), then Client Type header with Future Index/Stock Long/Short, Option Index/Stock Call/Put Long/Short, Total Long/Short; rows Client, DII, FII, Pro, TOTAL. Trailing spaces in headers and CRLF are fine. Date from the title, else the file name |
shareholding | NSE/BSE shareholding-pattern filings (within 21 days of quarter end) or a Screener-style table | symbol,quarter,promoter,fii,dii,mf,public,pledged (one or many stocks), or quarters across columns (Promoters, FIIs, DIIs, Public, No. of Shareholders rows). Quarters: Sep-2026, Q2FY27, Q2 2026-27, 2026-09-30; Q3 2026 is rejected (calendar or fiscal?) |
deals | NSE → Market Data → Large Deals (bulk/block CSV); BSE bulk/block deals | Date,Symbol,Security Name,Client Name,Buy/Sell,Quantity Traded,Trade Price / Wght. Avg. Price; quantities like 4,00,000; BSE B/S/P sides. File name containing "block"/"bulk" tags the kind |
Participant-OI layout checked against NSE's own Oct-2025/Oct-2026 files; bulk-deal header against
NSE's archive bulk.csv. NSE's FII/DII CSV header text varies, so those columns match by keyword.
--lookback sessions, largest days, and absorption: DII net ÷ FII net outflow over the window,
plus the same-day share of FII selling matched by DII buying. With --nifty: same-day and next-day
correlation and the average NIFTY return on FII selling vs buying days.fundamental-screening), severe ≥ 50% (SEBI makes
promoters disclose reasons above 50% encumbrance). Pledge rising while promoter stake falls is
flagged as possible invocation.--long-low 15 for a stricter cut. A one-day swing of 5+ points is flagged.market-pulse: in the post-market wrap, run cash and participants on the downloaded files for
the FII/DII row, the streak and the FII long % line, instead of quoting one day alone.market-regime: a 5+ session FII selling streak with absorption under 50% adds weight to
distribution days; heavy DII absorption explains flat days despite FII selling.india-market-analyst: add one context line (FII 20-session net, DII absorption, FII long %) and
the stock's shareholding/deal flags to any trade view.fundamental-screening: use shareholding for the multi-quarter trend and pledge flags.fno-options-analysis: use participants for the FII futures and options positioning gauge.Flows are reported after the fact: context, not timing. Same-day correlation mostly shows FIIs selling into falling markets and is unstable over a few months. Participant categories rest on broker-entered client codes; shareholding is up to three weeks stale; deal files only show trades above disclosure thresholds.
FII/DII (provisional, [source], to [dd-Mon-yyyy]): latest FII [±₹x cr] / DII [±₹y cr];
20 sessions FII [±₹a cr], DII [±₹b cr], DII absorbed [c%]; FII [buying|selling] streak [n] ([±₹s cr])
F&O positioning ([date]): FII index futures [l%] long ([Δ] vs prior day, [activity]); clients [k%] long;
FII index calls net [..], puts net [..]; flags: [..]
Stock: promoter [p%] ([Δ] QoQ, pledge [q%]), FII [f%] ([Δ]), DII [d%] ([Δ]); deals: [repeat buyers/sellers]
Educational analysis, not investment advice. Data: [files + dates].
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xdhruv/claude-trading-skills-india-mv --plugin india-trading-skills36 skills in this plugin
/backtest-labBacktests rule-based swing ideas on NSE/BSE daily bars with Indian frictions built in: decide on
the close and fill at the next open, gap-through stops, slippage, exact per-trade charges by
segment and broker (STT, stamp duty, GST, DP), whole shares or lots, circuit-band no-fills,
futures-only shorts and an optional STCG/LTCG estimate. Six built-in strategies; CAGR vs
buy-and-hold, drawdown, Sharpe/Sortino, profit factor, expectancy in ₹ and R; parameter sweeps
with a plateau-or-spike read, walk-forward and Monte Carlo. backtest.py, stdlib only, offline.
Use when the user asks: "backtest this strategy", "would a 20/50 crossover have worked on X",
"is this edge real or curve-fit", "optimise my parameters", "walk-forward test", "Monte Carlo my
trades", "what drawdown should I expect", "do charges kill this idea", "does a NIFTY 200-DMA
filter help", or before putting real money behind any mechanical rule.
/breakout-plannerStage-2 breakout setups on NSE/BSE stocks: a trend-template check (rising 200 DMA, 50>150>200
stack, distance from 52-week high/low, relative strength vs NIFTY), base detection (volatility
contraction with successively tighter pullbacks, or a flat base) with pivot, depth, duration,
volume dry-up and a grade, then an order-ready plan: trigger, chase limit, capped stop, size,
Indian charges, R targets, GTT/SL templates, circuit-band and NSE tick-size checks. breakout.py
scans a folder of CSVs or yfinance symbols and ranks them, offline-capable.
Use when the user asks: "is X in a Stage 2 uptrend", "find VCP setups", "where is the pivot on X",
"plan a breakout trade in X", "breakout buy point and stop", "scan these stocks for breakouts",
"Minervini trend template for NSE stocks", "how do I place a GTT for a breakout", or any question
about buying stocks as they clear a base.
/broker-integrationConnect Claude to Indian brokers and use them safely: official MCP servers for Groww, Zerodha
Kite, Dhan, Upstox, Fyers and Kotak Neo (endpoints, auth, read vs order capabilities as of Oct 2026),
tool discovery and capability mapping, saving candles for the analysis scripts, a mandatory
order-confirmation protocol, SEBI retail-algo/static-IP rules, and data fallbacks (yfinance, CSV).
Use when the user asks to connect or set up Groww/Zerodha/Kite/Dhan/Upstox/Fyers/Angel One, "fetch my
holdings/positions", "get live price", "place/modify/cancel an order", "set a GTT", "why was my order
rejected", or when another skill needs live data.
/event-calendarOffline calendar of the dates that move Indian markets: NSE/BSE F&O expiries (holiday-shifted),
exchange holidays, long weekends and special sessions, results-season windows (SEBI LODR),
trader tax dates, India macro releases (CPI, WPI, IIP, GDP, PMI, auto sales, GST, AMFI), RBI MPC,
Union Budget, US FOMC/CPI/jobs, NIFTY and MSCI rebalances, plus your own results, board-meeting,
ex-date and lock-in events. Every date is labelled computed, expected-by-rule, verified (with
source) or unverified. events.py exports .ics and answers "is there event risk in my holding
window?".
Use when the user asks: "what's on this week", "economic calendar India", "when is the next RBI
policy", "when is expiry", "is Monday a holiday", "events before my exit date", "any event risk
in this trade", "Fed meeting date", "when is CPI", "Budget date", "results season dates",
"advance tax due date", "export market calendar to Google Calendar", or before any multi-day trade.
/exhaustion-reversalWhen a move on NSE/BSE has run out of buyers or sellers. exhaustion.py scores a vertical run-up
0-100 (stretch above the 20/50/200 DMA, acceleration, run length, range/volume blow-off, late
gaps, upper-circuit streaks, price-band cuts), labels it extended, climax or reversal confirmed,
and plans the exit: scale out and trail with a GTT if you hold, or short only via stock futures or
puts on F&O names after a trigger, sized in lots. Also finds selling-exhaustion hammers for long
entries, judges whether a stock failed to react to news, and scans a universe with F&O tags.
Use when the user asks: "is this stock parabolic", "has the rally topped", "my stock hit upper
circuit five days running, should I sell", "how do I book profit on a multibagger", "can I short
this", "short a stock that ran up 80%", "capitulation or hammer setup", "selling exhaustion",
"results were good but the stock fell, what does it mean", or wants a blow-off top scan.
/fibonacci-tradingFibonacci retracement entry zones and extension targets for NSE/BSE stocks and indices, with
automatic swing detection (ta.py fib), trend-based extensions from the pullback point, and
confluence with moving averages, support/resistance, round numbers and option OI strikes.
Use when the user asks: "fib levels for X", "Fibonacci retracement", "where to buy the pullback",
"golden ratio / 61.8%", "Fib extension targets", "how far can NIFTY fall/rise from here", or gives
a swing high and low to compute levels.
2 plugins ship this exact skill · first indexed Nov 4, 2026
Other plugins' skills for the same job