StrategyOne

Tutorials & guides › Investing

How to build and backtest a momentum stock portfolio for NSE

8 min read · Updated 2 November 2026

Momentum investing buys stocks that have been going up faster than the market and replaces them when they stop. It is one of the most studied effects in markets, and also one of the easiest to get wrong with untested rules. This guide walks through the decisions a momentum portfolio needs and how to test them.

The idea

Stocks that have outperformed over the past several months have tended to keep outperforming for a while. A momentum portfolio holds a set number of the strongest stocks, checks them regularly, and swaps out the ones that weaken. It doesn't predict; it follows strength and limits the time spent in weak stocks.

1. Choose the universe

Start with stocks you can actually trade in size: a broad index such as the Nifty 500, or a narrower set of sectors or themes. A wider universe gives more choice; a narrower one keeps the portfolio in areas you understand.

2. Rank by strength

Rank candidates by how strong they are, such as their return over recent months or their strength against the benchmark (the same measure behind a relative rotation graph). The best-ranked stocks that pass every filter fill the portfolio.

3. Add entry filters

Filters keep out stocks that rank well for the wrong reasons. Common ones use weekly indicators: price above a moving average, a trend indicator such as Supertrend, RSI above a level, or a positive rate of change. Each filter should have a reason; too many filters fit the past and fail later.

4. Decide the exits and the rebalance

Choose how often to review holdings (weekly or monthly) and what makes a holding leave: falling out of the top ranks, failing a filter, or an exit score dropping below a threshold. A buffer (exit only well below the entry rank) reduces needless trading.

5. Portfolio size and costs

Fewer stocks (10–15) concentrate on the strongest names but swing more; more stocks (25–35) are smoother. Every replacement costs brokerage, STT and slippage, so test with realistic costs per trade: frequent rebalancing can turn a good idea into a poor one.

6. Backtest honestly

  • Compare against the benchmark indices over the same period, after costs.
  • Look at the worst drawdown and how long it took to recover; momentum strategies can fall hard when the market turns.
  • Check that results don't depend on one parameter value: nearby settings should give similar results.
  • Test on a period you didn't tune the rules on.

MomentumCase lets you build these rules (universe, sectors, filters, ranking, exits, number of holdings and review frequency) and backtest the portfolio against the Nifty indices, for stocks or ETFs.

Try it on years of Indian market data, free to start.

Open MomentumCase

For education and research, not investment advice. Trading in derivatives carries risk; past results don't guarantee future ones.