RSI
Aug 23, 2019

The RSI indicator is a multi-timeframe relative strength tool designed to provide enhanced trend visualization through customizable threshold zones, moving averages, and optional bar coloring.
Usage
The RSI tool can be used to identify trend phases and potential exhaustion points across different timeframes. Users can set custom thresholds for "Uptrend" and "Downtrend" zones, which differ from standard overbought/oversold levels, allowing for a more nuanced view of momentum.
- Trend Identification: When the RSI value is above the Uptrend Threshold (e.g., 60), the indicator highlights the zone in green, suggesting strong bullish momentum. Conversely, values below the Downtrend Threshold (e.g., 40) are highlighted in red.
- Multi-Timeframe Analysis: By changing the "Resolution" setting, traders can view RSI data from higher timeframes (e.g., Daily RSI on a 1-hour chart) to ensure they are trading in alignment with the broader trend.
- MA Crosses: The inclusion of an SMA applied to the RSI helps in smoothing the signal and identifying secondary momentum shifts when the RSI crosses its own moving average.
- Visual Integration: Enabling the "Use barcolor" option reflects the RSI's current state (Overbought, Uptrend, Consolidation, Downtrend, or Oversold) directly on the price bars.
Details
This implementation calculates the standard Relative Strength Index (RSI) but extends its utility by allowing users to fetch the value from a different timeframe using request.security. The visual output includes several horizontal fills that represent different market conditions:
- Consolidation Zone: The area between the uptrend and downtrend thresholds.
- Uptrend/Downtrend Zones: The space between the trend thresholds and the traditional overbought/oversold lines.
- Smoothing: A Simple Moving Average (SMA) is calculated based on the resulting RSI values to provide a secondary trend baseline.
Settings
- Resolution: Determines the timeframe from which the RSI data is fetched.
- RSI Length: The lookback period used for the standard RSI calculation (default is 14).
- RSI Uptrend Threshold: The level above which the RSI is considered to be in an active uptrend (default is 60).
- RSI Downtrend Threshold: The level below which the RSI is considered to be in an active downtrend (default is 40).
- RSI Overbought Threshold: The level indicating potential overextended bullish conditions (default is 70).
- RSI Oversold Threshold: The level indicating potential overextended bearish conditions (default is 30).
- RSI MA: The length of the Simple Moving Average applied to the RSI line.
- Use barcolor: When enabled, paints the price bars on the chart according to the RSI's trend status.
FAQ
How do I use the multi-timeframe feature?
Navigate to the settings and change the "Resolution" input. Selecting a higher timeframe than your current chart will display the higher-level RSI trend directly on your current view.
What is the difference between the Uptrend Threshold and Overbought Threshold?
The Uptrend Threshold (default 60) marks the beginning of strong momentum, while the Overbought Threshold (default 70) marks where that momentum may be becoming overextended.
How can I access RSI?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.