From 092c4be4a479d359530ada65e2373548c39b06ac Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Wed, 2 Apr 2025 01:16:38 +0200 Subject: [PATCH] indicator fixes --- src/lib/components/Table/Table.svelte | 2 +- src/routes/stock-screener/+page.svelte | 12 +++++------ .../financials/cash-flow/+page.svelte | 16 +++++++-------- .../[tickerID]/financials/ratios/+page.svelte | 14 ++++++------- .../stocks/[tickerID]/statistics/+page.svelte | 20 +++++++++---------- src/routes/watchlist/stocks/+page.svelte | 2 +- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/lib/components/Table/Table.svelte b/src/lib/components/Table/Table.svelte index e351a47f..3c2b6d81 100644 --- a/src/lib/components/Table/Table.svelte +++ b/src/lib/components/Table/Table.svelte @@ -125,7 +125,7 @@ { name: "FCF Yield", rule: "freeCashFlowYield", type: "percent" }, { name: "Employees", rule: "employees", type: "decimal" }, { name: "Debt Ratio", rule: "debtRatio", type: "float" }, - { name: "Debt / Equity", rule: "debtEquityRatio", type: "int" }, + { name: "Debt / Equity", rule: "debtToEquityRatio", type: "int" }, { name: "Profit Margin", rule: "netProfitMargin", type: "percent" }, { name: "FTD Shares", rule: "failToDeliver", type: "int" }, { name: "Relative FTD", rule: "relativeFTD", type: "percent" }, diff --git a/src/routes/stock-screener/+page.svelte b/src/routes/stock-screener/+page.svelte index 3fcc7594..ee0cedc7 100644 --- a/src/routes/stock-screener/+page.svelte +++ b/src/routes/stock-screener/+page.svelte @@ -690,7 +690,7 @@ defaultValue: "any", category: "Valuation & Ratios", }, - priceEarningsToGrowthRatio: { + priceToEarningsGrowthRatio: { label: "PEG Ratio", step: [100, 10, 5, 3, 1, 0.5, 0], defaultCondition: "over", @@ -777,7 +777,7 @@ defaultCondition: "over", defaultValue: "any", }, - debtEquityRatio: { + debtToEquityRatio: { label: "Debt / Equity", step: [50, 40, 30, 20, 10, 5, 1], @@ -880,7 +880,7 @@ defaultValue: "any", category: "Valuation & Ratios", }, - priceToFreeCashFlowsRatio: { + priceToFreeCashFlowRatio: { label: "Price / FCF", step: [50, 20, 10, 5, 1, 0, -1, -5, -10, -20, -50], @@ -888,7 +888,7 @@ defaultValue: "any", category: "Cash Flow", }, - interestCoverage: { + interestCoverageRatio: { label: "Interest Coverage", step: [10, 5, 3, 2, 1, 0], @@ -1058,7 +1058,7 @@ defaultValue: "any", category: "Valuation & Ratios", }, - priceEarningsRatio: { + priceToEarningsRatio: { label: "Price / Earnings", step: [100, 50, 20, 10, 5, 0], @@ -2238,7 +2238,7 @@ const handleKeyDown = (event) => { name: "Undervalued Stocks", rules: [ { condition: "under", name: "marketCap", value: "100M" }, - { condition: "over", name: "debtEquityRatio", value: 1 }, + { condition: "over", name: "debtToEquityRatio", value: 1 }, { condition: "over", name: "debtRatio", value: -0.5 }, { condition: "over", name: "eps", value: 0 }, ], diff --git a/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte b/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte index ade1e8ab..b6e3ca75 100644 --- a/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte +++ b/src/routes/stocks/[tickerID]/financials/cash-flow/+page.svelte @@ -109,19 +109,19 @@ text: "Sales Maturities of Investments signifies the selling or maturity of financial assets like stocks or bonds by a company. It represents an inflow of cash resulting from these investment activities.", }, { - propertyName: "otherInvestingActivites", + propertyName: "otherInvestingActivities", growthPropertyName: "growthOtherInvestingActivites", label: "Other Investing Acitivies", text: "Other investing activities are investing activities that do not belong to any of the categories we mentioned so far.", }, { - propertyName: "netCashUsedForInvestingActivites", + propertyName: "netCashProvidedByInvestingActivities", growthPropertyName: "growthNetCashUsedForInvestingActivites", label: "Investing Cash Flow", text: "Investing cash flow is the total change in cash from buying and selling investments and long-term assets.", }, { - propertyName: "debtRepayment", + propertyName: "netDebtIssuance", growthPropertyName: "growthDebtRepayment", label: "Debt Repayment", text: "Debt Repayment is the process of paying off loans or debt obligations. It represents an outflow of cash as the company reduces its outstanding debt.", @@ -133,20 +133,20 @@ text: "The cash gained from issuing shares, or cash spent on repurchasing shares via share buybacks. A positive number implies that the company issued more shares than it repurchased. A negative number implies that the company bought back shares.", }, { - propertyName: "dividendsPaid", + propertyName: "netDividendsPaid", growthPropertyName: "growthDividendsPaid", label: "Dividend Paid", text: "The total amount paid out as cash dividends to shareholders.", }, { - propertyName: "otherFinancingActivites", - growthPropertyName: "growthOtherFinancingActivites", + propertyName: "otherFinancingActivities", + growthPropertyName: "growthOtherFinancingActivities", label: "Other Financial Acitivies", text: "Other financial activities includes miscellaneous financial transactions beyond regular operations that impact a company's cash flow.", }, { - propertyName: "netCashUsedProvidedByFinancingActivities", - growthPropertyName: "growthNetCashUsedProvidedByFinancingActivities", + propertyName: "netCashProvidedByFinancingActivities", + growthPropertyName: "growthNetCashProvidedByFinancingActivities", label: "Financial Cash Flow", text: "Financing cash flow is the total change in cash through financing activities. This includes dividend payments, share issuance and repurchases, changes in debt levels and others.", }, diff --git a/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte b/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte index 64232f61..47c5d13c 100644 --- a/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte +++ b/src/routes/stocks/[tickerID]/financials/ratios/+page.svelte @@ -37,12 +37,12 @@ const statementConfig = [ { - propertyName: "priceEarningsRatio", + propertyName: "priceToEarningsRatio", 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.", }, { - propertyName: "priceEarningsToGrowthRatio", + propertyName: "priceToEarningsGrowthRatio", 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.", }, @@ -57,12 +57,12 @@ text: "The price-to-book (P/B) ratio measures a stock's price relative to book value. Book value is also called Shareholders' equity.", }, { - propertyName: "priceToFreeCashFlowsRatio", + propertyName: "priceToFreeCashFlowRatio", label: "P/FCF Ratio", text: "The price to free cash flow (P/FCF) ratio is similar to the P/E ratio, except it uses free cash flow instead of accounting earnings.", }, { - propertyName: "priceToOperatingCashFlowsRatio", + propertyName: "priceToOperatingCashFlowRatio", label: "P/OCF Ratio", text: "The price to operating cash flow (P/OCF) ratio measures the price of a stock relative to operating cash flow.", }, @@ -72,7 +72,7 @@ text: "The operating cash flow to sales (OCF/S) Ratio assesses how well sales convert to cash. It's the operating cash flow divided by net sales, indicating cash efficiency.", }, { - propertyName: "debtEquityRatio", + propertyName: "debtToEquityRatio", label: "Debt / Equity Ratio", text: "The debt-to-equity ratio measures a company's debt levels relative to its shareholders' equity or book value. A high ratio implies that a company has a lot of debt.", }, @@ -92,7 +92,7 @@ text: "The asset turnover ratio measures the amount of sales relative to a company's assets. It indicates how efficiently the company uses its assets to generate revenue.", }, { - propertyName: "interestCoverage", + propertyName: "interestCoverageRatio", label: "Interest Coverage", text: "The interest coverage ratio is a measure of the ability of a company to pay its interest expenses. It is calculated by dividing the company's Earnings Before Interest and Taxes (EBIT) by its interest expenses.", }, @@ -117,7 +117,7 @@ text: "The dividend yield is how much a stock pays in dividends each year, as a percentage of the stock price.", }, { - propertyName: "payoutRatio", + propertyName: "dividendPayoutRatio", label: "Payout Ratio", text: "The dividend payout ratio is the percentage of a company's profits that are paid out as dividends. A high ratio implies that the dividend payments may not be sustainable.", }, diff --git a/src/routes/stocks/[tickerID]/statistics/+page.svelte b/src/routes/stocks/[tickerID]/statistics/+page.svelte index 84b56c08..3b4e50ef 100644 --- a/src/routes/stocks/[tickerID]/statistics/+page.svelte +++ b/src/routes/stocks/[tickerID]/statistics/+page.svelte @@ -189,11 +189,11 @@

Valuation Ratios

- The PE ratio is {rawData?.priceEarningsRatio} and the forward PE + The PE ratio is {rawData?.priceToEarningsRatio} and the forward PE ratio is {rawData?.forwardPE}. - {rawData?.priceEarningsToGrowthRatio !== null + {rawData?.priceToEarningsGrowthRatio !== null ? `${companyName}'s PEG ratio is - ${rawData?.priceEarningsToGrowthRatio}.` + ${rawData?.priceToEarningsGrowthRatio}.` : ""}

@@ -207,7 +207,7 @@ >PE Ratio {rawData?.priceEarningsRatio}{rawData?.priceToEarningsRatio} P/FCF Ratio {rawData?.priceToFreeCashFlowsRatio}{rawData?.priceToFreeCashFlowRatio} PEG Ratio {rawData?.priceEarningsToGrowthRatio !== null - ? rawData?.priceEarningsToGrowthRatio + >{rawData?.priceToEarningsGrowthRatio !== null + ? rawData?.priceToEarningsGrowthRatio : "n/a"} Financial Position

The company has a current ratio of {rawData?.currentRatio}, with - a Debt / Equity ratio of {rawData?.debtEquityRatio}. + a Debt / Equity ratio of {rawData?.debtToEquityRatio}.

Debt / Equity{rawData?.debtToEquityRatio}Interest Coverage{rawData?.interestCoverageRatio} diff --git a/src/routes/watchlist/stocks/+page.svelte b/src/routes/watchlist/stocks/+page.svelte index 8a8918d5..196e6717 100644 --- a/src/routes/watchlist/stocks/+page.svelte +++ b/src/routes/watchlist/stocks/+page.svelte @@ -119,7 +119,7 @@ { name: "FCF Yield", rule: "freeCashFlowYield", type: "percent" }, { name: "Employees", rule: "employees", type: "int" }, { name: "Debt Ratio", rule: "debtRatio", type: "float" }, - { name: "Debt / Equity", rule: "debtEquityRatio", type: "int" }, + { name: "Debt / Equity", rule: "debtToEquityRatio", type: "int" }, { name: "Profit Margin", rule: "netProfitMargin", type: "percent" }, { name: "FTD Shares", rule: "failToDeliver", type: "int" }, { name: "Interest Income", rule: "interestIncome", type: "int" },
{rawData?.debtEquityRatio}
{rawData?.interestCoverage}