Relative Strength Index

The relative strength index ( RSI ) is a momentum indicator that measures the magnitude of recent price changes to evaluate overbought or oversold conditions in the price of a stock or other asset. The RSI is displayed as an oscillator (a line graph that moves between two extremes) and can have a reading from 0 to 100. The indicator was originally developed by J. Welles Wilder Jr. and introduced in his seminal 1978 book, New Concepts in Technical Trading Systems.

Traditional interpretation and usage of the RSI are that values of 70 or above indicate that a security is becoming overbought or overvalued and may be primed for a trend reversal or corrective pullback in price. An RSI reading of 30 or below indicates an oversold or undervalued condition...more here.


*This indicator uses standard RSI settings of a 14-period lookback with a midline of 50, overbought level of 70 and oversold level of 30.

This RSI indicator has been modified to include a simple moving average of the RSI , adjustable overbought and oversold horizontal lines, a color-changing RSI line, color-filled RSI horizontal levels and color-filling the space between the RSI and simple moving average .

-This simple moving average ( SMA ) is set to a lookback period of 14 and is plotted as a white line. As the RSI moves above and below the SMA the color of the RSI changes; when above the SMA the RSI is lime, when below he SMA the RSI is pink. Lime indicates bullish momentum for RSI , pink indicates bearish momentum for RSI .

-When the RSI line is above 70 the RSI and background both turn yellow, this indicates overbought conditions.
-When the RSI line is below 30 the RSI and background both turn red, this indicates oversold conditions.

-The backgrounds fill the levels the RSI is trading between and can be turned on/off.
-The space between the RSI and SMA is filled and can be turned on/off.
-The RSI line can be set to solid or multi-color.
-The horizontal lines can be adjusted and turned on/off.
-The SMA can be adjusted.

For crypto or volatile markets, overbought and oversold levels of 80 and 20 are recommended.

Protected script
This script is published closed-source and you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?