indicator fixes
This commit is contained in:
parent
a1f71dbff5
commit
092c4be4a4
@ -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" },
|
||||
|
||||
@ -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 },
|
||||
],
|
||||
|
||||
@ -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.",
|
||||
},
|
||||
|
||||
@ -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.",
|
||||
},
|
||||
|
||||
@ -189,11 +189,11 @@
|
||||
<div>
|
||||
<h2 class="mb-2 px-0.5 text-xl font-bold">Valuation Ratios</h2>
|
||||
<p class="mb-4 px-0.5 xs:text-[1.05rem] lg:leading-normal">
|
||||
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}.`
|
||||
: ""}
|
||||
</p>
|
||||
|
||||
@ -207,7 +207,7 @@
|
||||
><span>PE Ratio</span>
|
||||
</td>
|
||||
<td class="px-[5px] py-1.5 text-right xs:px-2.5 xs:py-2"
|
||||
>{rawData?.priceEarningsRatio}</td
|
||||
>{rawData?.priceToEarningsRatio}</td
|
||||
>
|
||||
</tr><tr
|
||||
class="dark:sm:hover:bg-[#245073]/10 odd:bg-[#F6F7F8] dark:odd:bg-odd"
|
||||
@ -247,7 +247,7 @@
|
||||
><span>P/FCF Ratio</span>
|
||||
</td>
|
||||
<td class="px-[5px] py-1.5 text-right xs:px-2.5 xs:py-2"
|
||||
>{rawData?.priceToFreeCashFlowsRatio}</td
|
||||
>{rawData?.priceToFreeCashFlowRatio}</td
|
||||
>
|
||||
</tr><tr
|
||||
class="dark:sm:hover:bg-[#245073]/10 odd:bg-[#F6F7F8] dark:odd:bg-odd"
|
||||
@ -255,8 +255,8 @@
|
||||
><span>PEG Ratio</span>
|
||||
</td>
|
||||
<td class="px-[5px] py-1.5 text-right xs:px-2.5 xs:py-2"
|
||||
>{rawData?.priceEarningsToGrowthRatio !== null
|
||||
? rawData?.priceEarningsToGrowthRatio
|
||||
>{rawData?.priceToEarningsGrowthRatio !== null
|
||||
? rawData?.priceToEarningsGrowthRatio
|
||||
: "n/a"}</td
|
||||
>
|
||||
</tr></tbody
|
||||
@ -335,7 +335,7 @@
|
||||
<h2 class="mb-2 px-0.5 text-xl font-bold">Financial Position</h2>
|
||||
<p class="mb-4 px-0.5 xs:text-[1.05rem] lg:leading-normal">
|
||||
The company has a current ratio of {rawData?.currentRatio}, with
|
||||
a Debt / Equity ratio of {rawData?.debtEquityRatio}.
|
||||
a Debt / Equity ratio of {rawData?.debtToEquityRatio}.
|
||||
</p>
|
||||
<table
|
||||
class="w-full bg-white dark:bg-table border border-gray-300 dark:border-gray-800"
|
||||
@ -363,7 +363,7 @@
|
||||
><span>Debt / Equity</span>
|
||||
</td>
|
||||
<td class="px-[5px] py-1.5 text-right xs:px-2.5 xs:py-2"
|
||||
>{rawData?.debtEquityRatio}</td
|
||||
>{rawData?.debtToEquityRatio}</td
|
||||
>
|
||||
</tr><tr
|
||||
class="dark:sm:hover:bg-[#245073]/10 odd:bg-[#F6F7F8] dark:odd:bg-odd"
|
||||
@ -390,7 +390,7 @@
|
||||
><span>Interest Coverage</span>
|
||||
</td>
|
||||
<td class="px-[5px] py-1.5 text-right xs:px-2.5 xs:py-2"
|
||||
>{rawData?.interestCoverage}</td
|
||||
>{rawData?.interestCoverageRatio}</td
|
||||
>
|
||||
</tr></tbody
|
||||
>
|
||||
|
||||
@ -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" },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user