Nifty 50 Value-Momentum-Size Long-Short Strategy
Overview
Multi-factor investing asks whether observable stock characteristics — cheapness, past performance, and scale — help explain and predict returns beyond a single market beta. This project runs that workflow on Indian large caps: the Nifty 50 universe on the NSE, with prices and fundamentals from Yahoo Finance (*.NS tickers).
The pipeline mirrors a standard quant workflow (factor construction → Fama–MacBeth → IC/IR → long–short backtest), applied to up to fifty Nifty constituents that pass a minimum history filter.
With a broader cross-section, factor ICs and information ratios become more meaningful than in a four-stock demo, and the long–short book holds the top and bottom 20% of names each month (10 long / 10 short when 50 stocks qualify) rather than a fixed pair on each side.
Universe and data
Constituents are listed in nifty50_universe.json (NSE symbols with .NS suffix for yfinance). Daily adjusted closes are downloaded from 2015 onward, resampled to month-end prices, and filtered to names with at least five years of monthly history so 12–1 momentum is well defined.
Value uses trailing earnings yield from Yahoo fundamentals. Size uses each month when share count is available, otherwise log market cap. Momentum is 12–1: . Fundamentals are cached for 24 hours to limit API load.
Fama–MacBeth, Information Coefficients, and the Long–Short Book
Month-end prices from 2015 are the panel. A name stays in the cross-section only if it has at least five years of monthly history, so the 12–1 momentum score is defined. Value is trailing earnings yield . Size is when shares outstanding are available, otherwise log market cap. Momentum is
the twelve-month return skipping the last month. Exposures are winsorised cross-sectionally, and any single-name monthly return outside is capped before it enters a regression or a portfolio leg.
Stage 2, each month. Cross-sectional OLS of the next month’s return on the current scores,
The series is the Fama–MacBeth premium path. The -statistic reported beside a factor is the mean of divided by its standard error across months. It does not use a Shanken correction, because the scores here are characteristics, not estimated betas from a first-pass regression.
Information coefficient. For factor in month , . The information ratio is . IR measures consistency of the rank relationship. A large premium with a tiny IR means the average slope is carried by a few months.
Portfolio. The forecast uses last month’s slopes, not this month’s, so the weight does not depend on the return it is about to earn:
The book is long the top 20% of and short the bottom 20%, equal weight inside each leg, with 50% long notional and 50% short notional. On a 50-name cross-section that is 10 longs and 10 shorts. One-way turnover is charged brokerage and slippage; sell legs are charged securities transaction tax; short legs pay a monthly borrow fee. Net return subtracts that drag from gross return. The charts report both, plus drawdown, hit rate, and the stacked cost series, because a gross Sharpe that disappears net of borrow is a different result from one that does not.
How to interpret the results
With roughly fifty Nifty names, cross-sectional regressions and IC series are far more stable than in a four-stock US demo. IR magnitudes and signs should be read as descriptive, not as guaranteed live alpha.
The long–short cumulative curve reflects Indian large-cap factor premia and regime shifts (e.g. COVID, rate cycles). Compare summary metrics and drawdowns across refresh dates when yfinance data updates.
Use the Fama–MacBeth and IC time-series panels to see when factor premia or predictive correlations shift. The latest cross-section table shows current factor scores used for ranking.
What you will see in the results
Summary metrics — Cumulative return, annualised Sharpe, and maximum drawdown for the long–short strategy.
Performance charts — Cumulative return and drawdown paths, plus monthly long–short returns.
Factor diagnostics — Information ratios and monthly IC series for Momentum, Size, and Value.
Fama–MacBeth premia — Time series of monthly cross-sectional coefficients and t-statistics.
Friction breakdown — Monthly trading and borrow cost drag stacked by rebalance.
Cross-section snapshot — Latest factor exposures by ticker.
| Universe | Nifty 50 · 49 stocks · NSE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Study period | 2015-01-31 → 2026-11-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Portfolio rule | Long 10 / Short 10 · β lag 1m | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data source | yfinance (NSE .NS) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data as of | 2026-11-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constituents |
|
| Commission (one-way) | 12 bps + GST |
| Slippage (one-way) | 8 bps |
| STT on sells | 10 bps |
| Short borrow (annual) | 8.000% |
| Risk-free (annual proxy) | 6.500% |
| Avg monthly turnover | 74.200% |
| Metric | Gross | Net |
|---|---|---|
| Cumulative | -13.300% | -66.600% |
| Sharpe | -0.137 | -1.309 |
| Max DD | -25.600% | -65.200% |
| Hit rate | 48.100% | 32.600% |
| Ann. vol | 7.600% | 7.500% |
Cumulative friction drag (trading + borrow): 95.000%
| Factor | IR |
|---|---|
| Momentum | 0.067 |
| Size | -0.382 |
| Value | -0.060 |
| Ticker | Value (z) | Momentum (z) | Size (z) |
|---|---|---|---|
| ADANIENT | -0.906 | 1.354 | 0.556 |
| ADANIPORTS | -0.473 | 1.788 | 0.634 |
| APOLLOHOSP | -0.880 | 0.731 | -1.223 |
| ASIANPAINT | -0.822 | 0.145 | -0.234 |
| AXISBANK | 0.763 | 0.314 | 0.514 |
| BAJAJ-AUTO | -0.112 | 1.764 | 0.153 |
| BAJAJFINSV | -0.348 | -0.667 | 0.041 |
| BAJFINANCE | -0.475 | -0.098 | 1.172 |
| BEL | -0.769 | -0.153 | 0.077 |
| BHARTIARTL | -0.704 | -0.452 | 2.067 |
| BPCL | 2.299 | -0.298 | -1.055 |
| BRITANNIA | -0.728 | -0.598 | -1.236 |
| CIPLA | -0.656 | -0.221 | -1.335 |
| COALINDIA | 2.685 | 1.336 | -0.079 |
| DRREDDY | -0.695 | 0.556 | -1.418 |
| EICHERMOT | -0.589 | 0.526 | -0.466 |
| GRASIM | -0.599 | 0.710 | -0.383 |
| HCLTECH | 0.065 | -0.680 | 0.299 |
| HDFCBANK | 0.315 | -1.259 | 2.064 |
| HDFCLIFE | -0.949 | -1.348 | -1.276 |
| HEROMOTOCO | 0.272 | 0.211 | -1.388 |
| HINDALCO | 1.352 | 1.033 | -0.373 |
| HINDUNILVR | -0.744 | -0.985 | 0.714 |
| INDUSINDBK | -0.148 | 1.147 | -1.773 |
| INFY | 0.581 | -1.523 | 0.559 |
| ITC | 0.188 | -1.698 | 0.296 |
| JSWSTEEL | 1.209 | 0.610 | 0.188 |
| KOTAKBANK | -0.077 | 0.304 | 0.636 |
| LT | -0.479 | -0.002 | 0.961 |
| M&M | 0.143 | -0.518 | 0.403 |
| MARUTI | -0.410 | -1.158 | 0.492 |
| NESTLEIND | -0.920 | 0.583 | -0.094 |
| NTPC | 1.525 | 0.246 | 0.207 |
| ONGC | 3.333 | -0.066 | 0.027 |
| POWERGRID | 0.636 | -0.049 | -0.173 |
| RELIANCE | -0.048 | -0.829 | 2.359 |
| SBILIFE | -0.989 | -0.436 | -0.676 |
| SBIN | 1.340 | 0.594 | 1.753 |
| SHRIRAMFIN | 0.460 | 2.046 | -0.236 |
| SUNPHARMA | -0.688 | 0.841 | 0.709 |
| TATACONSUM | -0.954 | -0.713 | -1.550 |
| TMPV | — | -1.452 | -1.395 |
| TATASTEEL | 0.088 | 0.512 | -0.233 |
| TCS | 0.378 | -1.460 | 1.484 |
| TECHM | -0.354 | 0.921 | -0.880 |
| TITAN | -0.941 | 1.694 | 0.608 |
| TRENT | -1.047 | -1.731 | -0.966 |
| ULTRACEMCO | -0.685 | -0.038 | 0.264 |
| WIPRO | 0.557 | -1.534 | -0.796 |
Conclusion
The long–short book is a direct implementation of lagged Fama–MacBeth slopes on value, 12–1 momentum, and size, inside a Nifty 50 cross-section of names with enough history to define the momentum score. Gross and net paths differ by turnover, securities transaction tax, and borrow; the cost stack is part of the result, not a footnote.
Read the information ratio next to the average premium. A premium that is large only because a few months dominate will show a weak IR, and that is the more relevant summary for a monthly rebalanced book. Yahoo Finance fundamentals and a current constituent list are not a point-in-time NSE research database. The page documents the estimator; it is not a recommendation to run the short leg.