Technical Analysis

How to Build a Stock Screen That Filters Anything

Most screens go wrong at the second condition, which quietly removes nothing at all. Running each filter on its own is what tells you which ones are doing the work.

AI-assisted, reviewed and edited by Ryza Glorioso. How we use AI

7 min read

A stock screen is a question asked of a list. You name a field, you name a comparison, you name a value, and the screener returns every security that satisfies all of it at once. The mechanics take an afternoon to learn. What takes longer is working out which conditions earn their place, because a screen returning four names and a screen returning four hundred can both be useless, and what separates a useful screen from either of those is the order you built the conditions in and whether you ever ran a single one of them on its own.

A condition has three parts and one connector

Price above the 50-day moving average. RSI(14) below 30. Average dollar volume above twenty million. Each of those lines is a field, a comparison and a value, and every screener sold to retail traders arranges its interface around those same three slots however different the syntax looks on screen.

The connector matters more than the fields do. Almost every screener joins your conditions with AND, so the result set can only shrink as you add to it. A fourth condition cannot gain you a name. It can remove names, or it can leave the list exactly as it was, and the second outcome is the one worth hunting for, because a condition that changes nothing is either repeating a question you already asked or pointed at a field you did not mean to ask about.

Work down from the universe

Start from the list you would be willing to own. Call it 502 names. Then watch two ordinary conditions go to work on it. A condition that keeps about a third of the index takes 502 down to 167. A second condition that keeps half of the survivors takes 167 to 83. A third of the same strength leaves 41, a fourth leaves 20, and that is how a screen which looked reasonable at every single step arrives at a list too small to spread risk across and too specific to carry any general meaning, with no individual condition that seemed unreasonable while you were typing it.

Eighty-three names is a workable list. Twenty is a watchlist you built by accident. Do the arithmetic first. The compounding happens quietly, and nothing in the interface will warn you that one more reasonable condition has just taken a list you could have spread risk across down to a handful of names you are able to recite from memory.

Order your conditions by how much each one cuts

Here is the step most screening guides leave out. Run every condition by itself, write down the count it returns, then build the screen starting with whichever one cut the hardest. Two things fall out of that. You learn which filters are carrying the screen, and you learn which ones are decoration.

At the close on October 16, 2026, 275 of the 502 S&P 500 names were trading below their 50-day moving average. That is 54.8% of the index, so on its own the condition removed 227 names. On the same date, 16 names had a daily RSI(14) reading below 30. Run the two together and the answer comes back as 16.

The second condition removed nothing. Read those three counts again, because the shape of the result is the whole lesson: the 50-day filter cut 227 names when it ran alone and zero names when it ran behind the RSI condition, and nothing was broken in the screener or missing from the data when it did that. All 16 names clearing an RSI below 30 were already sitting under their 50-day average. The filter you added second had been satisfied by the list before you typed it. Our guide to RSI below 30 and below the 50-day works through that overlap in detail and what it says about the stocks it catches.

Now compare a pair that does cut. On that same date, 164 names showed a daily RSI above 60, and 59 of those also showed weekly and monthly RSI above 60. The second condition removed 105 names, roughly 64% of the list it was handed, and the two slower timeframes it reads are measuring windows the daily reading never looked at. That is a filter doing real work. RSI above 60 on weekly and monthly charts covers what the agreement across timeframes buys you.

When two conditions ask one question

Redundancy has mechanics you can reason about without running anything. A 14-day RSI below 30 says that across roughly three trading weeks, down closes dominated up closes by a wide margin. Price below the 50-day average says today’s close sits under the mean of the last fifty closes. So ask whether a stock could pass the first test and fail the second. Three weeks of losses heavy enough to push RSI under 30, while the close somehow stays above the average of the last ten weeks of closes, is close to arithmetically impossible, which is exactly why those two conditions behaved the way they did in October.

Contradiction is the same failure wearing the opposite costume. Ask for a 52-week high within 2% and an RSI below 30 in one screen and you will get nothing back, on every date, forever. An empty result is at least honest about itself. The redundant pair is the dangerous one, because it hands you a list and lets you believe that two independent tests agreed on it. Median daily RSI across the index on October 16, 2026 was 53.4, and that figure is the context that tells you whether a reading of 30 is rare or ordinary in the tape you are screening.

