From d626fb0dca9baf00f853a6a583fc2203c8434ca7 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 22 Sep 2024 12:51:46 +0200 Subject: [PATCH] add relative ftd --- src/routes/stock-screener/+page.svelte | 4 +++- src/routes/stocks/[tickerID]/options/+page.svelte | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/stock-screener/+page.svelte b/src/routes/stock-screener/+page.svelte index c64c411e..08e23e05 100644 --- a/src/routes/stock-screener/+page.svelte +++ b/src/routes/stock-screener/+page.svelte @@ -139,7 +139,9 @@ const allRules = { shortRatio: { label: 'Short Ratio', step: [10,5,3,2,1,0], category: 'fund', defaultCondition: 'over', defaultValue: '0' }, shortFloatPercent: { label: 'Short % Float', step: ['50%','30%','20%','10%','5%','1%','0%'], category:'fund', defaultCondition: 'over', defaultValue: '0%' }, shortOutStandingPercent: { label: 'Short % Shares', step: ['50%','30%','20%','10%','5%','1%','0%'], category:'fund', defaultCondition: 'over', defaultValue: '0%' }, - failToDeliver: { label: 'Fail to Deliver', step: ['1M','500K','200K','100K','50K','10K','1K'], category: 'fund', defaultCondition: 'over', defaultValue: '1K' }, + failToDeliver: { label: 'Fail to Deliver (FTD)', step: ['1M','500K','200K','100K','50K','10K','1K'], category: 'fund', defaultCondition: 'over', defaultValue: '1K' }, + relativeFTD: { label: 'Relative FTD', step: ['300%','200%','100%','50%','20%','10%','0%'], category: 'fund', defaultCondition: 'over', defaultValue: '50%' }, + freeCashFlow: { label: 'Free Cash Flow', step: ['50B','10B','1B','100M','10M','1M',0], category: 'fund', defaultCondition: 'over', defaultValue: '0' }, operatingCashFlow: { label: 'Operating Cash Flow', step: ['50B','10B','1B','100M','10M','1M',0], category: 'fund', defaultCondition: 'over', defaultValue: '0' }, operatingCashFlowPerShare: { label: 'Operating Cash Flow / Share', step: [50,40,30,10,5,1], category: 'fund', defaultCondition: 'over', defaultValue: '1' }, diff --git a/src/routes/stocks/[tickerID]/options/+page.svelte b/src/routes/stocks/[tickerID]/options/+page.svelte index 70c1a600..df6e773a 100644 --- a/src/routes/stocks/[tickerID]/options/+page.svelte +++ b/src/routes/stocks/[tickerID]/options/+page.svelte @@ -60,7 +60,6 @@ let activeIdx = 0; let rawData = data?.getOptionsHistoricalData; let optionList = rawData?.slice(0,30); let optionChainList = data?.getOptionsChainData?.at(0)?.chain || []; - let totalVolume //= data?.getOptionsPlotData?.totalVolume;