Strategies

The 20% filter rule on NIFTY 500 stocks: a 20-stock portfolio

In short Buying NIFTY 500 stocks after a 20% rise from their low, selling after a 20% fall from their high, and holding at most 20, earned 11.7% a year from 2014 against 13.2% for the NIFTY 500 index, with a much deeper worst fall (−55% against −38%). It passed six of our eight checks but lost to the index, and the rule meant to cut losses did not stop the 2018–2020 slide.

Strategy card How we score →

Checks: passed 6 of 8

Risk: Very high

Worst drawdown −54.9% · about 4.7 years of average returns to recover

  • Always fully invested: carries full market risk, with no cash cushion.

The idea

The filter rule, from Sidney Alexander’s 1961 research, is the simplest trend rule there is: buy after a rise of x% from the lowest close, sell after a fall of x% from the highest. On an index it trades a few times a year. Run on every stock in the NIFTY 500 it becomes a stock picker: at any moment some stocks have just broken up from their lows, and the rule says to own them until they fall back 20%.

The appeal: no forecasts and no valuation, and every holding has a built-in exit, so a single stock cannot fall 70% while you hold it. The question is whether a portfolio of such trades beats simply holding the index.

The rules

  • Universe: NIFTY 500 stocks, point-in-time: on each date, only stocks in the index on that date.
  • For every stock, on its daily closes:
    • Buy signal: the close is 20% or more above the lowest close since its last sell signal.
    • Sell signal: the close is 20% or more below the highest close since its buy signal.
  • Portfolio: at most 20 stocks. On a stock’s buy-signal day, if there is a free slot, buy it with a twentieth of the portfolio’s value. If more stocks signal than there are free slots, take those with the highest 6-month return first. A stock that signals while every slot is full is skipped until its next buy signal.
  • Sell a holding on its sell signal, or when it leaves the index.
  • No rebalancing: holdings drift with their prices.
  • Fills: at the next trading day’s open. Cost: 0.2% per side including slippage. Cash earns 6% a year.

The backtest

Data: NIFTY 500 stocks, 1 January 2014 to 31 July 2026 (12½ years), 580 round trips, about 46 a year, median hold about 3 months.

CAGRWorst drawdownCalmar
20% filter, 20 stocks11.7%−54.9%0.21
NIFTY 500 buy & hold13.2%−38.3%0.35
NIFTY 500, equal weight (same members)15.3%−57.4%0.27

(Calmar is CAGR divided by the worst peak-to-trough drawdown. The index is a price index and the backtest’s stock prices exclude dividends too. The equal-weight row holds every stock in the index that day in equal amounts, with no costs.)

20% filter rule on 20 NIFTY 500 stocks vs the NIFTY 500 index, growth of 100Jan 2014 to Jul 2026. 20% filter, 20 stocks ends at 401, NIFTY 500 ends at 484. Figures are also in the tables on this page.10020040020152017201920212023202520% filter, 20 stocks401NIFTY 500484
Growth of 100, January 2014 to July 2026. Log scale, so equal percentage moves look the same size anywhere on the chart. Hover or tap for values.

The trades themselves are fine. The average round trip made +6.8% after costs, with a t of 3.7: winners averaged +44% and losers −15%, and 37% of trades won. The rule did what a trend rule should: let winners run and cut losers at about the width of the filter.

The portfolio is the problem. There are almost always more than 20 stocks with a fresh buy signal, so the portfolio was fully invested 87% of the time. With 500 stocks to choose from, some are always breaking up from a low, even in a falling market. The per-stock exits rotate money out of falling stocks into other stocks that have just bounced 20%, and the portfolio stays exposed to the market’s fall.

2018–2020 shows it. From January 2018 to April 2020 the portfolio fell 55%, while the NIFTY 500 fell 38% at worst. Small and mid caps fell much more than the index in 2018–19, and the rule kept buying them as they bounced. It did not get back to its January 2018 peak until July 2021.

Year by year:

Year20% filterNIFTY 500Equal weight
2014+48%+38%+57%
2015+14%−1%+6%
2016−7%+4%+2%
2017+49%+36%+49%
2018−30%−3%−22%
2019−20%+8%−9%
2020+38%+17%+25%
2021+31%+30%+48%
2022−10%+3%+1%
2023+36%+26%+40%
2024+47%+15%+22%
2025−11%+7%0%
2026*+6%−2%+4%

*2026 to 31 July. The rule made money in 8 of 13 years and beat the index in 8. Its five losing years (−7% to −30%) were all years when the index itself was flat or up, and when the average stock (equal weight) did worse than the index.

Robustness tests

