The Relative Strength Index (RSI) is a versatile and widely-used momentum oscillator developed by J. Welles Wilder Jr. and introduced in his 1978 book, “New Concepts in Technical Trading Systems.” It measures the speed and change of price movements, helping traders identify overbought or oversold conditions in a market. The RSI oscillates between 0 and 100, providing a clear visual representation of a security’s recent buying and selling pressure.
The RSI’s calculation is based on the ratio of average gains to average losses over a specified lookback period, typically 14 periods. Understanding its formula is key to grasping its behaviour.
The calculation involves three main steps:
First, we calculate the Relative Strength (RS), which is the ratio of the average of upward price changes (‘Average Gain’) to the average of downward price changes (‘Average Loss’) over the lookback period.
The Average Gain is the sum of all positive price changes in the period divided by the period length (e.g., 14). Similarly, the Average Loss is the sum of the absolute values of all negative price changes divided by the period length.
Next, the RS value is converted into an oscillator that ranges from 0 to 100 using the following formula:
This normalization ensures the indicator is easy to interpret. A high RS value (many large up-moves compared to down-moves) will result in an RSI close to 100. A low RS value will result in an RSI close to 0.
For all subsequent calculations after the initial 14 periods, Wilder used a specific smoothing method to calculate the new Average Gain and Average Loss. This gives more weight to recent data without discarding older information entirely.
This exponential smoothing makes the RSI line smoother and less prone to erratic movements compared to a simple moving average.
Let’s walk through a simplified 5-period RSI calculation.
Assume the following 6 closing prices for a stock:
100, 102, 101, 104, 105, 103
This process is repeated for each new period, using the smoothing formula to update the average gain and loss, which in turn updates the RSI value.
The RSI is plotted as a single line on a sub-chart below the main price chart. Traders focus on three key levels.

The RSI is not just for identifying overbought and oversold levels. It’s a multifaceted tool with several applications.
The most common use of RSI is to time entries. A trader might look for a shorting opportunity when the RSI crosses above 70 and then hooks back down, or a buying opportunity when it dips below 30 and then crosses back up.

In this example, as the RSI moves above the 70 level, the preceding uptrend loses momentum and the price begins to consolidate before turning down.


Here, the RSI dips below the 30 level, signalling an oversold market. The downtrend subsequently pauses and, following some buying interest (indicated by the pin bars), the price begins to reverse upwards.

One of the most powerful applications of the RSI is identifying divergences. A divergence occurs when the price action disagrees with the RSI’s movement, often signalling a potential trend reversal.
The RSI is also effective for managing exits. If you are in a long position and the RSI moves into the overbought territory (above 70), it can serve as a signal to take partial or full profits, as the upward momentum may be waning. The same logic applies to a short position when the RSI enters the oversold zone.

In this chart, a trader in a long position would note the RSI moving above 70 as a sign of potential trend exhaustion, prompting a decision to exit or reduce the position size.
While the 14-period RSI is the standard, traders can adjust the lookback period to suit their strategy.


With the setting changed to 28, notice how the indicator is much smoother. It did not dip below 30 to give the original buy signal, filtering out what it considers short-term noise.

With a 7-period setting, the RSI is much more volatile. It became “overbought” three times during the same uptrend, which could have led to a premature exit from a profitable trade if used in isolation.
For swing and positional trading of liquid NSE stocks and indices like NIFTY and BANKNIFTY, the Daily and 75-minute timeframes with a standard 14-period RSI tend to provide clean and reliable signals. For intraday trading, while 5-minute and 15-minute charts are popular, the noise-to-signal ratio increases significantly. Intraday traders must be more adept at confirming RSI signals with other tools like volume profiles, support/resistance levels, and candlestick patterns to improve their probability of success.
To summarize the key points on the RSI indicator: