update peg ratio

This commit is contained in:
MuslemRahimi 2025-02-15 11:17:59 +01:00
parent 215ec87008
commit 2e5a1334e9
3 changed files with 14 additions and 6 deletions

View File

@ -688,7 +688,7 @@
defaultValue: "any", defaultValue: "any",
category: "Valuation & Ratios", category: "Valuation & Ratios",
}, },
peg: { priceEarningsToGrowthRatio: {
label: "PEG Ratio", label: "PEG Ratio",
step: [100, 10, 5, 3, 1, 0.5, 0], step: [100, 10, 5, 3, 1, 0.5, 0],
defaultCondition: "over", defaultCondition: "over",

View File

@ -1,7 +1,6 @@
<script lang="ts"> <script lang="ts">
import { Chart } from "svelte-echarts"; import { Chart } from "svelte-echarts";
import { import {
numberOfUnreadNotification,
displayCompanyName, displayCompanyName,
stockTicker, stockTicker,
coolMode, coolMode,
@ -49,6 +48,11 @@
label: "PE Ratio", label: "PE Ratio",
text: "The price-to-earnings (P/E) ratio is a valuation metric that shows how expensive a stock is relative to earnings.", text: "The price-to-earnings (P/E) ratio is a valuation metric that shows how expensive a stock is relative to earnings.",
}, },
{
propertyName: "priceEarningsToGrowthRatio",
label: "PEG Ratio",
text: "The price-to-earnings (P/E) ratio is a valuation metric that shows how expensive a stock is relative to earnings.",
},
{ {
propertyName: "priceToSalesRatio", propertyName: "priceToSalesRatio",
label: "PS Ratio", label: "PS Ratio",
@ -406,7 +410,6 @@
} }
</script> </script>
<SEO <SEO
title={`${$displayCompanyName} (${$stockTicker}) Financial Ratios and Metrics · Stocknear`} title={`${$displayCompanyName} (${$stockTicker}) Financial Ratios and Metrics · Stocknear`}
description={`Financial ratios and metrics for ${$displayCompanyName} (${$stockTicker}). Includes annual, quarterly and trailing numbers with full history and charts.`} description={`Financial ratios and metrics for ${$displayCompanyName} (${$stockTicker}). Includes annual, quarterly and trailing numbers with full history and charts.`}
@ -600,6 +603,9 @@
<option value="priceEarningsRatio" selected <option value="priceEarningsRatio" selected
>PE Ratio</option >PE Ratio</option
> >
<option value="priceEarningsToGrowthRatio" selected
>PEG Ratio</option
>
<option value="priceToSalesRatio">PS Ratio</option> <option value="priceToSalesRatio">PS Ratio</option>
<option value="priceToBookRatio">PB Ratio</option> <option value="priceToBookRatio">PB Ratio</option>
<option value="priceToFreeCashFlowsRatio" <option value="priceToFreeCashFlowsRatio"

View File

@ -240,9 +240,9 @@
> >
The PE ratio is {rawData?.priceEarningsRatio} and the forward PE The PE ratio is {rawData?.priceEarningsRatio} and the forward PE
ratio is {rawData?.forwardPE}. ratio is {rawData?.forwardPE}.
{rawData?.peg !== null {rawData?.priceEarningsToGrowthRatio !== null
? `${companyName}'s PEG ratio is ? `${companyName}'s PEG ratio is
${rawData?.peg}.` ${rawData?.priceEarningsToGrowthRatio}.`
: ""} : ""}
</p> </p>
@ -302,7 +302,9 @@
</td> </td>
<td <td
class="px-[5px] py-1.5 text-right font-semibold xs:px-2.5 xs:py-2" class="px-[5px] py-1.5 text-right font-semibold xs:px-2.5 xs:py-2"
>{rawData?.peg !== null ? rawData?.peg : "n/a"}</td >{rawData?.priceEarningsToGrowthRatio !== null
? rawData?.priceEarningsToGrowthRatio
: "n/a"}</td
> >
</tr></tbody </tr></tbody
> >