All indicators

strategy of RSI with trendlines and S/R

Nov 17, 2019

Static chart image
Support and ResistanceOscillatorsCandlestickMoving AveragesVolatility

The strategy of RSI with trendlines and S/R indicator provides a comprehensive visual analysis tool that combines Relative Strength Index (RSI) dynamics with automated trendline detection and Bollinger Band-based support and resistance levels.

Usage

This script is designed to assist traders in identifying potential reversals and trend continuations directly within the RSI oscillator pane. By integrating diagonal trendlines and horizontal S/R zones, it highlights price-momentum divergences and key breakout points that might not be immediately visible on the main price chart.

RSI Visualization

Users can choose between a standard line RSI or a bar-style representation. The indicator also features a "dynamic inner" calculation which provides a shaded region around the RSI line based on standard deviation or a smoothed moving average, helping to identify periods of unusual momentum volatility.

Support and Resistance (S/R)

The tool utilizes Bollinger Bands calculated on the RSI values to establish dynamic overbought and oversold zones. When the RSI crosses these thresholds, the indicator can plot horizontal support and resistance lines, marking critical levels where the trend previously stalled or reversed.

Automated Trendlines

The script plots two groups of trendlines:

  • Primary Trendlines: Higher lookback period for identifying major structural shifts.
  • Secondary Trendlines: Lower lookback period for capturing short-term swings and aggressive trend changes. These lines can be extended and colored based on their slope to quickly distinguish between ascending and descending momentum.

Details

The indicator refines the classic RSI by applying various technical filters:

  • Trend Candle Highlighting: An optional feature that colors candles based on a Heikin-Ashi smoothed RSI logic, allowing users to see the underlying momentum trend directly.
  • Pivot Point Detection: Diagonal trendlines are constructed by connecting recent Pivot Highs and Pivot Lows within the RSI data.
  • Bollinger Mean Reversion: The S/R zones are derived from a Bollinger Band %B calculation applied to the RSI, identifying when the momentum is stretched relative to its recent average.

Settings

RSI Selection Criteria

  • Show bar or Line RSI: Toggles between a standard line plot and a bar-based representation.
  • RSI source: The price data used for calculation (default is Close).
  • RSI length parameter: The lookback period for the RSI calculation.
  • RSI inside form: Determines if a dynamic or fixed inner band is displayed.
  • RSI dynamic inner calculation method: Choose between Standard Deviation or Smooth Moving Average for the inner band.

Bollinger Bands S/R Zones

  • Display Bollinger Bands S/R Zones: Enables the plotting of horizontal S/R levels.
  • Bollinger Length/Deviation: Parameters for the volatility bands used to detect S/R levels.

Trendlines Selection Criteria

  • Highlight Trend Candles: Enables color-coded candles based on RSI momentum.
  • Use Trendlines Color Scheme: Choose between "Colored" (directional) or "Monochrome" lines.
  • Primary/Secondary Lookback Length: Controls the sensitivity of the pivot detection for trendlines.
  • Trendline Extensions: Sets the length to which trendlines are projected forward.

FAQ

How do I interpret the diagonal trendlines?

The diagonal lines connect RSI peaks and valleys. A breakout above a descending trendline often signals a bullish reversal in momentum, while a break below an ascending line signals a bearish shift.

What are the horizontal colored lines?

The horizontal lines represent Support (blue) and Resistance (magenta) levels identified when the RSI reaches extreme levels relative to its Bollinger Bands.

How can I access this indicator?

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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.