A 2 period RSI system for Nifty buys when RSI(2) closes deeply oversold (below 5 or 10) and sells or shorts when it closes above 90 to 95, holding for only a few days. Backtests published by TradingMarkets on US stocks showed that the lower the RSI(2) reading, the better the average return over the next one to five days, and the higher the reading, the worse. Below is that research, the rules I noted for Nifty in October 2008, and an Amibroker AFL to test them yourself.
Key Takeaways
- RSI(2) is the standard Wilder RSI with a 2-period lookback, so it swings between extremes far more often than the 14-period default.
- In the TradingMarkets study, stocks with RSI(2) below 2 averaged +0.87% over the next week, while those above 98 were negative.
- Trade only in the direction of the 200-day moving average: longs above it, shorts below it.
- Typical Nifty rules: go long next day when RSI(2) closes below 5, exit above 50; short above 95, cover below 50.
- These are short-term mean reversion edges. Test them on current Nifty data before trading, and use a stop.
We consider the Relative Strength Index (RSI) to be one of the best indicators available. There are a number of books and articles written about RSI, how to use it, and the value it provides in predicting the short-term direction of stock prices. Unfortunately, few, if any, of these claims are backed up by statistical studies. This is very surprising considering how popular RSI is as an indicator and how many traders rely upon it.
Most traders use the 14-period RSI. However, when you shorten the timeframe you start seeing some very impressive results. Most research shows that the most robust and consistent results are obtained by using a 2-period RSI, and traders have built many successful trading systems that incorporate the 2-period RSI.
Before getting to the actual strategy, here’s a little background on the RSI and how it’s calculated.
Relative Strength Index
The Relative Strength Index (RSI) was developed by J. Welles Wilder in the 1970’s. It is a very useful and popular momentum oscillator that compares the magnitude of a stock’s recent gains to the magnitude of its recent losses.
A simple formula (see below) converts the price action into a number between 0 and 100. The most common use of this indicator is to gauge overbought and oversold conditions. Put simply, the higher the number the more overbought the stock is, and the lower the number the more oversold the stock is.

RS = Average of x days up closes / Average of x days down closes
As mentioned above, the default and most common setting for RSI is 14 periods. You can change this default setting in most charting packages very easily, but if you are unsure how to do this please contact your software vendor. For a detailed explanation of the calculation, see the StockCharts ChartSchool guide to RSI.
What the 2 Period RSI Backtest Showed
The study behind these numbers (from the TradingMarkets research listed in the references) backtested over seven million trades from 1/1/95 to 6/30/06. The table below shows the average percentage gain/loss for all stocks during the test period over a 1-day, 2-day, and 1-week (5-day) period. These numbers represent the benchmark used for comparisons.

Overbought and oversold conditions were then quantified as the 2-period RSI reading being above 90 (overbought) and below 10 (oversold). In other words, the study looked at all stocks with a 2-period RSI reading above 90, 95, 98 and 99, considered overbought, and all stocks with a 2-period RSI reading below 10, 5, 2 and 1, considered oversold. These results were then compared to the benchmarks. Here’s what was found:
Oversold
- The average returns of stocks with a 2-period RSI reading below 10 outperformed the benchmark: 1-day (+0.06%), 2-days (+0.21%), and 1-week later (+0.50%).
- The average returns of stocks with a 2-period RSI reading below 5 significantly outperformed the benchmark: 1-day (+0.12%), 2-days (+0.33%), and 1-week later (+0.65%).
- The average returns of stocks with a 2-period RSI reading below 2 significantly outperformed the benchmark: 1-day (+0.22%), 2-days (+0.51%), and 1-week later (+0.87%).
- The average returns of stocks with a 2-period RSI reading below 1 significantly outperformed the benchmark: 1-day (+0.27), 2-days (+0.62%), and 1-week later (+1.05%).
When looking at these results, it is important to understand that the performance improved dramatically each step of the way. The average returns of stocks with a 2-period RSI reading below 2 were much greater than those stocks with a 2-period RSI reading below 5, etc.
This means traders should look to build strategies around stocks with a 2-period RSI reading below 10.
Overbought
- The average returns of stocks with a 2-period RSI reading above 90 underperformed the benchmark 2-days, and 1-week later.
- The average returns of stocks with a 2-period RSI reading above 95 underperformed the benchmark 2-days later, and were negative 1-week later (-0.03%).
- The average returns of stocks with a 2-period RSI reading above 98 were negative 1-day (-0.02%), 2-days (-0.13%), and 1-week later (-0.18%).
- The average returns of stocks with a 2-period RSI reading above 99 were negative 1-day (-0.08%), 2-days (-0.24%), and 1-week later (-0.31%).
When looking at these results, it is important to understand that the performance deteriorated dramatically each step of the way. The average returns of stocks with a 2-period RSI reading above 98 were significantly lower than those stocks with a 2-period RSI reading above 95, etc.
This means stocks with a 2-period RSI reading above 90 should be avoided. Aggressive traders may look to build short selling strategies around these stocks.

