This tool analyses the valuation of the Nifty Midcap 150 index — the 150 midcap companies ranked just below Nifty 100 — using historical P/E and P/B data going back to 2016.
It answers: Is the Nifty Midcap 150 cheap or expensive relative to its own history? And when it was cheap historically, how well did buying it work?
Instead of a single median, we compute a weighted reference that blends three time horizons:
If any window is unavailable (e.g. index data starts 2016, so 10yr window is partial), weights redistribute proportionally.
The current P/E (or P/B) is expressed as a percentage of the weighted reference. The bands are:
The neutral band is intentionally asymmetric (90–105%) to account for the natural positive drift of index earnings over time.
The current value is also ranked as a percentile within its 5-year winsorised history (outliers clipped at 1st–99th percentile). This is critical for NMid150 — the COVID-era PE spike reached 813x, which would completely distort unwinsorised ranks. After winsorisation the outlier is capped and the rank becomes meaningful. If the primary and secondary signals disagree, a divergence flag appears.
Each metric card shows a small badge comparing the current value to the value approximately 3 months ago (63 trading days back). This helps identify whether valuation pressure is rising or easing.
This tab shows how the rolling medians themselves have changed over time — letting you spot structural re-rating. For example, if the 5yr median P/E has risen from 25× (2019) to 35× (2024), paying 34× today may not be as expensive as it appears on a long-horizon basis.
Annual frequency shows year-end snapshots. Quarterly shows March/June/September/December end-of-quarter values.
A signal fires when the chosen metric (P/E, P/B, or both simultaneously) enters a ±1% tolerance band around the threshold. For example, with P/E threshold at 90%:
For each signal date, we compute:
If the target date hasn't been reached yet, the return is marked OPEN (partial, annualised).
Green = positive signal return | Yellow = open | Red = negative return
Since Nifty Midcap 150 doesn't publish EPS directly, we derive it as: EPS = Index Value ÷ P/E.
The TURNING flag appears when EPS has risen both 90 days and 180 days ago relative to today, but the year-over-year growth is still ≤5% — indicating an early-cycle inflection that hasn't yet shown up in the annual numbers.
Historical data (2016–Apr 2026) is embedded in this file. To fetch more recent data, deploy the included Google Apps Script and paste its URL in the scriptUrl config at the top of the JavaScript.
The tool works fully offline — live data only fills the gap between the embedded history end date and today.