/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 shubhamkumartrichy/claude-trading-skills-india --plugin india-trading-skills35 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.
2 plugins ship this exact skill · first indexed Nov 4, 2026
Other plugins' skills for the same job