Every weekday morning, my trading bot faces the same problem: the Nifty 100 has 100 stocks, and it can't study all of them. It needs a quick way to ask, "Which stocks are actually doing something right now?"
That job belongs to the screener. In software terms, it's a filter at the front of a pipeline. It takes 100 rows in and passes a short list to the next step. This post explains how it works, using one example.
A note on the example: the numbers below are an illustration I made up to show the maths. They are not a real trading day, and they are not a recommendation.
What is "screening"?
A screener is a set of simple rules for narrowing a big list. It doesn't judge whether a stock is good. It only decides which stocks deserve a closer look.
My screener runs at 09:35 IST, twenty minutes after the market opens at 09:15. It uses two questions.
Question 1: Is the stock up? It compares the latest price with yesterday's closing price. To pass, the stock must be up at least 0.5%.
Question 2: Is it unusually busy? This one needs a little explaining.
What is volume, and what is "volume pace"?
Volume is the number of shares traded. If 2,000,000 shares of a company change hands in a day, its volume is 2 million.
A big price move on very little trading can be noise. A big move with lots of trading means many people are acting on something. So I want to know whether a stock is trading more than usual.
There's a catch. At 09:35 only a small part of the day has passed, so a stock will always look quiet compared with a full day. Instead of comparing against a full day, the bot compares against the volume you'd normally expect by this time of day. I call this the volume pace.
Software analogy: it's like comparing requests per second against the usual rate for this hour, instead of against the daily total. A server handling 500 requests at 9:35 isn't quiet if it normally handles 100 by then.
A volume pace of 1.0 means "normal", 2.0 means "twice as fast as usual", and 3.8 means "nearly four times as fast". To pass, a stock needs a pace of at least 1.0.
An example: TCS on an illustration day
Take Tata Consultancy Services (TCS). Say its usual volume is about 2 million shares a day.
- At 09:35, 20 of the market's 375 trading minutes have passed. That's about 5% of the day.
- So the bot expects roughly 108,000 shares to have traded by now (5% of 2 million).
- Suppose 405,000 shares have actually traded.
- Volume pace = 405,000 ÷ 108,000 ≈ 3.8.
- The price is Rs 3,340, up 2.8%.
TCS passes both questions. It's up more than 0.5% and trading at nearly four times its normal pace.
Ranking the survivors
On this illustration day, 11 stocks pass both tests. The bot only keeps the top 10, so it needs a way to rank them. The score is:
score = % price move × volume pace
The volume pace is capped at 3 in the score. Without that cap, a freak volume number could beat a stock with a solid price move. For TCS: 2.8 × 3 = 8.4. That ranks it first.
The funnel for the illustration day looks like this:
| Step | Stocks left |
|---|---|
| Nifty 100 | 100 |
| Not up at least 0.5% (dropped) | 86 dropped |
| Up, but volume too low (dropped) | 3 dropped |
| Passed both tests | 11 |
| Kept (top 10 by score) | 10 |
The stock ranked 11th, Axis Bank, passed both tests but was cut by the top-10 limit. And three stocks, ITC among them (up 1.1%, but trading at only 0.7 times its usual pace), were up but too quiet. The screener skipped them.
What the screener does not do
It doesn't read news, and it doesn't decide whether to trade. It only hands a shortlist of 10 stocks, in rank order, to the next step. That order matters later, when the rulebook decides which stocks actually get trades.
What I'd improve
I want to be honest about one weakness. The formula assumes trading is spread evenly through the day. In reality, markets are much busier right after the open. So at 09:35 many stocks look "busy" simply because it's the open. My bot doesn't correct for that yet. A better version would learn the normal volume pattern through the day from past data.
That's a good reminder of why this is an experiment.
Next Sunday
The screener tells me which stocks are moving. It can't tell me why. Next week: the analyst, where an AI reads the news headlines and decides whether a stock has a real reason to be rising.
Previous post: The Big Picture. This is a paper-trading experiment with fake money, not investment advice.

Comments
Post a Comment