As you can see, on average, stocks with a 2-period RSI below 2 show a positive return over the next week (+0.87%). Also shown is that, on average, stocks with a 2-period RSI above 98 show a negative return over the next week.
Check the Live 2-Period RSI (SCO) for NSE Stocks
In 2008 I shared a live spreadsheet for this at http://www.editgrid.com/user/nmtamijselvam/SCO_Calculator_for_Stock_(1). The EditGrid service is no longer available, so the sheet no longer works, but the notes below explain how it was set up and the same layout is easy to rebuild in Excel or Google Sheets.
Data was updated in real time using Y! Finance. You could get the RSI(2) values for any NSE stock for your analytics or trading purpose by just changing the symbols of Yahoo stocks in the [A1, B1, C1……Z1] cells.
For example, B1 contains the value IDEA.NS. If you change the value to RCOM.NS you would get the values for Reliance Communication.
The last 10 values of the 2-period RSI were computed in the sheet:
- A20, B20, C20 … Z20 represent the current live 2-period RSI value.
- A21, B21, C21 … Z21 represent yesterday’s 2-period RSI value.
- A22, B22, C22 … Z22 represent the day before yesterday’s 2-period RSI value, and so on.
Just check out the returns of Nifty and Essar Oil and whatever stocks are mentioned in that list ….. It’s simply amazing!
2 Period RSI Trading Rules for Nifty
If you want your trades to be more confident:
- For stock RSI values: if less than 1, confirm then buy. When greater than 99, confirm then short.
- For Nifty RSI values: if RSI(2) closed less than 5, go long the next day and average every day if RSI(2) closes below 5 again. Sell above 50 or higher values, as Nifty is expected to turn upside in the next 1-2 days.
- For Nifty RSI values: if RSI(2) closed greater than 95, go short the next day and average shorts every day above that. Cover below 50 or even lower, as Nifty is expected to turn downside in the next 1-2 days.
Just icharts.in is enough to calculate the 2 period RSI.
Nifty RSI(2) closing values in late October 2008, during the global financial crisis sell-off:
- OCT 24 – 4.84
- OCT 27 – 3.90
- OCT 28 – 52-98
- OCT 29 – 56.43
- OCT 30 – 86
Just check it out in the RSI(2) values: the readings below 5 on 24 and 27 October were followed by a sharp bounce within two sessions, exactly what the rules above anticipate.