Fields that are worth screening on

Field What the condition tests Typical form
Trend position Where the last close sits against a moving average Close above or below the 50-day or 200-day
Momentum Whether recent gains or losses dominate RSI(14) above 60, or below 30
Distance from 52-week high How much of a prior advance has been given back Within 5% of the high, or 25% off it
Relative volume Today’s participation against the recent norm Volume at least twice the 50-day average
Dollar volume How much money trades in the name each day Twenty million or more, as a floor

Five fields, five different questions. Trend position and momentum are the two most people start with, and they overlap more than they look like they do, which the October counts show plainly enough. Distance from the 52-week high is the one that scales across stocks priced at $8 and $800 without any adjustment. Relative volume is the only field on that list that is not computed from price, so it is the nearest thing a screen has to an independent second opinion, and our volume analysis guide covers how to read it once the screen has handed you a name. For the moving average fields, moving averages explained has the calculations.

Why a liquidity floor belongs in almost every screen

Put a dollar volume minimum in by default. Price multiplied by average daily share volume, with a floor underneath it. The reason is cost. Say a name trades forty thousand shares a day and quotes a 3% spread: crossing it takes roughly 1.5% out of you going in and another 1.5% coming out, which is three points of performance paid away before the idea has had any chance to be right or wrong, and no screen carries an edge wide enough to fund that. Thin names also crowd the extremes of any ranked list, so they turn up disproportionately in exactly the screens that sort for the biggest move or the lowest reading. Market makers and liquidity explains where the spread comes from.

Where screens fail

Every screen describes the past. The data stops at the last close, every field is computed backwards from it, and the list that comes out is a statement about what has already happened to those names. That is workable as long as you keep remembering it.

Overfitting is the subtler failure. Each condition you add fits the screen more tightly to the market you happen to be standing in, and a screen of six conditions, adjusted until the output finally looked right, is a precise description of this quarter with no particular reason to survive the next one. So count the conditions, then count the names. A screen returning three names has usually been tuned until it describes the stocks you already liked, and the list was there before the screen was.

The last failure is treating the output as a conclusion. A screen produces names to examine, and not one of them has been checked for an earnings date next week, a pending acquisition, a dilutive offering, a halted session, or any of the facts that no price field carries. Build the conditions in the stock screener, run each one alone, then go and read the names it gives you.

Frequently asked questions

What is a stock screen?

A stock screen is a set of conditions applied to a list of securities, where each condition names a field, a comparison and a value. The screener returns every name in the starting universe that satisfies all of the conditions at once. Because the conditions are joined with AND, the result can only get smaller as you add more of them.

How many conditions should a stock screen have?

Three or four is usually enough to produce a list you can actually read through. Each extra condition fits the screen more tightly to the market you are currently standing in, so a six or seven condition screen tends to describe this quarter and nothing beyond it. If your screen returns three names, the likely explanation is that you kept adding filters until the output matched names you already liked.

Why does adding a filter sometimes not change the result?

Because the condition is already satisfied by every name on the list. At the close on October 16, 2026, 16 of the 502 S&P 500 names had a daily RSI(14) below 30, and adding a requirement that price sit below the 50-day moving average still returned 16. All 16 were already below that average, so the second filter had nothing left to remove.

What order should I add screen conditions in?

Run each condition by itself, write down the count it returns, then build the screen starting with whichever one cut the most. That order makes it obvious which filters are carrying the screen and which are decoration. It also catches a condition pointed at the wrong field, since that usually shows up as a solo count that is either the whole universe or zero.

Should every screen include a volume filter?

A dollar volume floor belongs in almost every screen you build. Price multiplied by average daily share volume tells you roughly how much money changes hands in a name each day, and a thin one can cost you more in spread on the way in and out than the screen could plausibly earn. Setting a floor also removes the illiquid names that otherwise dominate the extremes of any ranked list.