haribotagada

Historical PE ratio vs median

The Trailing Twelve-Month Price-to-Earnings (TTM P/E) Ratio vs. Median Value Indicator is a financial analytical tool designed to assess the current valuation of a stock or index in comparison to its historical norm. This is achieved by calculating the P/E ratio using the sum of the entity's earnings per share (EPS) over the past twelve months and dividing it by its current share price. The resulting TTM P/E ratio is then compared against the median P/E ratio calculated over a specified historical period.

The median P/E ratio serves as a benchmark, representing the midpoint of the entity's valuation over the selected timeframe, thus smoothing out short-term volatility and anomalies. By comparing the current TTM P/E ratio to this median, the indicator provides a relative measure of whether the stock or index is currently overvalued, undervalued, or trading at its historical valuation norms.
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?