

Kotak
Stockshaala
Chapter 2 | 2 min read
Combining Multiple Conditions in a Single Prompt
One of the biggest strengths of AI stock screening is that you don’t need to run filters one by one.
You can combine multiple conditions into a single prompt - fundamentals and technicals together.
The result? A faster process and a shortlist that already fits your strategy.
Why Combine Conditions?
- In traditional screeners, you might first filter by fundamentals (low debt, high ROE), export the list, then apply technical filters (RSI, moving averages).
- With AI, you can merge both into one prompt:
“Show me IT stocks with ROE above 15%, debt-to-equity below 0.5, and trading above their 200-day moving average.”
This way, AI handles everything at once.
Example Prompts
Here are some combined prompts you might use in the Indian market:
- “List auto stocks under ₹500 with profit growth for 3 years, RSI below 30, and trading volume above 10-day average.”
- “Find banking companies with NPAs under 2%, ROE above 12%, and price above 200-DMA.”
- “Show FMCG stocks with P/E under 20, consistent dividend history, and MACD showing bullish crossover.”
Notice how each example blends fundamental filters (profit growth, debt, P/E, NPAs) with technical signals (RSI, moving averages, MACD).
How to Write Combined Prompts Clearly
- Use AND: Tells AI that all conditions must apply. “ROE > 15 AND Price < ₹1,000 AND RSI < 30.”
- Limit to 3–4 conditions at a time. Too many in one line can confuse AI.
- Add sector or index filters to narrow the universe: “Nifty 100,” “mid-cap IT,” “large-cap pharma.”
- Refine step by step: If results are too broad, follow up with: “Now remove companies with promoter pledges.”
Why This is Useful
By combining conditions:
- You get shorter, sharper lists.
- You save time switching between separate filters.
- You avoid chasing stocks that look good on one side but weak on another.
For example, a stock may look cheap on fundamentals (low P/E) but be in a downtrend technically. A combined prompt avoids such mismatches.
Sample Workflow
Let’s say you’re exploring opportunities in the Nifty 500:
- Prompt: “Find Nifty 500 stocks with ROE above 15%, low debt, and price above 200-DMA.”
- Refine: “Now filter only those with sales growth in the last 3 years.”
- Narrow: “Remove companies with pledge ratio above 10%.”
This approach layers multiple rules into a single AI-driven workflow, leaving you with a strong, focused shortlist.
Final Takeaway
Combining multiple conditions in a single AI prompt gives you a complete, 360° filter.
Instead of juggling separate lists, you get companies that meet both fundamental and technical rules in one shot.
The key is precision: use numbers, keep prompts simple, and refine step by step.
Done right, this approach saves time and makes your shortlists far more reliable.
Recommended Courses for you
Beyond Stockshaala
Discover our extensive knowledge center
Learn, Invest, and Grow with Kotak Videos
Explore our comprehensive video library that blends expert market insights with Kotak's innovative financial solutions to support your goals.














