kaustubh

Generation

generate functionThu, 26 Jan 2023

debt=0 AND EPS >30 Vwap Expected quarterly EPS > (1.25*EPS latest quarter) AND Average Earnings 5Year >24 AND Current price > High price * 0.85 AND Market Capitalization > 500 debt < 4 AND Current price > 30 AND Price to Earning < 20 AND Price to Earning > 10 AND Profit after tax latest quarter > 1 AND Market Capitalization > 100

function calcDebt(debt, eps, vwap, expectedQuarterlyEps, averageEarnings5, currentPrice, highPrice, marketCap, priceToEarning, profitAfterTax) { // Return the value of debt if the following criteria is true if ( debt === 0 && eps > 30 && vwap > 0 && expectedQuarterlyEps > (1.25*eps) && averageEarnings5 > 24 && currentPrice > (highPrice * 0.85) && marketCap > 500 ) { return debt; } else if ( debt < 4 && currentPrice > 30 && priceToEarning < 20 && priceToEarning > 10 && profitAfterTax > 1 && marketCap > 100 ) { return debt; } else { return 0; } }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant