OPEN-SOURCE SCRIPT

RSI(5) on RSI(14)

1 071
RSI(5) on RSI(14)

This indicator is displayed in a separate pane and works on all timeframes.
It combines a classic RSI with a secondary RSI calculated on the RSI values themselves, allowing deeper analysis of momentum and internal strength.

Indicator Logic

The indicator consists of two components:

RSI (period 14) calculated from price data (default: Close).

RSI (period 5) calculated on the values of RSI(14), equivalent to Previous Indicator’s Data in MetaTrader.

This structure helps to:

identify overbought and oversold zones using the primary RSI,

observe acceleration, deceleration, and momentum shifts inside the RSI itself using the secondary RSI.

Visualization

RSI(14) is plotted as a configurable colored line.

RSI(5) on RSI(14) is plotted as a thin black line on top of the main RSI.

The indicator scale is fixed between 0 and 100.

Levels

20 and 80 — configurable oversold and overbought levels:

adjustable values,

customizable color,

line width,

line style (solid, dashed, dotted).

50 level:

black,

thin,

dashed,

acts as a mid-level equilibrium reference.

Inputs

Users can adjust:

RSI(14) period,

RSI(5) period,

price source for RSI(14),

colors and line widths,

level values and styles for 20 / 80.

Use Cases

This indicator can be used for:

momentum and strength analysis,

detecting internal RSI momentum shifts,

trend confirmation and filtering,

standalone oscillator analysis or as part of a larger trading system.

Disclaimer

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.