TestCAGRWorst drawdownTradesTrade t
As tested: 20%, 20 stocks, 0.2% a side11.7%−54.9%5803.7
Double cost, 0.4% a side10.8%−56.2%5803.5
First part, Jan 2014 – Apr 2020 (index 6.6%)3.0%−54.9%
Second part, Apr 2020 – Jul 2026 (index 20.3%)21.2%−31.6%
Filter10%15%20%25%30%
CAGR9.2%11.6%11.7%16.6%11.0%
Worst drawdown−41.0%−46.0%−54.9%−56.8%−58.1%
Trades1,816948580342273
Stocks held10152030
CAGR17.2%13.5%11.7%13.3%
Worst drawdown−54.0%−56.2%−54.9%−53.3%
Which stocks get the free slotsCAGRWorst drawdown
Highest 6-month return first (as tested)11.7%−54.9%
Random order, five different draws12.5% to 15.6%−49.5% to −59.6%
  • Every setting made money, and none fixed the drawdown. All filters from 10% to 30% and all portfolio sizes from 10 to 30 were profitable, with trade t above 3, but every version fell 41% to 58% at worst.
  • Mostly behind the index. Only the 25% filter and the 10-stock version beat the index’s 13.2%, and both with deeper falls.
  • Choosing by 6-month return didn’t help. Picking the stocks at random did as well or better. The edge, such as it is, comes from the filter itself, not from the choice between signals.
  • The second part was strong (21.2% against 20.3%), but the first part made 3% a year against the index’s 6.6%.

Adding an index filter

The weakness is that the portfolio never steps aside. We tried one fix: run the same filter rule on the NIFTY 500 index itself, and whenever the index rule is in cash, sell every holding at the next open and hold cash. When the index rule buys again, fill the 20 slots with stocks whose own filter is in a buy state, highest 6-month return first.

Index filterCAGRWorst drawdownCalmarAverage stocks held
None (as tested)11.7%−54.9%0.2119.3
8%23.4%−31.2%0.7515.7
10%15.4%−39.6%0.3914.8
12%15.0%−47.6%0.3116.1
15%10.3%−57.6%0.1817.2
NIFTY 500 buy & hold13.2%−38.3%0.35

A tight index filter helped a lot: at 8% the return doubled and the worst fall shrank to −31%. But the benefit fades quickly as the filter widens and is gone by 15%. We chose these settings after seeing the plain rule’s results, so treat this table as a lead for a separate test, not as a result. It is not part of the scoring.

How it scored

Scored as an investing strategy (the card above): against holding the NIFTY 500, with calendar years as the unit.

CheckResultDetail
Profitable after costs, beyond luck✓11.7% a year; average trade +6.8% after costs, t 3.7 over 580 trades
Beats a simple alternative✗11.7% against 13.2% for holding the NIFTY 500, with a much deeper worst fall
Holds up out of sample✓Profitable in both parts (3.0% and 21.2%), though behind the index in the first
Not fragile to parameters✓Every filter from 10% to 30% and every size from 10 to 30 stocks was profitable, trade t above 3
Consistent over time✗Profitable in 8 of 13 years (62%), short of 65%; worst year −30%
Survives higher costs✓10.8% at double cost
Profit not concentrated✓Without its five best trades, still 6.3% a year; no year above a third of the growth (2017: 29%)
Enough data✓12½ years, including the 2018–19 small-cap fall and March 2020
Passed6 of 8

(t measures whether the average trade’s gain can be told apart from zero; about 2 or more is our standard. The five best trades were each worth 9% to 21% of the portfolio when bought; one stock rose more than fivefold in four months. Concentration is measured on growth in log terms.)

Risk: Very high. The worst drawdown, −54.9%, equals almost five years of the rule’s average return.

Risks

  • No market exit. The portfolio was fully invested 87% of the time and fell 55% in 2018–2020.
  • Small-cap exposure. Stocks that have just risen 20% from a low are often smaller, more volatile names. The rule lost money in 2016, 2018, 2019, 2022 and 2025, years when the index was flat or up but the average stock lagged it.
  • Long recovery. From the January 2018 peak it took three and a half years, until July 2021, to make a new high.
  • Turnover and taxes. About 46 round trips a year with a median hold of three months; most gains would be short-term for tax purposes. Taxes are not included.
  • Daily attention. 500 stocks to track every day.

Pros & cons

Pros

  • Simple, mechanical rules with no forecasting.
  • Profitable trades with a strong t over 580 trades, at every nearby setting.
  • Strong from 2020 onwards, ahead of the index.

Cons

  • Behind the index over the full period, with a much deeper drawdown.
  • Lost money in five of thirteen years, all of them years when the index was flat or up.
  • The per-stock exits give a false sense of safety: the portfolio stays exposed to the market.

Our verdict

It passed six of our eight checks but missed the one that matters most for an investor: it earned 11.7% a year against 13.2% for simply holding the NIFTY 500, and its worst fall was −55% against −38%. The trades were real, with a strong t and a broad plateau of settings, but the per-stock exit did not protect the portfolio. With 500 stocks to choose from, there is always another one bouncing 20%, so money moved from one falling small cap to the next.

Adding a market-level exit, a filter on the index itself, looked much better in a quick test. That deserves a test of its own before anyone reads too much into it. Our 10% filter rule on the NIFTY 500 index shows how much those results depend on the exact settings and the timing of each switch.

Was this useful?

More to say, or spotted a mistake? Write to [email protected]. We read everything.

Topics

Hypothetical, backtested results on historical data at least three months old. They include modelled costs but can't capture every real-world effect, and past performance does not predict future results. This is educational research, not a recommendation. Full disclaimer.