diff --git a/src/routes/stock-screener/+page.svelte b/src/routes/stock-screener/+page.svelte index 250d2622..de8c6957 100644 --- a/src/routes/stock-screener/+page.svelte +++ b/src/routes/stock-screener/+page.svelte @@ -167,6 +167,9 @@ const allRules = { netProfitMargin: { label: 'Profit Margin', step: ['80%','60%','50%','20%','10%','5%','1%','0.5%'], category: 'fund', defaultCondition: 'over', defaultValue: '1%' }, pretaxProfitMargin: { label: 'Pretax Margin', step: ['80%','60%','50%','20%','10%','5%','1%','0.5%'], category: 'fund', defaultCondition: 'over', defaultValue: '1%' }, ebitdaMargin: { label: 'EBITDA Margin', step: ['80%','60%','50%','20%','10%','5%','1%','0.5%'], category: 'fund', defaultCondition: 'over', defaultValue: '1%' }, + longTermDebtToCapitalization: { label: 'Long Term Debt / Market Cap', step: ['80%','60%','50%','30%', '20%','10%','5%','1%','0.5%'], category: 'fund', defaultCondition: 'over', defaultValue: '1%' }, + shortTermDebtToCapitalization: { label: 'Short Term Debt / Market Cap', step: ['80%','60%','50%','30%', '20%','10%','5%','1%','0.5%'], category: 'fund', defaultCondition: 'over', defaultValue: '1%' }, + interestIncomeToCapitalization: { label: 'Interest Income / Market Cap', step: ['80%','60%','50%','30%', '20%','10%','5%','1%','0.5%'], category: 'fund', defaultCondition: 'over', defaultValue: '1%' }, assetTurnover: { label: 'Asset Turnover', step: [5,3,2,1,0], category: 'fund', defaultCondition: 'over', defaultValue: 0 }, earningsYield: { label: 'Earnings Yield', step: ['20%','15%','10%','5%','0%'], category: 'fund', defaultCondition: 'over', defaultValue: '0%' }, freeCashFlowYield: { label: 'FCF Yield', step: ['20%','15%','10%','5%','0%'], category: 'fund', defaultCondition: 'over', defaultValue: '0%' }, @@ -835,7 +838,17 @@ async function popularStrategy(state: string) { { condition: "over", name: "freeCashFlowPerShare", value: 2 }, { condition: "over", name: "freeCashFlowMargin", value: '50%' } ] - } + }, + halalStocks: { // New Strategy Added + name: 'Halal Stocks', + rules: [ + { condition: "under", name: "shortTermDebtToCapitalization", value: "30%" }, + { condition: "under", name: "interestIncomeToCapitalization", value: "30%" }, + { condition: "under", name: "longTermDebtToCapitalization", value: "30%" }, + { condition: "under", name: "interestDebtPerShare", value: 1 }, + { condition: "under", name: "debtRatio", value: 0 } + ] + } }; const strategy = strategies[state]; @@ -969,6 +982,9 @@ function handleInput(event) { popularStrategy('strongCashFlow')} class="cursor-pointer hover:bg-[#27272A]"> Strong Cash Flow + + popularStrategy('halalStocks')} class="cursor-pointer hover:bg-[#27272A]"> + Halal Stocks @@ -1085,7 +1101,7 @@ function handleInput(event) {
- {row?.label?.replace('[%]', '')} + {row?.label?.length > 20 ? row?.label?.slice(0,20)?.replace('[%]', '') + '...' : row?.label?.replace('[%]', '')}