Important Decisions Before Choosing the Stocks
- When the stock is trading above the 200 day moving average (bull market), look for only long signals in RSI(2) for better returns.
- When the stock is trading below the 200 day moving average (bear market), look for only short signals in RSI(2) for better returns.
Unfortunately, at the time of writing (October 2008) none of the stocks were trading above the 200 day moving average, so short selling was the only opportunity in that market scenario for better returns in our markets.
How to Use RSI(2) for Any Stock (Original Spreadsheet Steps)
- Have an EditGrid login and save the RSI indicator sheet to your profile, so that you can edit the parameters in the spreadsheet: http://www.editgrid.com/user/nmtamijselvam/SCO_Calculator_for_Stock_(1)
- To get the RSI(2) values for a particular stock, say RNRL, the corresponding Yahoo stock code for RNRL is RNRL.NS.
- Delete ^NSEI in the A1 cell and type RNRL.NS, and you will get the corresponding RSI(2) values and the stock price values in column A.
- Change only the symbols in A1, B1, C1, D1 … etc. present in the CLOSING RATE sheet. That’s enough.
- To look for any stock symbol use http://finance.yahoo.com/lookup
- RSI(2) values below 5 and above 95 will be highlighted in red colour.
Test the 2 Period RSI Strategy in Amibroker
The spreadsheet is gone, but you can test and scan the same rules in Amibroker. The AFL below follows the Nifty rules from this post with the 200-day trend filter. It enters on the next day’s open and leaves out the averaging step, so you can first see the raw edge. Run it as a Backtest for performance or as an Exploration to list today’s setups.
// 2-Period RSI system for Nifty (based on the rules in this post)
// Long when RSI(2) closes below 5 in an uptrend, exit when RSI(2) closes above 50
// Short when RSI(2) closes above 95 in a downtrend, cover when RSI(2) closes below 50
SetTradeDelays(1, 1, 1, 1); // act on the next day's open
BuyPrice = SellPrice = ShortPrice = CoverPrice = Open;
rsi2 = RSI(2);
ma200 = MA(C, 200);
Buy = rsi2 < 5 AND C > ma200;
Sell = rsi2 > 50;
Short = rsi2 > 95 AND C < ma200;
Cover = rsi2 < 50;
Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);
Short = ExRem(Short, Cover);
Cover = ExRem(Cover, Short);
// Exploration: list today's setups
Filter = rsi2 < 5 OR rsi2 > 95;
AddColumn(C, "Close", 1.2);
AddColumn(rsi2, "RSI(2)", 1.2);
AddColumn(ma200, "200 SMA", 1.2);
AddTextColumn(WriteIf(C > ma200, "Above 200 SMA", "Below 200 SMA"), "Trend");
Plot(rsi2, "RSI(2)", colorBlue, styleLine);
PlotGrid(5); PlotGrid(50); PlotGrid(95);
If you want the composite version that adds streak and rate-of-change components, see the Larry Connors RSI Amibroker AFL code. For an intraday variation, read Nifty intraday notes using 5 EMA and 2 period RSI, and if you prefer Python, this RSI filter tutorial shows how to build an RSI filter.
Limitations and Common Mistakes
- The study is on US stocks from 1995 to 2006. Nifty behaves differently, and market structure has changed. Re-test on recent Indian data before trading.
- Averaging down needs a limit. In a crash like October 2008, RSI(2) can stay below 5 for several days. Cap the number of adds and use a hard stop.
- Costs matter. Average edges of 0.5% to 1% per week are easily eaten by brokerage, STT and slippage on illiquid stocks.
- Ignoring the trend filter. Most of the edge comes from buying oversold readings in an uptrend and shorting overbought readings in a downtrend.
Reference
- http://www.tradingmarkets.com/.site/stocks/commentary/editorial/2-Period-RSI.cfm
- http://tradewhileworking.blogspot.com/2007/10/new-research-on-rsi2-profitable.html
- http://www.tradingmarkets.com/.site/stocks/commentary/editorial/The-Improved-R2-Strategy.cfm
- http://tradinggoddess.blogspot.com/2007/10/rsi2-in-short-term-trading.html
- https://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:relative_strength_index_rsi (now moved to the StockCharts ChartSchool RSI page)
Note: the TradingMarkets and Trading Goddess links date from 2007 to 2008 and may no longer be online.
Choose the Stocks as What RSI(2) Indicator Suggests You
Don’t pick the stocks and then look at the indicator levels to meet your expectations. Let them work for you. Don’t expect anything from it.
Happy Trading!
Frequently Asked Questions
What is the 2 period RSI strategy?
It is a short-term mean reversion strategy that buys when the 2-period RSI closes very low (below 5 or 10) while price is above the 200-day moving average, and exits after a bounce, typically when RSI(2) rises above 50 or price closes above a short moving average.
What are the best settings for RSI 2?
Common thresholds are below 5 or 10 for oversold and above 90 or 95 for overbought, combined with a 200-day moving average trend filter. Lower entry thresholds gave higher average returns in the TradingMarkets study, but fewer trades.
Does the 2 period RSI work on Nifty?
The rules in this post were applied to Nifty in 2008, and the October 2008 readings bounced as expected. Results change over time, so backtest the rules on recent Nifty data using the AFL above before relying on them.
Who created the 2 period RSI strategy?
The RSI was created by J. Welles Wilder. The 2-period RSI approach was popularised by Larry Connors and the TradingMarkets research team, which is the source of the statistics in this post.
Learn by watching: free videos every week
Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.


Hats off to you sir…you are doing a great work.
what settings do you suggest for the 2 period RSI if not fourteen
Dear Sir,
As I am regular day trader since 2002,my experience is that this concept is useful for only “very sharp day trader only”.After taking any position or trade by this concept i.e. + or – one has to run fast for the result i.e squaring off order,other wise the chances of losing the capital are very much high.In stead of above if you will adopt 9 or 14 RSI then definitely you will get less chances in day trading but the probability of the correct trade is rather more.
In 2 RSI concept,whatever position you take is before the trend confirmation of the trend or one can say premature trending without confirmation of the trend.
Sir you have provided http://www.editgrid.com/user/nmtamijselvam/SCO_Calculator_for_Stock_(1) link.
a) What does SCO mean ?
b) I am not in a position to insert values into the excel sheet provided in the link. can you provide the formula to caluclate the 2 period rsi or send a standalone excel sheet attachment to my mail id.
Thank u
The spreadsheet at http://investexcel.net/3077/relative-strength-index-spreadsheet/ automatically plots RSI after you give it a ticker symbol, two dates, and the averaging period. It uses historical stock quotes automatically downloaded from Yahoo Finance
This will not work ….. don’t waste your time.
Techincal analysis can not provide you an edge on its own.
Mr Rajender appreciate your benevolence but if you really are a profitable trader why don’t you post a one year statement, we can get it verified from the broker concerned just deelte the a/c number and other personal info
there are literally hundereds of thousands of people who read a few books and post a few charts with historical results in an attempt to fool people into thinking they have some expertise in trading the markets
Parlor tricks look neat to the uninitiated but not to those who know the sleigh of hand.
From what you post I am certain you are not a profitable trader long over the long term.
@Rahul : The system is more than 4 years old. When it is exposed to public and major people starts following at some point of time the system losses its value.
Its frank 2-period RSI system is outdated. If you are a good trader you need to constantly keep updated of your tradiing system rather sticking to the very old trading system and relying for profits.
I am trading this system on demo account since last two months. It works nicely in sideway markets. Can you explain how one can trade in trending markets?
Regards.
Dear
This system I read from book by Mr. Connors and Alvarez in 2009 ( U.S.). The author’s name shd have been mentioned some where in yr article. The book can be downloaded freely from net.