Updated
Apex Edge - RSI Trend Lines

The Apex Edge - RSI Trend Lines indicator is a precision tool that automatically draws real-time trendlines on the RSI oscillator using confirmed pivot highs and lows. These dynamic trendlines track RSI structure in motion, helping you anticipate breakout zones, reversals, and hidden divergences.
Every time a new pivot forms, the indicator automatically re-draws the RSI trendline between the two most recent pivots — giving you an always-current view of momentum structure. You’ll instantly see when RSI begins compressing or expanding, long before price reacts.
Key Features: • Dynamic RSI trendlines drawn from the last 2 pivots
• Auto re-draws in real-time as new pivots form
• Optional "Full Extend" or "Pivot Only" modes
• Slope color-coded: green = support, red = resistance
• Built-in dotted RSI levels (30/70 default)
• Alert conditions for RSI trendline breakout signals
• Ideal for spotting divergence, compression, and early SMC confluence
This is not your average RSI — it’s a fully reactive momentum edge overlay designed to give you clarity, structure, and timing from within the oscillator itself. Perfect for traders using Smart Money Concepts, divergence setups, or algorithmic trend tracking.
⚔️ Built for precision. Built for edge. Built for Apex.
Every time a new pivot forms, the indicator automatically re-draws the RSI trendline between the two most recent pivots — giving you an always-current view of momentum structure. You’ll instantly see when RSI begins compressing or expanding, long before price reacts.
Key Features: • Dynamic RSI trendlines drawn from the last 2 pivots
• Auto re-draws in real-time as new pivots form
• Optional "Full Extend" or "Pivot Only" modes
• Slope color-coded: green = support, red = resistance
• Built-in dotted RSI levels (30/70 default)
• Alert conditions for RSI trendline breakout signals
• Ideal for spotting divergence, compression, and early SMC confluence
This is not your average RSI — it’s a fully reactive momentum edge overlay designed to give you clarity, structure, and timing from within the oscillator itself. Perfect for traders using Smart Money Concepts, divergence setups, or algorithmic trend tracking.
⚔️ Built for precision. Built for edge. Built for Apex.
Release Notes
v2.0 - RebuiltFIXED
- Break detection and alerts now work. In v1 the break check almost never triggered, so the alerts rarely fired. If you had alerts set on v1, please delete and re-create them on v2.
- Lines now make sense: by default resistance joins lower RSI highs and support joins higher RSI lows (the old "join any two pivots" behaviour is still available as "All slopes").
- A line is only drawn if RSI respected it between its two pivots, so no more lines cutting straight through RSI.
- No repainting: lines, breaks and alerts are all decided on closed candles.
- Updated to Pine Script v6.
NEW
- Historical trend lines: the newest lines per side stay on the chart (5 by default, up to 50). Active lines extend until they break; broken lines stay faded and dotted, ending at the break with a ◆ marker.
- 50 midline (can be switched off).
- Soft shading when RSI is above the upper level or below the lower level.
- Optional break markers on the price chart (off by default).
- Alerts: one "Any alert() function call" alert with tick boxes for resistance broken, support broken and new line formed. The classic alert conditions are still included.
- Colour, width and transparency settings for every line, plus a limit on how far apart two pivots can be joined.
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.
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.