What is the 200-day moving average strategy?
A 200-day moving average strategy holds a stock only while its price is above the average of its last 200 closing prices, and steps aside when it falls below. Here the rule is applied to each stock on today's Nifty 100 list.
How does the rule work on the Research Desk?
The Desk works out each stock's 200-session simple average, checks the rule on a monthly schedule, holds the stocks trading above their average and leaves the rest in cash until they cross back above it.
Why do people test the 200-day moving average strategy in India?
The long average is a simple way to describe a trend. The thinking is that staying out of stocks in long downtrends could soften the deepest falls, at the price of missing some rebounds. A test shows how that trade-off looked on past Indian data.
What can go wrong with this backtest?
In sideways markets the price can cross the average again and again, adding costs for little effect. Each stock needs 200 sessions of history before its first signal, which shortens the usable test period at the start.
What does the luck check add here?
The luck check compares this idea with random portfolios, by default 1,000 of them, built under the same conditions, and shows where the idea sits among them as a percentile. This is a rule-based idea, so the random portfolios keep its trading calendar: the same number of trades on the same days, held for as long. Only the stock in each trade is random, which shows whether the trend filter chose names any differently from chance.
Read how the luck check works on the Research Desk overview.
Where do the default settings come from?
The defaults come from the source named in the Desk's starter catalogue, shown here word for word:
- Catalogue title
- Price above its 200-day average, Nifty 100 stocks
- Family
- time-series momentum and trend (moving average)
- Stocks
- Nifty 100 (current list)
- Where the settings come from
- Faber (2007) and common practice: 200-day simple moving average; 10-month (about 210 sessions) is the monthly-data equivalent.
- Data it uses
- daily prices (company); Nifty 100 current constituent list
- What the catalogue says could go wrong
- Sideways markets trigger repeated in-and-out moves that add costs; the long average needs 200 sessions of history before the first signal, which shortens the usable period.
How do you backtest the 200-day moving average strategy on the Nifty 100?
Sign in to the Research Desk with a free MarketDeck account, pick this idea from the starter ideas and run it on its default settings with paper money; each run uses some of your daily run units. Or, once you have connected Claude, ask:
Run the "Price above its 200-day average, Nifty 100 stocks" starter idea on its default settings and show me the luck check first.
Which starter ideas are related?
These three ideas test a similar question or make a useful comparison:
- time-series momentum and trend (moving average cross)
50-day over 200-day average cross, Nifty 100 stocks
How Nifty 100 stocks behaved after their 50-day average crossed above their 200-day average, and after it crossed back below.
- time-series momentum and trend (channel breakout)
20-day channel breakout, Nifty 200 stocks
How Nifty 200 stocks behaved after closing above their highest high of the previous 20 sessions, until they closed below the lowest low of the previous 10.
- time-series momentum and trend (sector indices)
Sector indices above their 10-month average
How a set of sector indices behaved while each was above its own long-term average, with weights based on recent calm, compared with the broad market.
Which Learn guides explain the ideas behind this?
These free MarketDeck Learn guides cover the statistics behind backtests and the luck check: