Retail vs FII · Net Positions
Signal ledger
Divergence timeline (last 59 trading days)
What this signal means
Each trading day after close, NSE publishes which category of market participant holds how many Nifty futures long vs short. Four categories: Client (retail), FII (foreign institutions), DII (domestic institutions), Pro (prop desks). When retail goes heavily long while FIIs go heavily short, the historical edge favours FIIs. The signal here fades the retail position.
Honest caveat: the backtest window here is only 59 trading days. Every single day of that window retail was net-long and FII was net-short, so the signal only fires one direction. On this narrow sample the naive strategy lost money against a Nifty buy-and-hold. Need 2–5 years of history to validate — that scrape is queued.
Jamnagar Refinery (RIL)
Sentinel-2 L2A, SWIR/NIR median ratio over the tank-farm AOI (69.84–69.90°E, 22.33–22.38°N). Low ratio = metal tanks dominate (empty). High ratio = liquid/vegetation signature changes (filled).
Mundra Port (Adani Ports)
Sentinel-1 RTC, VV polarisation. Bright-pixel fraction proxies container density. P90 showed a weak positive correlation (~0.5) with ADANIPORTS monthly closes. AOI needs a tighter port-apron polygon to sharpen; v2 fix queued.
Equity curve · ₹1L starting bank (Strategy 1)
Strategy comparison
| Strategy | Trades | Hit rate | Cum. return | End equity (₹1L) |
|---|
Verdict on 59-day sample: Nifty buy-and-hold crushed every active strategy. The signal direction (fade retail) is directionally sound based on 20 years of pit folklore, but 59 days covered a persistent retail-long/FII-short regime that happened to be net-up for the index. Signal needs multi-year history and proper regime conditioning.
Data sources
- NSE participant-wise F&O OI —
archives.nseindia.com/content/nsccl/fao_participant_oi_DDMMYYYY.csvdaily after market close. Free. Covers Client/FII/DII/Pro for Future Index, Option Index, Future Stock, Option Stock. - Sentinel-2 L2A — Microsoft Planetary Computer STAC API, free. 10m resolution. Used for Jamnagar tank-farm SWIR/NIR ratio.
- Sentinel-1 RTC — Microsoft Planetary Computer STAC API. SAR radar, cloud-penetrating. Used for Mundra port container-density proxy.
- yfinance — price data for correlation (RIL.NS, ADANIPORTS.NS, ^NSEI).
Signals
- Smart Money Divergence — SHORT Nifty when Client_net > 0 AND FII_net < 0; LONG when inverted.
- Tank Activity Index (TAI) — median(B11 / B08) over Jamnagar refinery AOI. Correlates with RIL monthly closes.
- Port Density — fraction of Sentinel-1 VV pixels above -8 dB over Mundra port AOI. Correlates with ADANIPORTS monthly closes.
- NDVI Rural — median NDVI over 5 agri districts (Punjab wheat, MP soy, Maharashtra cotton, UP cane, AP rice). Maps to FMCG rural demand. Queued.
Pipeline
- Raw pulls →
/data/{fno_oi, jamnagar, mundra}/ - Signal engine →
/signals/*.py - Backtest →
/backtest/*.py - Dashboard JSON/CSV →
/dashboard/public/data/ - Static deploy → Cloudflare Pages