Portfolio Lab
Pick a basket of NSE stocks once: weigh it to a stated objective, follow what it has done since a chosen date against NIFTY 50, or build a mix and track it in one step.
What the Portfolio Lab does
Build a mix
Choose 3 to 30 stocks and an objective: the best return per unit of risk, the smallest swings, equal risk from each stock, or the smallest tail loss. The lab returns the weight for each stock and the number of shares for your amount.
Track a portfolio
Give a start date and an amount, and see what the basket would be worth today, day by day, beside the same amount in NIFTY 50.
See the turbulence ahead
Each stock's forecast volatility for the coming month against its past year, so the calm and the rough holdings in a mix are plain.
A worked example: ten large caps, weighed for the best return per unit of risk
Ten of the largest NSE companies, given to the optimiser with one instruction: find the weights with the highest Sharpe ratio, with no stock above 30%. It kept 4 of the ten, on 745 sessions of prices from 4 Dec 2023 to 1 Dec 2026.
| Stock | Weight | Weight, drawn |
|---|---|---|
| ETERNAL | 30.0% | |
| HALHindustan Aeronautics | 30.0% | |
| ICICIBANKICICI Bank | 30.0% | |
| TITANTitan Company | 10.0% | |
| RELIANCEReliance Industries | 0.0% | |
| TCSTata Consultancy Services | 0.0% | |
| HDFCBANKHDFC Bank | 0.0% | |
| INFYInfosys | 0.0% | |
| ITC | 0.0% | |
| LTLarsen & Toubro | 0.0% |
Expected return
30%
equal weights: 9.4%
Volatility
20.3%
equal weights: 14.6%
Sharpe ratio
1.15
equal weights: 0.2
Stocks held
4 of 10
the rest got no weight
Expected return and volatility are yearly figures estimated from the prices over that period, and the Sharpe ratio is the return above a 6.5% safe rate for each unit of volatility. They describe how these stocks behaved together in the past; a mix built on them is a starting point to examine, not a forecast.
Turbulence radar
Which stocks are expected to swing least next month, and which to swing much more than over the past year.
Continue exploring
Portfolio construction and tracking
Weights for a basket of NSE stocks at maximum Sharpe ratio, minimum volatility, risk parity or lowest tail loss, the record of any basket against NIFTY 50 from a chosen date, and month-ahead volatility forecasts.