Liquidity filters exclude stocks that are difficult to trade efficiently due to low volume or wide bid-ask spreads. They are essential for translating model outputs into executable portfolios.
Illiquid securities may appear attractive in backtests but become costly in real markets. Even modest trades can move prices significantly, eroding returns.
Liquidity is typically measured using metrics such as average daily trading value or volume. Stocks below predefined thresholds are removed from the universe.
Liquidity filters also help control volatility and turnover, as thinly traded stocks often exhibit unstable price behavior.
Different strategies require different liquidity standards. High-frequency or momentum strategies demand very liquid universes, while slower-moving value strategies may tolerate broader inclusion.
Ignoring liquidity is one of the most common causes of backtest-to-live performance gaps. Robust quant frameworks integrate liquidity constraints early in the research process.
Liquidity filters protect portfolios from hidden execution risk.
Common liquidity measures
| Measure | What it tells you |
|---|---|
| Average daily traded value | How much money changes hands in the stock on a typical day, usually averaged over 3 to 6 months |
| Free-float market capitalisation | The value of shares actually available to trade, which is smaller than total market value when promoters hold a large stake |
| Bid-ask spread | The immediate cost of buying and selling |
| Days with no trades | Whether a stock trades every day or only occasionally |
| Impact cost | The cost of trading a standard-size order, which NSE publishes for index stocks |
A worked example
Suppose a portfolio wants a position of Rs 2 crore in a stock whose average daily traded value is Rs 8 crore. The position is 25% of a day's trading. If the rule limits participation to 20% of daily value, the position would take 2 / (0.20 x 8) = 1.25 days to build, and a stricter rule that caps the position at 10% of daily traded value would exclude the stock for a portfolio of that size. The numbers are illustrative.
Designing the filter
- Tie it to portfolio size. A threshold that works for a small portfolio can exclude half the market for a larger one, so thresholds are often set as a multiple of the intended position.
- Use a rolling window. A single day of high volume, such as an index rebalance day, can make a thin stock look liquid.
- Apply it point-in-time. In a backtest, filters must use only data known on each date. See stock universe selection.
- Watch for restrictions. Price bands and circuit limits can stop a stock from trading when a model wants to trade it.
Why it matters
Thinly traded stocks often look attractive in a backtest because the simulation assumes trades can be made at quoted prices, but in practice orders move the price. See market impact and slippage modeling. A filter that is too loose lets impractical stocks in, and one that is too tight can remove most of the signal's opportunity.
Frequently asked questions
What is a liquidity filter?
It is a rule that removes stocks which trade too little, or too expensively, to buy or sell at the size a portfolio needs.
What is average daily traded value?
It is the rupee value of a stock traded on a typical day, usually calculated as an average over several months so that one unusual day does not distort it.
Why not include all stocks?
Stocks that trade rarely can look attractive on paper, but trading them moves the price and can wipe out the expected gain.
How strict should the filter be?
It depends on portfolio size and trading style. Too loose lets in stocks that cannot be traded efficiently, and too tight removes real opportunities.