historical_valuation
Compare a stock's current P/E against its own historical annual P/E to see if valuation is high or low relative to past. Uses Yahoo Finance data for Indian equities.
Instructions
Compare an NSE/BSE-listed Indian equity's current P/E to its own historical annual P/E (fiscal-year-end price / that year's diluted EPS) over its available history (Yahoo gives ~5 years -- years_used reports the real span, never implies a longer history). Years with negative/missing EPS are excluded. Relative to the company's OWN past only -- not an absolute cheap/expensive judgment or a peer comparison.
:param symbol: ticker symbol, e.g. "RELIANCE", "TCS.NS", or "TCS.BO"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | EXPENSIVE (>80th percentile), FAIR, or CHEAP (<20th percentile) vs own history | |
| symbol | Yes | ||
| current_pe | No | ||
| percentile | No | Current P/E's percentile rank within its own historical annual P/E series | |
| years_used | Yes | Number of historical annual P/E data points used | |
| historical_pe_median | No | ||
| currency_mismatch_warning | No | Set when Yahoo's market-data and financial-statement currencies disagree for this ticker -- this whole tool (price / EPS) becomes unreliable when set. |