RSI Trend Line
Oct 6, 2021

The RSI Trend Line indicator projects the Relative Strength Index directly onto the price chart to provide a visual representation of momentum and trend strength. By scaling the RSI values relative to price action, it allows traders to identify periods of strength and weakness without needing a separate oscillator window.
Usage
The indicator can be used to gauge the current market momentum relative to a neutral baseline. When the RSI Trend Line (the primary plot) is below the price, it indicates that relative strength is high (RSI > 50). Conversely, if the line is above the price, it indicates that relative strength is low (RSI < 50).
Traders can use this tool for:
- Trend Identification: Observing the distance between the price and the trend line to visualize the aggressiveness of a move.
- Overbought/Oversold Signals: By enabling the bands, users can see where price sits relative to traditional RSI thresholds (like 70 and 30).
- Comparative Strength: The tool includes an option to plot a benchmark symbol (e.g., SPY) to see how the current asset's RSI compares to a broader market index.
- Crossovers: Price crossing the trend line signifies the RSI crossing the 50 level, often used as a trend confirmation signal.
Details
Unlike standard "Adaptive RSI" scripts that may lag or hug price too tightly, this implementation uses an ATR-based scaling method to convert RSI values into price offsets. The formula calculates the distance from the RSI midpoint (50) and adjusts the trend line's position based on market volatility. This allows the indicator to remain visually relevant across different price scales and volatility regimes.
Settings
RSI
- Length: The lookback period for the RSI calculation (default is 14).
- Source: The price data used for the RSI calculation (default is close).
- Overbought: The upper threshold level, typically 70.
- Oversold: The lower threshold level, typically 30.
Inputs
- Responsiveness: Controls the aggressiveness of the RSI trend line and the width of the bands. A value of 1.0 produces the widest bands, while 5.0 makes the indicator more reactive and the bands narrower.
- Smoothing: Applies an EMA to the trend line and bands to filter out noise. Set to 1 for no smoothing.
Comparative Strength
- Use Benchmark: Enables the plotting of a second RSI line based on a different ticker.
- Benchmark Symbol: The ticker symbol used for comparison (e.g., "SPY" or "BTCUSD").
Outputs
- Trend: Customizes the color of the main RSI Trend line.
- Use Bands: Toggles the visibility of the Overbought and Oversold price bands.
- OB/OS: Sets the color for the band boundaries.
- Fill: Sets the background color between the upper and lower bands.
- Benchmark: Sets the color for the comparative strength line.
FAQ
How do I interpret the RSI Trend Line?
When the trend line is below price, the RSI is above 50, indicating bullish momentum. When the trend line is above price, the RSI is below 50, indicating bearish momentum.
What does the Responsiveness setting do?
It acts as a scaling factor. Lower values (near 1.0) make the bands wider and the trend line move further from price, while higher values (up to 5.0) make the indicator more "responsive" and closer to the price action.
How can I access the RSI Trend Line?
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.